AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
avtranscoder::IEncoder Class Referenceabstract

#include <IEncoder.hpp>

Public Member Functions

virtual ~IEncoder ()
 
virtual void setupEncoder (const ProfileLoader::Profile &profile=ProfileLoader::Profile())=0
 Setup the encoder. More...
 
virtual bool encodeFrame (const Frame &sourceFrame, CodedData &codedFrame)=0
 Encode a new frame, and get coded frame. More...
 
virtual bool encodeFrame (CodedData &codedFrame)=0
 Get the frames remaining into the encoder. More...
 
virtual ICodecgetCodec ()=0
 Get codec used for encoding. More...
 

Detailed Description

Definition at line 12 of file IEncoder.hpp.

Constructor & Destructor Documentation

virtual avtranscoder::IEncoder::~IEncoder ( )
inlinevirtual

Definition at line 15 of file IEncoder.hpp.

Member Function Documentation

virtual bool avtranscoder::IEncoder::encodeFrame ( const Frame sourceFrame,
CodedData codedFrame 
)
pure virtual

Encode a new frame, and get coded frame.

Parameters
sourceFrameframe that needs to be encoded
codedFrameoutput encoded coded data (first frames can be delayed)
Returns
status of encoding
Exceptions
runtime_errorif the encoded process failed.

Implemented in avtranscoder::AudioEncoder, and avtranscoder::VideoEncoder.

Referenced by avtranscoder::StreamTranscoder::processTranscode().

virtual bool avtranscoder::IEncoder::encodeFrame ( CodedData codedFrame)
pure virtual

Get the frames remaining into the encoder.

Parameters
codedFrameoutput encoded data
Returns
status of encoding
Exceptions
runtime_errorif the encoded process failed.

Implemented in avtranscoder::AudioEncoder, and avtranscoder::VideoEncoder.

virtual ICodec& avtranscoder::IEncoder::getCodec ( )
pure virtual

Get codec used for encoding.

Returns
a reference to the codec

Implemented in avtranscoder::AudioEncoder, and avtranscoder::VideoEncoder.

Referenced by avtranscoder::StreamTranscoder::preProcessCodecLatency().

virtual void avtranscoder::IEncoder::setupEncoder ( const ProfileLoader::Profile profile = ProfileLoader::Profile())
pure virtual

Setup the encoder.

Parameters
profileset encoder parameters from the given profile
Note
Open the encoder.

Implemented in avtranscoder::AudioEncoder, and avtranscoder::VideoEncoder.


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