diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_imagedec_dll.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_imagedec_dll.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_imagedec_dll.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_imagedec_dll.h deleted file mode 100644 index a87c9c0..0000000 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_imagedec_dll.h +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2005-2013 Team XBMC | ||
| 3 | * http://xbmc.org | ||
| 4 | * | ||
| 5 | * This Program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 8 | * any later version. | ||
| 9 | * | ||
| 10 | * This Program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with XBMC; see the file COPYING. If not, see | ||
| 17 | * <http://www.gnu.org/licenses/>. | ||
| 18 | * | ||
| 19 | */ | ||
| 20 | |||
| 21 | #pragma once | ||
| 22 | |||
| 23 | #include <stdint.h> | ||
| 24 | #include "xbmc_addon_dll.h" | ||
| 25 | #include "kodi_imagedec_types.h" | ||
| 26 | |||
| 27 | extern "C" | ||
| 28 | { | ||
| 29 | void* LoadImage(unsigned char* buffer, unsigned int bufSize, | ||
| 30 | unsigned int* width, unsigned int* height); | ||
| 31 | |||
| 32 | bool Decode(void* image, unsigned char* pixels, | ||
| 33 | unsigned int width, unsigned int height, | ||
| 34 | unsigned int pitch, unsigned int format); | ||
| 35 | |||
| 36 | void Close(void* image); | ||
| 37 | |||
| 38 | // function to export the above structure to Kodi | ||
| 39 | void __declspec(dllexport) get_addon(void* ptr) | ||
| 40 | { | ||
| 41 | AddonInstance_ImageDecoder* img = static_cast<AddonInstance_ImageDecoder*>(ptr); | ||
| 42 | img->toAddon.LoadImage = LoadImage; | ||
| 43 | img->toAddon.Decode = Decode; | ||
| 44 | img->toAddon.Close = Close; | ||
| 45 | } | ||
| 46 | }; | ||
