AvTranscoder
0.9.4
C++APIforLibav/FFmpeg
|
#include <AudioCodec.hpp>
Public Member Functions | |
AudioCodec (const ECodecType type, const std::string &codecName="") | |
AudioCodec (const ECodecType type, const AVCodecID codecId) | |
AudioCodec (const ECodecType type, AVCodecContext &avCodecContext) | |
AudioFrameDesc | getAudioFrameDesc () const |
void | setAudioParameters (const AudioFrameDesc &audioFrameDesc) |
![]() | |
ICodec (const ECodecType type, const std::string &codecName) | |
ICodec (const ECodecType type, const AVCodecID codecId) | |
ICodec (const ECodecType type, AVCodecContext &avCodecContext) | |
virtual | ~ICodec ()=0 |
void | openCodec () |
Initialize the codec context. More... | |
std::string | getCodecName () const |
AVCodecID | getCodecId () const |
ECodecType | getCodecType () const |
int | getLatency () const |
OptionArray | getOptions () |
Get options as array. More... | |
OptionMap & | getOptionsMap () |
Get options as map. More... | |
Option & | getOption (const std::string &optionName) |
AVCodecContext & | getAVCodecContext () |
const AVCodecContext & | getAVCodecContext () const |
AVCodec & | getAVCodec () |
const AVCodec & | getAVCodec () const |
Additional Inherited Members | |
![]() | |
AVCodecContext * | _avCodecContext |
Full codec instance description (has ownership) More... | |
AVCodec * | _avCodec |
Codec abstract description. More... | |
const bool | _isCodecContextAllocated |
Is the AVCodecContext allocated by the class. More... | |
ECodecType | _type |
OptionMap | _options |
Definition at line 10 of file AudioCodec.hpp.
avtranscoder::AudioCodec::AudioCodec | ( | const ECodecType | type, |
const std::string & | codecName = "" |
||
) |
Definition at line 9 of file AudioCodec.cpp.
avtranscoder::AudioCodec::AudioCodec | ( | const ECodecType | type, |
const AVCodecID | codecId | ||
) |
Definition at line 14 of file AudioCodec.cpp.
avtranscoder::AudioCodec::AudioCodec | ( | const ECodecType | type, |
AVCodecContext & | avCodecContext | ||
) |
Definition at line 19 of file AudioCodec.cpp.
AudioFrameDesc avtranscoder::AudioCodec::getAudioFrameDesc | ( | ) | const |
Definition at line 24 of file AudioCodec.cpp.
References avtranscoder::ICodec::_avCodecContext.
Referenced by avtranscoder::AudioReader::init(), and avtranscoder::StreamTranscoder::StreamTranscoder().
void avtranscoder::AudioCodec::setAudioParameters | ( | const AudioFrameDesc & | audioFrameDesc | ) |
Definition at line 30 of file AudioCodec.cpp.
References avtranscoder::ICodec::_avCodecContext, avtranscoder::AudioFrameDesc::_nbChannels, avtranscoder::AudioFrameDesc::_sampleFormat, and avtranscoder::AudioFrameDesc::_sampleRate.
Referenced by parseConfigFile(), and avtranscoder::AudioEncoder::setupAudioEncoder().