Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
No Matches
KODI::CDRIP::CEncoderAddon Class Reference

#include <EncoderAddon.h>

Inheritance diagram for KODI::CDRIP::CEncoderAddon:
KODI::CDRIP::CEncoder ADDON::IAddonInstanceHandler KODI::CDRIP::IEncoder

Public Member Functions

 CEncoderAddon (const ADDON::AddonInfoPtr &addonInfo)
 ~CEncoderAddon () override
bool Init () override
ssize_t Encode (uint8_t *pbtStream, size_t nNumBytesRead) override
bool Close () override
ssize_t Write (const uint8_t *data, size_t len) override
ssize_t Seek (ssize_t pos, int whence) override
- Public Member Functions inherited from KODI::CDRIP::CEncoder
 CEncoder ()
virtual ~CEncoder ()
bool EncoderInit (const std::string &strFile, int iInChannels, int iInRate, int iInBits)
ssize_t EncoderEncode (uint8_t *pbtStream, size_t nNumBytesRead)
bool EncoderClose ()
void SetComment (const std::string &str)
void SetArtist (const std::string &str)
void SetTitle (const std::string &str)
void SetAlbum (const std::string &str)
void SetAlbumArtist (const std::string &str)
void SetGenre (const std::string &str)
void SetTrack (const std::string &str)
void SetTrackLength (int length)
void SetYear (const std::string &str)
- Public Member Functions inherited from KODI::CDRIP::IEncoder
virtual ~IEncoder ()=default
- Public Member Functions inherited from ADDON::IAddonInstanceHandler
 IAddonInstanceHandler (ADDON_TYPE type, const AddonInfoPtr &addonInfo, AddonInstanceId instanceId=ADDON_INSTANCE_ID_UNUSED, KODI_HANDLE parentInstance=nullptr, const std::string &uniqueWorkID="")
 Class constructor for handling add-on instance processes, allowing an add-on to handle multiple work simultaneously and independently.
virtual ~IAddonInstanceHandler ()
ADDON_TYPE UsedType () const
AddonInstanceId InstanceId () const
const std::string & UniqueWorkID ()
std::string ID () const
std::string Name () const
std::string Author () const
std::string Icon () const
std::string Path () const
std::string Profile () const
CAddonVersion Version () const
ADDON_STATUS CreateInstance ()
void DestroyInstance ()
const AddonDllPtrAddon () const
AddonInfoPtr GetAddonInfo () const
virtual void OnPreInstall ()
virtual void OnPostInstall (bool update, bool modal)
virtual void OnPreUnInstall ()
virtual void OnPostUnInstall ()

Additional Inherited Members

- Public Attributes inherited from KODI::CDRIP::IEncoder
std::string m_strComment
std::string m_strArtist
std::string m_strAlbumArtist
std::string m_strTitle
std::string m_strAlbum
std::string m_strGenre
std::string m_strTrack
std::string m_strYear
std::string m_strFile
int m_iTrackLength = 0
int m_iInChannels = 0
int m_iInSampleRate = 0
int m_iInBitsPerSample = 0
- Protected Attributes inherited from ADDON::IAddonInstanceHandler

Constructor & Destructor Documentation

◆ CEncoderAddon()

CEncoderAddon::CEncoderAddon ( const ADDON::AddonInfoPtr & addonInfo)

◆ ~CEncoderAddon()

CEncoderAddon::~CEncoderAddon ( )

Member Function Documentation

◆ Close()

bool CEncoderAddon::Close ( )

Implements KODI::CDRIP::IEncoder.

◆ Encode()

ssize_t CEncoderAddon::Encode ( uint8_t * pbtStream,
size_t nNumBytesRead )

Implements KODI::CDRIP::IEncoder.

◆ Init()

bool CEncoderAddon::Init ( )

Implements KODI::CDRIP::IEncoder.

◆ Seek()

ssize_t CEncoderAddon::Seek ( ssize_t pos,
int whence )

Reimplemented from KODI::CDRIP::CEncoder.

◆ Write()

ssize_t CEncoderAddon::Write ( const uint8_t * data,
size_t len )

Reimplemented from KODI::CDRIP::CEncoder.

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