Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
kodi::addon::CInstanceImageDecoder Class Referenceabstract

#include <ImageDecoder.h>

Inheritance diagram for kodi::addon::CInstanceImageDecoder:
kodi::addon::IAddonInstance

Public Member Functions

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

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ~CInstanceImageDecoder()

kodi::addon::CInstanceImageDecoder::~CInstanceImageDecoder ( )
overridedefault

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