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

QTencoder.h

Go to the documentation of this file.
00001 /*************************************************************************
00008  *
00009  * Source code for Real Time Image Library (libRTImage)
00010  *
00011  * Leeds Vision Group give permission for this code to be copied, modified
00012  * and distributed within the University of Leeds subject to the following
00013  * conditions:-
00014  *
00015  * - The code is not to be used for commercial gain.
00016  * - The code and use thereof will be attributed to the authors where
00017  *   appropriate (including demonstrations which rely on it's use).
00018  * - All modified, distributions of the source files will retain this header.
00019  *
00020  ****************************************************************************/
00021 
00022 #ifndef QT_ENCODER_H
00023 #define QT_ENCODER_H
00024 
00025 extern "C" {
00026 #include <quicktime.h>
00027 }
00028 #include <ImageRGB.h>
00029 #include <ImageGrey.h>
00030 
00031 class QTencoder
00036 {
00037 protected:
00038         quicktime_t*    outfile;        
00039         unsigned char** buff;           
00040         unsigned int    width;          
00041         unsigned int    height;         
00042         float           frame_rate;     
00043 
00044 public:
00046         QTencoder(char* path ,unsigned int width, 
00047                   unsigned int height, float frame_rate, int quality);
00048         ~QTencoder();
00049 
00051         bool operator << (ImageRGB&) ;
00052 
00054         bool operator << (ImageGrey&) ;
00055 
00057         void set_framerate(float fr);
00058 
00060         void close();
00061 };
00062 
00063 #endif

Generated at Fri Aug 13 17:29:21 2004 for libRTImage by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001