AvTranscoder
0.9.4
C++APIforLibav/FFmpeg
|
#include <VideoCodec.hpp>
Public Member Functions | |
VideoCodec (const ECodecType type, const std::string &codecName="") | |
VideoCodec (const ECodecType type, const AVCodecID codecId) | |
VideoCodec (const ECodecType type, AVCodecContext &avCodecContext) | |
VideoFrameDesc | getVideoFrameDesc () const |
void | setImageParameters (const VideoFrameDesc &videoFrameDesc) |
![]() | |
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 VideoCodec.hpp.
avtranscoder::VideoCodec::VideoCodec | ( | const ECodecType | type, |
const std::string & | codecName = "" |
||
) |
Definition at line 9 of file VideoCodec.cpp.
avtranscoder::VideoCodec::VideoCodec | ( | const ECodecType | type, |
const AVCodecID | codecId | ||
) |
Definition at line 14 of file VideoCodec.cpp.
avtranscoder::VideoCodec::VideoCodec | ( | const ECodecType | type, |
AVCodecContext & | avCodecContext | ||
) |
Definition at line 19 of file VideoCodec.cpp.
VideoFrameDesc avtranscoder::VideoCodec::getVideoFrameDesc | ( | ) | const |
Definition at line 24 of file VideoCodec.cpp.
References avtranscoder::ICodec::_avCodecContext, and avtranscoder::VideoFrameDesc::_fps.
Referenced by avtranscoder::VideoReader::init(), and avtranscoder::StreamTranscoder::StreamTranscoder().
void avtranscoder::VideoCodec::setImageParameters | ( | const VideoFrameDesc & | videoFrameDesc | ) |
Definition at line 34 of file VideoCodec.cpp.
References avtranscoder::ICodec::_avCodecContext, avtranscoder::VideoFrameDesc::_fps, avtranscoder::VideoFrameDesc::_height, avtranscoder::VideoFrameDesc::_pixelFormat, and avtranscoder::VideoFrameDesc::_width.
Referenced by parseConfigFile(), and avtranscoder::VideoEncoder::setupVideoEncoder().