MythTV  master
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
AudioOutputDigitalEncoder Class Reference

#include <audiooutputdigitalencoder.h>

Collaboration diagram for AudioOutputDigitalEncoder:
Collaboration graph
[legend]

Public Member Functions

 AudioOutputDigitalEncoder (void)
 
 ~AudioOutputDigitalEncoder ()
 
bool Init (AVCodecID codec_id, int bitrate, int samplerate, int channels)
 
size_t Encode (void *buf, int len, AudioFormat format)
 
size_t GetFrames (void *ptr, int maxlen)
 
int Buffered (void) const
 
void clear ()
 

Private Types

typedef int16_t inbuf_t
 
typedef int16_t outbuf_t
 

Private Member Functions

void Reset (void)
 
void * realloc (void *ptr, size_t old_size, size_t new_size)
 

Private Attributes

AVCodecContext * m_av_context {nullptr}
 
outbuf_tm_out {nullptr}
 
size_t m_out_size {0}
 
inbuf_tm_in {nullptr}
 
inbuf_tm_inp {nullptr}
 
size_t m_in_size {0}
 
int m_outlen {0}
 
int m_inlen {0}
 
size_t m_samples_per_frame {0}
 
SPDIFEncoderm_spdifenc {nullptr}
 
AVFramem_frame {nullptr}
 

Detailed Description

Definition at line 14 of file audiooutputdigitalencoder.h.

Member Typedef Documentation

◆ inbuf_t

typedef int16_t AudioOutputDigitalEncoder::inbuf_t
private

Definition at line 16 of file audiooutputdigitalencoder.h.

◆ outbuf_t

typedef int16_t AudioOutputDigitalEncoder::outbuf_t
private

Definition at line 17 of file audiooutputdigitalencoder.h.

Constructor & Destructor Documentation

◆ AudioOutputDigitalEncoder()

AudioOutputDigitalEncoder::AudioOutputDigitalEncoder ( void  )

Definition at line 23 of file audiooutputdigitalencoder.cpp.

◆ ~AudioOutputDigitalEncoder()

AudioOutputDigitalEncoder::~AudioOutputDigitalEncoder ( )

Definition at line 38 of file audiooutputdigitalencoder.cpp.

Member Function Documentation

◆ Init()

bool AudioOutputDigitalEncoder::Init ( AVCodecID  codec_id,
int  bitrate,
int  samplerate,
int  channels 
)

Definition at line 88 of file audiooutputdigitalencoder.cpp.

Referenced by AudioOutputBase::Reconfigure().

◆ Encode()

size_t AudioOutputDigitalEncoder::Encode ( void *  buf,
int  len,
AudioFormat  format 
)

Definition at line 148 of file audiooutputdigitalencoder.cpp.

Referenced by AudioOutputBase::AddData().

◆ GetFrames()

size_t AudioOutputDigitalEncoder::GetFrames ( void *  ptr,
int  maxlen 
)

Definition at line 304 of file audiooutputdigitalencoder.cpp.

Referenced by AudioOutputBase::AddData().

◆ Buffered()

int AudioOutputDigitalEncoder::Buffered ( void  ) const
inline

Definition at line 26 of file audiooutputdigitalencoder.h.

Referenced by AudioOutputBase::SetAudiotime().

◆ clear()

void AudioOutputDigitalEncoder::clear ( )

Definition at line 317 of file audiooutputdigitalencoder.cpp.

Referenced by Reset(), and AudioOutputBase::Reset().

◆ Reset()

void AudioOutputDigitalEncoder::Reset ( void  )
private

Definition at line 57 of file audiooutputdigitalencoder.cpp.

Referenced by Init(), and ~AudioOutputDigitalEncoder().

◆ realloc()

void * AudioOutputDigitalEncoder::realloc ( void *  ptr,
size_t  old_size,
size_t  new_size 
)
private

Definition at line 70 of file audiooutputdigitalencoder.cpp.

Referenced by Encode().

Member Data Documentation

◆ m_av_context

AVCodecContext* AudioOutputDigitalEncoder::m_av_context {nullptr}
private

Definition at line 34 of file audiooutputdigitalencoder.h.

Referenced by Buffered(), Encode(), Init(), and Reset().

◆ m_out

outbuf_t* AudioOutputDigitalEncoder::m_out {nullptr}
private

◆ m_out_size

size_t AudioOutputDigitalEncoder::m_out_size {0}
private

◆ m_in

inbuf_t* AudioOutputDigitalEncoder::m_in {nullptr}
private

◆ m_inp

inbuf_t* AudioOutputDigitalEncoder::m_inp {nullptr}
private

◆ m_in_size

size_t AudioOutputDigitalEncoder::m_in_size {0}
private

◆ m_outlen

int AudioOutputDigitalEncoder::m_outlen {0}
private

Definition at line 40 of file audiooutputdigitalencoder.h.

Referenced by clear(), Encode(), and GetFrames().

◆ m_inlen

int AudioOutputDigitalEncoder::m_inlen {0}
private

Definition at line 41 of file audiooutputdigitalencoder.h.

Referenced by Buffered(), clear(), and Encode().

◆ m_samples_per_frame

size_t AudioOutputDigitalEncoder::m_samples_per_frame {0}
private

Definition at line 42 of file audiooutputdigitalencoder.h.

Referenced by Encode(), and Init().

◆ m_spdifenc

SPDIFEncoder* AudioOutputDigitalEncoder::m_spdifenc {nullptr}
private

Definition at line 43 of file audiooutputdigitalencoder.h.

Referenced by Encode(), Init(), and Reset().

◆ m_frame

AVFrame* AudioOutputDigitalEncoder::m_frame {nullptr}
private

Definition at line 44 of file audiooutputdigitalencoder.h.

Referenced by Encode(), and Reset().


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