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

#include <ActiveAEResampleFFMPEG.h>

Inheritance diagram for ActiveAE::CActiveAEResampleFFMPEG:
ActiveAE::IAEResample

Public Member Functions

const char * GetName () override
 
 CActiveAEResampleFFMPEG ()
 
 ~CActiveAEResampleFFMPEG () override
 
bool Init (SampleConfig dstConfig, SampleConfig srcConfig, bool upmix, bool normalize, double centerMix, CAEChannelInfo *remapLayout, AEQuality quality, bool force_resample, float sublevel) override
 
int Resample (uint8_t **dst_buffer, int dst_samples, uint8_t **src_buffer, int src_samples, double ratio) override
 
int64_t GetDelay (int64_t base) override
 
int GetBufferedSamples () override
 
bool WantsNewSamples (int samples) override
 
int CalcDstSampleCount (int src_samples, int dst_rate, int src_rate) override
 
int GetSrcBufferSize (int samples) override
 
int GetDstBufferSize (int samples) override
 
- Public Member Functions inherited from ActiveAE::IAEResample
 IAEResample ()=default
 
virtual ~IAEResample ()=default
 

Protected Attributes

bool m_loaded
 
bool m_doesResample
 
uint64_t m_src_chan_layout
 
uint64_t m_dst_chan_layout
 
int m_src_rate
 
int m_dst_rate
 
int m_src_channels
 
int m_dst_channels
 
AVSampleFormat m_src_fmt
 
AVSampleFormat m_dst_fmt
 
int m_src_bits
 
int m_dst_bits
 
int m_src_dither_bits
 
int m_dst_dither_bits
 
SwrContext * m_pContext
 
double m_rematrix [AE_CH_MAX][AE_CH_MAX]
 

Constructor & Destructor Documentation

◆ CActiveAEResampleFFMPEG()

CActiveAEResampleFFMPEG::CActiveAEResampleFFMPEG ( )

◆ ~CActiveAEResampleFFMPEG()

CActiveAEResampleFFMPEG::~CActiveAEResampleFFMPEG ( )
override

Member Function Documentation

◆ CalcDstSampleCount()

int CActiveAEResampleFFMPEG::CalcDstSampleCount ( int src_samples,
int dst_rate,
int src_rate )
overridevirtual

Implements ActiveAE::IAEResample.

◆ GetBufferedSamples()

int CActiveAEResampleFFMPEG::GetBufferedSamples ( )
overridevirtual

Implements ActiveAE::IAEResample.

◆ GetDelay()

int64_t CActiveAEResampleFFMPEG::GetDelay ( int64_t base)
overridevirtual

Implements ActiveAE::IAEResample.

◆ GetDstBufferSize()

int CActiveAEResampleFFMPEG::GetDstBufferSize ( int samples)
overridevirtual

Implements ActiveAE::IAEResample.

◆ GetName()

const char * ActiveAE::CActiveAEResampleFFMPEG::GetName ( )
inlineoverridevirtual

Implements ActiveAE::IAEResample.

◆ GetSrcBufferSize()

int CActiveAEResampleFFMPEG::GetSrcBufferSize ( int samples)
overridevirtual

Implements ActiveAE::IAEResample.

◆ Init()

bool CActiveAEResampleFFMPEG::Init ( SampleConfig dstConfig,
SampleConfig srcConfig,
bool upmix,
bool normalize,
double centerMix,
CAEChannelInfo * remapLayout,
AEQuality quality,
bool force_resample,
float sublevel )
overridevirtual

Implements ActiveAE::IAEResample.

◆ Resample()

int CActiveAEResampleFFMPEG::Resample ( uint8_t ** dst_buffer,
int dst_samples,
uint8_t ** src_buffer,
int src_samples,
double ratio )
overridevirtual
Bug
libavresample isn't const correct

Implements ActiveAE::IAEResample.

◆ WantsNewSamples()

bool ActiveAE::CActiveAEResampleFFMPEG::WantsNewSamples ( int samples)
inlineoverridevirtual

Implements ActiveAE::IAEResample.

Member Data Documentation

◆ m_doesResample

bool ActiveAE::CActiveAEResampleFFMPEG::m_doesResample
protected

◆ m_dst_bits

int ActiveAE::CActiveAEResampleFFMPEG::m_dst_bits
protected

◆ m_dst_chan_layout

uint64_t ActiveAE::CActiveAEResampleFFMPEG::m_dst_chan_layout
protected

◆ m_dst_channels

int ActiveAE::CActiveAEResampleFFMPEG::m_dst_channels
protected

◆ m_dst_dither_bits

int ActiveAE::CActiveAEResampleFFMPEG::m_dst_dither_bits
protected

◆ m_dst_fmt

AVSampleFormat ActiveAE::CActiveAEResampleFFMPEG::m_dst_fmt
protected

◆ m_dst_rate

int ActiveAE::CActiveAEResampleFFMPEG::m_dst_rate
protected

◆ m_loaded

bool ActiveAE::CActiveAEResampleFFMPEG::m_loaded
protected

◆ m_pContext

SwrContext* ActiveAE::CActiveAEResampleFFMPEG::m_pContext
protected

◆ m_rematrix

double ActiveAE::CActiveAEResampleFFMPEG::m_rematrix[AE_CH_MAX][AE_CH_MAX]
protected

◆ m_src_bits

int ActiveAE::CActiveAEResampleFFMPEG::m_src_bits
protected

◆ m_src_chan_layout

uint64_t ActiveAE::CActiveAEResampleFFMPEG::m_src_chan_layout
protected

◆ m_src_channels

int ActiveAE::CActiveAEResampleFFMPEG::m_src_channels
protected

◆ m_src_dither_bits

int ActiveAE::CActiveAEResampleFFMPEG::m_src_dither_bits
protected

◆ m_src_fmt

AVSampleFormat ActiveAE::CActiveAEResampleFFMPEG::m_src_fmt
protected

◆ m_src_rate

int ActiveAE::CActiveAEResampleFFMPEG::m_src_rate
protected

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