00001 // (c) 2004 Stephane Magnenat, this code is GPL 00002 00003 #ifndef __VIDEOREC_H 00004 #define __VIDEOREC_H 00005 00006 #ifdef HAVE_AVCODEC 00007 00009 class VideoRecorder 00010 { 00011 public: 00013 VideoRecorder(); 00015 ~VideoRecorder(); 00021 void openFile(const char *filename, int width, int height, int rate = 1000000); 00024 void encodeFrame(unsigned char *data); 00026 void closeFile(); 00027 }; 00028 00029 #endif // HAVE_AVCODEC 00030 00031 #endif