EMIPLIB
Public Member Functions | Static Public Member Functions

MIPAVCodecEncoder Class Reference

A libavcodec based H.263+ encoder. More...

#include <mipavcodecencoder.h>

Inheritance diagram for MIPAVCodecEncoder:
Inheritance graph
[legend]
Collaboration diagram for MIPAVCodecEncoder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool init (int width, int height, real_t framerate, int bitrate=0)
 Initializes the encoder.
bool destroy ()
 De-initializes the encoder.

Static Public Member Functions

static void initAVCodec ()
 Initializes the libavcodec library.

Detailed Description

This component is a H.263+ encoder, based on the libavcodec library. It accepts raw video messages in YUV420P format and creates encoded video messages with subtype MIPENCODEDVIDEOMESSAGE_TYPE_H263P.


Member Function Documentation

bool MIPAVCodecEncoder::destroy ( )
bool MIPAVCodecEncoder::init ( int  width,
int  height,
real_t  framerate,
int  bitrate = 0 
)

This function initializes the encoder.

Parameters:
widthThe width of incoming video frames.
heightThe height of incoming video frames.
framerateThe framerate.
bitrateThe bitrate generated by the encoder. If the value is zero or negative, a default value is used.
static void MIPAVCodecEncoder::initAVCodec ( ) [static]

This function initializes the libavcodec library. The library should only be initialized once in an application.


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