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

#include <ActiveAEBuffer.h>

Inheritance diagram for ActiveAE::CActiveAEBufferPoolResample:
ActiveAE::CActiveAEBufferPool

Public Member Functions

 CActiveAEBufferPoolResample (const AEAudioFormat &inputFormat, const AEAudioFormat &outputFormat, AEQuality quality)
 
 ~CActiveAEBufferPoolResample () override
 
bool Create (unsigned int totaltime, bool remap, bool upmix, bool normalize=true, float sublevel=0.0)
 
bool ResampleBuffers (int64_t timestamp=0)
 
void ConfigureResampler (bool normalizelevels, bool stereoupmix, AEQuality quality, float sublevel)
 
float GetDelay ()
 
void Flush ()
 
void SetDrain (bool drain)
 
void SetRR (double rr)
 
double GetRR () const
 
void FillBuffer ()
 
bool DoesNormalize () const
 
void ForceResampler (bool force)
 
virtual bool Create (unsigned int totaltime)
 
- Public Member Functions inherited from ActiveAE::CActiveAEBufferPool
 CActiveAEBufferPool (const AEAudioFormat &format)
 
virtual ~CActiveAEBufferPool ()
 
CSampleBufferGetFreeBuffer ()
 
void ReturnBuffer (CSampleBuffer *buffer)
 

Public Attributes

AEAudioFormat m_inputFormat
 
std::deque< CSampleBuffer * > m_inputSamples
 
std::deque< CSampleBuffer * > m_outputSamples
 
- Public Attributes inherited from ActiveAE::CActiveAEBufferPool
AEAudioFormat m_format
 
std::deque< CSampleBuffer * > m_allSamples
 
std::deque< CSampleBuffer * > m_freeSamples
 

Protected Member Functions

void ChangeResampler ()
 

Protected Attributes

uint8_tm_planes [16]
 
bool m_empty = true
 
bool m_drain = false
 
int64_t m_lastSamplePts = 0
 
bool m_remap = false
 
CSampleBufferm_procSample = nullptr
 
std::unique_ptr< IAEResamplem_resampler
 
double m_resampleRatio = 1.0
 
double m_centerMixLevel = M_SQRT1_2
 
bool m_fillPackets = false
 
bool m_normalize = true
 
float m_mixSubLevel = 0.0f
 
bool m_changeResampler = false
 
bool m_forceResampler = false
 
AEQuality m_resampleQuality
 
bool m_stereoUpmix = false
 

Constructor & Destructor Documentation

◆ CActiveAEBufferPoolResample()

CActiveAEBufferPoolResample::CActiveAEBufferPoolResample ( const AEAudioFormat & inputFormat,
const AEAudioFormat & outputFormat,
AEQuality quality )

◆ ~CActiveAEBufferPoolResample()

CActiveAEBufferPoolResample::~CActiveAEBufferPoolResample ( )
override

Member Function Documentation

◆ ChangeResampler()

void CActiveAEBufferPoolResample::ChangeResampler ( )
protected

◆ ConfigureResampler()

void CActiveAEBufferPoolResample::ConfigureResampler ( bool normalizelevels,
bool stereoupmix,
AEQuality quality,
float sublevel )

◆ Create() [1/2]

bool CActiveAEBufferPool::Create ( unsigned int totaltime)
virtual

Reimplemented from ActiveAE::CActiveAEBufferPool.

◆ Create() [2/2]

bool CActiveAEBufferPoolResample::Create ( unsigned int totaltime,
bool remap,
bool upmix,
bool normalize = true,
float sublevel = 0.0 )

◆ DoesNormalize()

bool CActiveAEBufferPoolResample::DoesNormalize ( ) const

◆ FillBuffer()

void CActiveAEBufferPoolResample::FillBuffer ( )

◆ Flush()

void CActiveAEBufferPoolResample::Flush ( )

◆ ForceResampler()

void CActiveAEBufferPoolResample::ForceResampler ( bool force)

◆ GetDelay()

float CActiveAEBufferPoolResample::GetDelay ( )

◆ GetRR()

double CActiveAEBufferPoolResample::GetRR ( ) const

◆ ResampleBuffers()

bool CActiveAEBufferPoolResample::ResampleBuffers ( int64_t timestamp = 0)

◆ SetDrain()

void CActiveAEBufferPoolResample::SetDrain ( bool drain)

◆ SetRR()

void CActiveAEBufferPoolResample::SetRR ( double rr)

Member Data Documentation

◆ m_centerMixLevel

double ActiveAE::CActiveAEBufferPoolResample::m_centerMixLevel = M_SQRT1_2
protected

◆ m_changeResampler

bool ActiveAE::CActiveAEBufferPoolResample::m_changeResampler = false
protected

◆ m_drain

bool ActiveAE::CActiveAEBufferPoolResample::m_drain = false
protected

◆ m_empty

bool ActiveAE::CActiveAEBufferPoolResample::m_empty = true
protected

◆ m_fillPackets

bool ActiveAE::CActiveAEBufferPoolResample::m_fillPackets = false
protected

◆ m_forceResampler

bool ActiveAE::CActiveAEBufferPoolResample::m_forceResampler = false
protected

◆ m_inputFormat

AEAudioFormat ActiveAE::CActiveAEBufferPoolResample::m_inputFormat

◆ m_inputSamples

std::deque<CSampleBuffer*> ActiveAE::CActiveAEBufferPoolResample::m_inputSamples

◆ m_lastSamplePts

int64_t ActiveAE::CActiveAEBufferPoolResample::m_lastSamplePts = 0
protected

◆ m_mixSubLevel

float ActiveAE::CActiveAEBufferPoolResample::m_mixSubLevel = 0.0f
protected

◆ m_normalize

bool ActiveAE::CActiveAEBufferPoolResample::m_normalize = true
protected

◆ m_outputSamples

std::deque<CSampleBuffer*> ActiveAE::CActiveAEBufferPoolResample::m_outputSamples

◆ m_planes

uint8_t* ActiveAE::CActiveAEBufferPoolResample::m_planes[16]
protected

◆ m_procSample

CSampleBuffer* ActiveAE::CActiveAEBufferPoolResample::m_procSample = nullptr
protected

◆ m_remap

bool ActiveAE::CActiveAEBufferPoolResample::m_remap = false
protected

◆ m_resampleQuality

AEQuality ActiveAE::CActiveAEBufferPoolResample::m_resampleQuality
protected

◆ m_resampler

std::unique_ptr<IAEResample> ActiveAE::CActiveAEBufferPoolResample::m_resampler
protected

◆ m_resampleRatio

double ActiveAE::CActiveAEBufferPoolResample::m_resampleRatio = 1.0
protected

◆ m_stereoUpmix

bool ActiveAE::CActiveAEBufferPoolResample::m_stereoUpmix = false
protected

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