Inherits IAddonInstance.
Public Member Functions | |
virtual bool | AddData (const DEMUX_PACKET &packet) |
add data, decoder has to consume the entire packet | |
CInstanceVideoCodec (const IInstanceInfo &instance) | |
Video codec class constructor used to support multiple instance types. | |
bool | GetFrameBuffer (VIDEOCODEC_PICTURE &picture) |
AddonToKodi interface. | |
virtual const char * | GetName () |
should return codecs name | |
virtual VIDEOCODEC_RETVAL | GetPicture (VIDEOCODEC_PICTURE &picture) |
GetPicture controls decoding. | |
virtual bool | Open (const kodi::addon::VideoCodecInitdata &initData) |
Open the decoder, returns true on success. | |
virtual bool | Reconfigure (const kodi::addon::VideoCodecInitdata &initData) |
Reconfigure the decoder, returns true on success. | |
void | ReleaseFrameBuffer (void *buffer) |
Release the with GetFrameBuffer() given framebuffer. | |
virtual void | Reset () |
Reset the decoder. | |
~CInstanceVideoCodec () override=default | |
Destructor. | |
Public Member Functions inherited from IAddonInstance | |
bool | CheckInstanceSettingBoolean (const std::string &settingName, bool &settingValue) |
template<typename enumType > | |
bool | CheckInstanceSettingEnum (const std::string &settingName, enumType &settingValue) |
bool | CheckInstanceSettingFloat (const std::string &settingName, float &settingValue) |
bool | CheckInstanceSettingInt (const std::string &settingName, int &settingValue) |
bool | CheckInstanceSettingString (const std::string &settingName, std::string &settingValue) |
virtual ADDON_STATUS | CreateInstance (const kodi::addon::IInstanceInfo &instance, KODI_ADDON_INSTANCE_HDL &hdl) |
std::string | GetInstanceAPIVersion () const |
bool | GetInstanceSettingBoolean (const std::string &settingName, bool defaultValue=false) |
template<typename enumType > | |
enumType | GetInstanceSettingEnum (const std::string &settingName, enumType defaultValue=static_cast< enumType >(0)) |
float | GetInstanceSettingFloat (const std::string &settingName, float defaultValue=0.0f) |
int | GetInstanceSettingInt (const std::string &settingName, int defaultValue=0) |
std::string | GetInstanceSettingString (const std::string &settingName, const std::string &defaultValue="") |
std::string | GetInstanceUserPath (const std::string &append="") |
IAddonInstance (const kodi::addon::IInstanceInfo &instance) | |
bool | IsInstanceSettingUsingDefault (const std::string &settingName) |
virtual ADDON_STATUS | SetInstanceSetting (const std::string &settingName, const kodi::addon::CSettingValue &settingValue) |
void | SetInstanceSettingBoolean (const std::string &settingName, bool settingValue) |
template<typename enumType > | |
void | SetInstanceSettingEnum (const std::string &settingName, enumType settingValue) |
void | SetInstanceSettingFloat (const std::string &settingName, float settingValue) |
void | SetInstanceSettingInt (const std::string &settingName, int settingValue) |
void | SetInstanceSettingString (const std::string &settingName, const std::string &settingValue) |