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

#include <Encoder.h>

Inheritance diagram for KODI::CDRIP::CEncoder:
KODI::CDRIP::IEncoder KODI::CDRIP::CEncoderAddon KODI::CDRIP::CEncoderFFmpeg

Public Member Functions

 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
 
virtual bool Init ()=0
 
virtual ssize_t Encode (uint8_t *pbtStream, size_t nNumBytesRead)=0
 
virtual bool Close ()=0
 

Protected Member Functions

virtual ssize_t Write (const uint8_t *pBuffer, size_t iBytes)
 
virtual ssize_t Seek (ssize_t iFilePosition, int iWhence)
 

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
 

Constructor & Destructor Documentation

◆ CEncoder()

CEncoder::CEncoder ( )
default

◆ ~CEncoder()

CEncoder::~CEncoder ( )
virtual

Member Function Documentation

◆ EncoderClose()

bool CEncoder::EncoderClose ( )

◆ EncoderEncode()

ssize_t CEncoder::EncoderEncode ( uint8_t * pbtStream,
size_t nNumBytesRead )

◆ EncoderInit()

bool CEncoder::EncoderInit ( const std::string & strFile,
int iInChannels,
int iInRate,
int iInBits )

◆ Seek()

ssize_t CEncoder::Seek ( ssize_t iFilePosition,
int iWhence )
protectedvirtual

Reimplemented in KODI::CDRIP::CEncoderAddon.

◆ SetAlbum()

void KODI::CDRIP::CEncoder::SetAlbum ( const std::string & str)
inline

◆ SetAlbumArtist()

void KODI::CDRIP::CEncoder::SetAlbumArtist ( const std::string & str)
inline

◆ SetArtist()

void KODI::CDRIP::CEncoder::SetArtist ( const std::string & str)
inline

◆ SetComment()

void KODI::CDRIP::CEncoder::SetComment ( const std::string & str)
inline

◆ SetGenre()

void KODI::CDRIP::CEncoder::SetGenre ( const std::string & str)
inline

◆ SetTitle()

void KODI::CDRIP::CEncoder::SetTitle ( const std::string & str)
inline

◆ SetTrack()

void KODI::CDRIP::CEncoder::SetTrack ( const std::string & str)
inline

◆ SetTrackLength()

void KODI::CDRIP::CEncoder::SetTrackLength ( int length)
inline

◆ SetYear()

void KODI::CDRIP::CEncoder::SetYear ( const std::string & str)
inline

◆ Write()

ssize_t CEncoder::Write ( const uint8_t * pBuffer,
size_t iBytes )
protectedvirtual

Reimplemented in KODI::CDRIP::CEncoderAddon.


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