AvTranscoder
0.9.4
C++APIforLibav/FFmpeg
|
#include <IDecoder.hpp>
Public Member Functions | |
virtual | ~IDecoder () |
virtual void | setupDecoder (const ProfileLoader::Profile &profile=ProfileLoader::Profile()) |
Setup the decoder. More... | |
virtual bool | decodeNextFrame (Frame &frameBuffer)=0 |
Decode next frame. More... | |
virtual bool | decodeNextFrame (Frame &frameBuffer, const size_t channelIndex)=0 |
Decode substream of next frame. More... | |
virtual void | setNextFrame (Frame &inputFrame) |
Set the next frame of the input stream (which bypass the work of decoding) More... | |
virtual void | flushDecoder () |
Reset the internal decoder state / flush internal buffers. More... | |
Definition at line 11 of file IDecoder.hpp.
|
inlinevirtual |
Definition at line 14 of file IDecoder.hpp.
|
pure virtual |
Decode next frame.
frameBuffer | the frame decoded the frameBuffer reference belongs to the decoder and is valid only until the next call to this function or until closing or flushing the decoder. The caller may not write to it. |
Implemented in avtranscoder::AudioGenerator, avtranscoder::VideoGenerator, avtranscoder::AudioDecoder, and avtranscoder::VideoDecoder.
Referenced by avtranscoder::StreamTranscoder::processTranscode(), and avtranscoder::IReader::readFrameAt().
|
pure virtual |
Decode substream of next frame.
frameBuffer | the frame decoded |
channelIndex | index of channel to extract |
Implemented in avtranscoder::AudioGenerator, avtranscoder::VideoGenerator, avtranscoder::AudioDecoder, and avtranscoder::VideoDecoder.
|
inlinevirtual |
Reset the internal decoder state / flush internal buffers.
Reimplemented in avtranscoder::AudioDecoder, and avtranscoder::VideoDecoder.
Definition at line 53 of file IDecoder.hpp.
Referenced by avtranscoder::IReader::readFrameAt().
|
inlinevirtual |
Set the next frame of the input stream (which bypass the work of decoding)
inputFrame | the new next frame |
Reimplemented in avtranscoder::AudioGenerator, and avtranscoder::VideoGenerator.
Definition at line 46 of file IDecoder.hpp.
|
inlinevirtual |
Setup the decoder.
profile | set decoder parameters from the given profile |
Reimplemented in avtranscoder::AudioDecoder, and avtranscoder::VideoDecoder.
Definition at line 21 of file IDecoder.hpp.
Referenced by avtranscoder::AudioReader::init(), and avtranscoder::VideoReader::init().