Kodi Development  20.0
for Binary and Script based Add-Ons
CInstanceImageDecoderabstract

Inherits IAddonInstance.

Public Member Functions

 CInstanceImageDecoder (KODI_HANDLE instance, const std::string &kodiVersion="")
 Class constructor. More...
 
virtual bool Decode (unsigned char *pixels, unsigned int width, unsigned int height, unsigned int pitch, ImageFormat format)=0
 Decode previously loaded image. More...
 
virtual bool LoadImageFromMemory (unsigned char *buffer, unsigned int bufSize, unsigned int &width, unsigned int &height)=0
 Initialize an encoder. More...
 
std::string MimeType ()
 Callback to Kodi Function
Get the wanted mime type from Kodi. More...
 
- Public Member Functions inherited from IAddonInstance
virtual ADDON_STATUS CreateInstance (int instanceType, const std::string &instanceID, KODI_HANDLE instance, const std::string &version, KODI_HANDLE &addonInstance)
 
 IAddonInstance (ADDON_TYPE type, const std::string &version)
 

Additional Inherited Members

- Public Attributes inherited from IAddonInstance
std::string m_id
 
const std::string m_kodiVersion
 
const ADDON_TYPE m_type
 

The documentation for this class was generated from the following file: