AndroMeta  2.0.0
Public Member Functions
Meta::MVideoEncoder Class Reference

Encodes a series of frames to an MPEG file. More...

#include <MVideoEncoder.h>

Inheritance diagram for Meta::MVideoEncoder:
Meta::MVideoEncoderBase Meta::MObject Meta::MProcessor Meta::MObjectBase

List of all members.

Public Member Functions

 MVideoEncoder (int width, int height, const mstr &outPath, double quality, int timeBase)
 ~MVideoEncoder ()
void addFrame (unsigned char *data, bool flip=false)
void finalize ()
mnode process (mnode n, uint32_t flags=0)

Detailed Description

Encodes a series of frames to an MPEG file.


Constructor & Destructor Documentation

Meta::MVideoEncoder::MVideoEncoder ( int  width,
int  height,
const mstr outPath,
double  quality,
int  timeBase 
)

Constructor.

Parameters:
widthThe width in pixels of the movie file. Must be a multiple of 4.
heightThe height in pixels of the movie file. Must be a multiple of 4.
qualityImage/video quality 0..100

Destructor.


Member Function Documentation

void Meta::MVideoEncoder::addFrame ( unsigned char *  data,
bool  flip = false 
) [virtual]

Add a frame to be encoded.

Parameters:
dataThe raw pixel data with 8 bits per pixel in RGB.
fliptrue to flip the image about the y-axis.

Implements Meta::MVideoEncoderBase.

void Meta::MVideoEncoder::finalize ( ) [virtual]

Finalize the movie. Implicit in the destructor.

Implements Meta::MVideoEncoderBase.

mnode Meta::MVideoEncoder::process ( mnode  n,
uint32_t  flags = 0 
) [virtual]

Process method.

Reimplemented from Meta::MObject.


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