Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

VideoRecorder Class Reference

#include <videorec.h>

List of all members.

Detailed Description

Helper class to record a video using libavcodec.

Public Member Functions

 VideoRecorder ()
 ~VideoRecorder ()
void openFile (const char *filename, int width, int height, int rate=1000000)
 Open a file for recording.
void encodeFrame (unsigned char *data)
 Encode frame.
void closeFile ()
 Stop recording to file.

Member Function Documentation

void VideoRecorder::encodeFrame unsigned char *  data  ) 

Encode frame.

data pointer from where to get frame to encode. Length of data must be width*height*4 where width and height and dimension of video declared in openFile. Data are 32 bits RGBA

void VideoRecorder::openFile const char *  filename,
int  width,
int  height,
int  rate = 1000000

Open a file for recording.

Initialise the video recorder

filename Name of file to record to
width Width of video in pixel
height Height of video in pixel
rate Bitrate to use to encode video

The documentation for this class was generated from the following files:
Generated on Mon Oct 24 17:38:26 2005 for Teem by  doxygen 1.4.2