#include <EncoderInterface.h>
Public Member Functions | |
virtual Settings * | getSettingsApi ()=0 |
virtual void | setFeedback (FeedbackInterface *pFeedbackInterface)=0 |
virtual void | setEncoderCallback (EncoderCallback *pCallback)=0 |
virtual const char * | getVersionInfo () const =0 |
virtual void | setFormatInput (const FormatInfo *pFormatInfo)=0 |
virtual bool | getFormatInput (FormatInfo *pFormatInfo) const =0 |
virtual bool | getFormatOutput (FormatInfo *pFormatInfo) const =0 |
virtual void | deliverFrame (const FrameInput *pFrameInput)=0 |
virtual bool | encodeFrame (FrameOutput *pFrameOutput, FrameResult *pFrameResult=0)=0 |
virtual bool | encode (FrameOutput *pFrameOutput, FrameResult *pFrameResult=0)=0 |
Static Public Member Functions | |
static EncoderInterface * | create () |
static void | destroy (EncoderInterface *pIQEncoderInterface) |
Protected Member Functions | |
virtual | ~EncoderInterface () |
|
|
|
Method for creation of an encoder. IQEncoderInterface::destroy() must later be called in order to free memory.
|
|
Delivers an uncompressed frame to the encoder. Input frame must be maintained valid until either encodeFrame() or encode() has been called. Call with pFrameInput->m_pFrameT=0 to indicate end-of-stream.
|
|
Method for destruction of an encoder.
|
|
Encodes a single chunk of packed bitstream, containing zero, one or two compressed frames. This function must be called repeatedly - on each call it encodes one frame. Only when it returns true is the chunk ready for output.
|
|
Produces a single compressed frame in bitstream order. Caller must handle bitstream processing and packing.
|
|
Gets information about the input format. This should be exactly the same as was previously set using setFormatInput().
|
|
Gets information about output format
|
|
Used to access the encoder's settings API.
|
|
Returns version information about this build of the codec.
|
|
|
|
This function provides the encoder with a pointer to the object that will receive encoding feedback information.
|
|
Tells encoder about colorspace and dimensions of video image. Cannot be called after delivering the first video frame for encoding.
|