Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

QTencoder Class Reference

A class for writing Quicktime movies Uses the Quicktime4Linux libraries. More...

#include <QTencoder.h>

List of all members.

Public Methods

 QTencoder (char *path,unsigned int width, unsigned int height, float frame_rate, int quality)
 Initialise a quicktime movie to write to. More...

 ~QTencoder ()
 QTencoder destructor.

bool operator<< (ImageRGB &)
 Write an ImageRGB frame to the qt movie. More...

bool operator<< (ImageGrey &)
 Write an ImageGrey frame to the qt movie. More...

void set_framerate (float fr)
 Set movie framerate.

void close ()
 Very important close file function! More...


Protected Attributes

quicktime_t* outfile
 QT file handle.

unsigned char** buff
 Buffer for decoded data.

unsigned int width
 QT width.

unsigned int height
 QT height.

float frame_rate
 QT frame rate.


Detailed Description

A class for writing Quicktime movies Uses the Quicktime4Linux libraries.

Definition at line 31 of file QTencoder.h.


Constructor & Destructor Documentation

QTencoder::QTencoder ( char * path,
unsigned int width,
unsigned int height,
float frame_rate,
int quality )
 

Initialise a quicktime movie to write to.

Sets up a quicktime movie file to write to

Parameters:
path   The filename to write the movie to
outfile   The quicktime movie file
width   The width of the Image/movie
height   The height of the Image/movie
frame_rate   Framerate to playback at
quality   JPEG quality factor for compression 1=low 75=normal 90=high 100=best

Definition at line 36 of file QTencoder.cpp.


Member Function Documentation

void QTencoder::close ( )
 

Very important close file function!

Note:
VERY IMPORTANT to call this function to tidy up the quicktime file

Definition at line 81 of file QTencoder.cpp.

bool QTencoder::operator<< ( ImageGrey & img )
 

Write an ImageGrey frame to the qt movie.

Parameters:
img   is of type ImageGrey

Definition at line 113 of file QTencoder.cpp.

bool QTencoder::operator<< ( ImageRGB & img )
 

Write an ImageRGB frame to the qt movie.

Parameters:
img   is of type ImageRGB

Definition at line 90 of file QTencoder.cpp.


The documentation for this class was generated from the following files:
Generated at Fri Aug 13 17:29:22 2004 for libRTImage by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001