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

#include <DVDAudioCodecFFmpeg.h>

Inheritance diagram for CDVDAudioCodecFFmpeg:
CDVDAudioCodec

Public Member Functions

 CDVDAudioCodecFFmpeg (CProcessInfo &processInfo)
 
 ~CDVDAudioCodecFFmpeg () override
 
bool Open (CDVDStreamInfo &hints, CDVDCodecOptions &options) override
 
void Dispose () override
 
bool AddData (const DemuxPacket &packet) override
 
void GetData (DVDAudioFrame &frame) override
 
void Reset () override
 
AEAudioFormat GetFormat () override
 
std::string GetName () override
 
enum AVMatrixEncoding GetMatrixEncoding () override
 
enum AVAudioServiceType GetAudioServiceType () override
 
int GetProfile () override
 
- Public Member Functions inherited from CDVDAudioCodec
 CDVDAudioCodec (CProcessInfo &processInfo)
 
virtual ~CDVDAudioCodec ()=default
 
virtual bool NeedPassthrough ()
 
virtual int GetBufferSize ()
 

Protected Member Functions

int GetData (uint8_t **dst)
 
enum AEDataFormat GetDataFormat ()
 
int GetSampleRate ()
 
int GetChannels ()
 
CAEChannelInfo GetChannelMap ()
 
int GetBitRate () override
 
void BuildChannelMap ()
 

Protected Attributes

AEAudioFormat m_format
 
AVCodecContext * m_pCodecContext
 
enum AVSampleFormat m_iSampleFormat = AV_SAMPLE_FMT_NONE
 
CAEChannelInfo m_channelLayout
 
enum AVMatrixEncoding m_matrixEncoding = AV_MATRIX_ENCODING_NONE
 
AVFrame * m_pFrame
 
AVDownmixInfo m_downmixInfo
 
bool m_hasDownmix = false
 
bool m_eof
 
int m_channels
 
uint64_t m_layout
 
std::string m_codecName
 
uint64_t m_hint_layout
 
- Protected Attributes inherited from CDVDAudioCodec
CProcessInfom_processInfo
 

Constructor & Destructor Documentation

◆ CDVDAudioCodecFFmpeg()

CDVDAudioCodecFFmpeg::CDVDAudioCodecFFmpeg ( CProcessInfo & processInfo)
explicit

◆ ~CDVDAudioCodecFFmpeg()

CDVDAudioCodecFFmpeg::~CDVDAudioCodecFFmpeg ( )
override

Member Function Documentation

◆ AddData()

bool CDVDAudioCodecFFmpeg::AddData ( const DemuxPacket & packet)
overridevirtual
Todo
: properly handle avpkt side_data. this works around our improper use of the side_data

Implements CDVDAudioCodec.

◆ BuildChannelMap()

void CDVDAudioCodecFFmpeg::BuildChannelMap ( )
protected

◆ Dispose()

void CDVDAudioCodecFFmpeg::Dispose ( )
overridevirtual

Implements CDVDAudioCodec.

◆ GetAudioServiceType()

enum AVAudioServiceType CDVDAudioCodecFFmpeg::GetAudioServiceType ( )
overridevirtual

Reimplemented from CDVDAudioCodec.

◆ GetBitRate()

int CDVDAudioCodecFFmpeg::GetBitRate ( )
overrideprotectedvirtual

Reimplemented from CDVDAudioCodec.

◆ GetChannelMap()

CAEChannelInfo CDVDAudioCodecFFmpeg::GetChannelMap ( )
protected

◆ GetChannels()

int CDVDAudioCodecFFmpeg::GetChannels ( )
protected

◆ GetData() [1/2]

void CDVDAudioCodecFFmpeg::GetData ( DVDAudioFrame & frame)
overridevirtual

Implements CDVDAudioCodec.

◆ GetData() [2/2]

int CDVDAudioCodecFFmpeg::GetData ( uint8_t ** dst)
protected

◆ GetDataFormat()

enum AEDataFormat CDVDAudioCodecFFmpeg::GetDataFormat ( )
protected

◆ GetFormat()

AEAudioFormat CDVDAudioCodecFFmpeg::GetFormat ( )
inlineoverridevirtual

Implements CDVDAudioCodec.

◆ GetMatrixEncoding()

enum AVMatrixEncoding CDVDAudioCodecFFmpeg::GetMatrixEncoding ( )
overridevirtual

Reimplemented from CDVDAudioCodec.

◆ GetName()

std::string CDVDAudioCodecFFmpeg::GetName ( )
inlineoverridevirtual

Implements CDVDAudioCodec.

◆ GetProfile()

int CDVDAudioCodecFFmpeg::GetProfile ( )
overridevirtual

Reimplemented from CDVDAudioCodec.

◆ GetSampleRate()

int CDVDAudioCodecFFmpeg::GetSampleRate ( )
protected

◆ Open()

bool CDVDAudioCodecFFmpeg::Open ( CDVDStreamInfo & hints,
CDVDCodecOptions & options )
overridevirtual

Implements CDVDAudioCodec.

◆ Reset()

void CDVDAudioCodecFFmpeg::Reset ( )
overridevirtual

Implements CDVDAudioCodec.

Member Data Documentation

◆ m_channelLayout

CAEChannelInfo CDVDAudioCodecFFmpeg::m_channelLayout
protected

◆ m_channels

int CDVDAudioCodecFFmpeg::m_channels
protected

◆ m_codecName

std::string CDVDAudioCodecFFmpeg::m_codecName
protected

◆ m_downmixInfo

AVDownmixInfo CDVDAudioCodecFFmpeg::m_downmixInfo
protected

◆ m_eof

bool CDVDAudioCodecFFmpeg::m_eof
protected

◆ m_format

AEAudioFormat CDVDAudioCodecFFmpeg::m_format
protected

◆ m_hasDownmix

bool CDVDAudioCodecFFmpeg::m_hasDownmix = false
protected

◆ m_hint_layout

uint64_t CDVDAudioCodecFFmpeg::m_hint_layout
protected

◆ m_iSampleFormat

enum AVSampleFormat CDVDAudioCodecFFmpeg::m_iSampleFormat = AV_SAMPLE_FMT_NONE
protected

◆ m_layout

uint64_t CDVDAudioCodecFFmpeg::m_layout
protected

◆ m_matrixEncoding

enum AVMatrixEncoding CDVDAudioCodecFFmpeg::m_matrixEncoding = AV_MATRIX_ENCODING_NONE
protected

◆ m_pCodecContext

AVCodecContext* CDVDAudioCodecFFmpeg::m_pCodecContext
protected

◆ m_pFrame

AVFrame* CDVDAudioCodecFFmpeg::m_pFrame
protected

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