#include <ImageDecoder.h>
 | 
|   | CInstanceImageDecoder (KODI_HANDLE instance) | 
|   | 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 () | 
|   | Get the wanted mime type from Kodi.  More...
  | 
|   | 
|   | IAddonInstance (ADDON_TYPE type) | 
|   | 
| virtual  | ~IAddonInstance ()=default | 
|   | 
| virtual ADDON_STATUS  | CreateInstance (int instanceType, std::string instanceID, KODI_HANDLE instance, KODI_HANDLE &addonInstance) | 
|   | 
| virtual ADDON_STATUS  | CreateInstanceEx (int instanceType, std::string instanceID, KODI_HANDLE instance, KODI_HANDLE &addonInstance, const std::string &version) | 
|   | 
◆ CInstanceImageDecoder()
  
  
      
        
          | kodi::addon::CInstanceImageDecoder::CInstanceImageDecoder  | 
          ( | 
          KODI_HANDLE  | 
          instance | ) | 
           | 
         
       
   | 
  
inlineexplicit   | 
  
 
Class constructor. 
- Parameters
 - 
  
    | [in] | instance | The from Kodi given instance given be add-on CreateInstance call with instance id ADDON_INSTANCE_IMAGEDECODER.  | 
  
   
 
 
◆ ~CInstanceImageDecoder()
  
  
      
        
          | kodi::addon::CInstanceImageDecoder::~CInstanceImageDecoder  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overridedefault   | 
  
 
 
◆ Decode()
  
  
      
        
          | virtual bool kodi::addon::CInstanceImageDecoder::Decode  | 
          ( | 
          unsigned char *  | 
          pixels,  | 
         
        
           | 
           | 
          unsigned int  | 
          width,  | 
         
        
           | 
           | 
          unsigned int  | 
          height,  | 
         
        
           | 
           | 
          unsigned int  | 
          pitch,  | 
         
        
           | 
           | 
          ImageFormat  | 
          format  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
Decode previously loaded image. 
- Parameters
 - 
  
    | [in] | pixels | Output buffer  | 
    | [in] | width | Width of output image  | 
    | [in] | height | Height of output image  | 
    | [in] | pitch | Pitch of output image  | 
    | [in] | format | Format of output image  | 
  
   
- Returns
 - true if successful done, false on error 
 
 
 
◆ LoadImageFromMemory()
  
  
      
        
          | virtual bool kodi::addon::CInstanceImageDecoder::LoadImageFromMemory  | 
          ( | 
          unsigned char *  | 
          buffer,  | 
         
        
           | 
           | 
          unsigned int  | 
          bufSize,  | 
         
        
           | 
           | 
          unsigned int &  | 
          width,  | 
         
        
           | 
           | 
          unsigned int &  | 
          height  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
Initialize an encoder. 
- Parameters
 - 
  
    | [in] | buffer | The data to read from memory  | 
    | [in] | bufSize | The buffer size  | 
    | [in,out] | width | The optimal width of image on entry, obtained width on return  | 
    | [in,out] | height | The optimal height of image, actual obtained height on return  | 
  
   
- Returns
 - true if successful done, false on error 
 
 
 
◆ MimeType()
  
  
      
        
          | std::string kodi::addon::CInstanceImageDecoder::MimeType  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Get the wanted mime type from Kodi. 
- Returns
 - the mimetype wanted from Kodi 
 
 
 
The documentation for this class was generated from the following file: