Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
VideoPlayerCodec Class Reference

#include <VideoPlayerCodec.h>

Inheritance diagram for VideoPlayerCodec:
ICodec

Public Member Functions

 VideoPlayerCodec ()
 
 ~VideoPlayerCodec () override
 
bool Init (const CFileItem &file, unsigned int filecache) override
 
bool Seek (int64_t iSeekTime) override
 
int ReadPCM (uint8_t *pBuffer, size_t size, size_t *actualsize) override
 
int ReadRaw (uint8_t **pBuffer, int *bufferSize) override
 
bool CanInit () override
 
bool CanSeek () override
 
void DeInit ()
 
AEAudioFormat GetFormat ()
 
void SetContentType (const std::string &strContent)
 
bool NeedConvert (AEDataFormat fmt)
 
void SetPassthroughStreamType (CAEStreamInfo::DataType streamType)
 
- Public Member Functions inherited from ICodec
 ICodec ()
 
virtual ~ICodec ()=default
 
virtual void SetTotalTime (int64_t totaltime)
 
virtual bool IsCaching () const
 
virtual int GetCacheLevel () const
 

Additional Inherited Members

- Public Attributes inherited from ICodec
int64_t m_TotalTime
 
int m_bitRate
 
int m_bitsPerSample
 
int m_bitsPerCodedSample
 
std::string m_CodecName
 
MUSIC_INFO::CMusicInfoTag m_tag
 
XFILE::CFile m_file
 
AEAudioFormat m_format
 

Constructor & Destructor Documentation

◆ VideoPlayerCodec()

VideoPlayerCodec::VideoPlayerCodec ( )

◆ ~VideoPlayerCodec()

VideoPlayerCodec::~VideoPlayerCodec ( )
override

Member Function Documentation

◆ CanInit()

bool VideoPlayerCodec::CanInit ( )
overridevirtual

Implements ICodec.

◆ CanSeek()

bool VideoPlayerCodec::CanSeek ( )
overridevirtual

Reimplemented from ICodec.

◆ DeInit()

void VideoPlayerCodec::DeInit ( )

◆ GetFormat()

AEAudioFormat VideoPlayerCodec::GetFormat ( )

◆ Init()

bool VideoPlayerCodec::Init ( const CFileItem & file,
unsigned int filecache )
overridevirtual
Todo
convey CFileItem::ContentLookup() into Open()

Implements ICodec.

◆ NeedConvert()

bool VideoPlayerCodec::NeedConvert ( AEDataFormat fmt)

◆ ReadPCM()

int VideoPlayerCodec::ReadPCM ( uint8_t * pBuffer,
size_t size,
size_t * actualsize )
overridevirtual

Implements ICodec.

◆ ReadRaw()

int VideoPlayerCodec::ReadRaw ( uint8_t ** pBuffer,
int * bufferSize )
overridevirtual

Reimplemented from ICodec.

◆ Seek()

bool VideoPlayerCodec::Seek ( int64_t iSeekTime)
overridevirtual

Implements ICodec.

◆ SetContentType()

void VideoPlayerCodec::SetContentType ( const std::string & strContent)

◆ SetPassthroughStreamType()

void VideoPlayerCodec::SetPassthroughStreamType ( CAEStreamInfo::DataType streamType)

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