00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00024
00025 #ifndef QVVIDEORECORDER_H
00026 #define QVVIDEORECORDER_H
00027
00028 #include <QVWorker>
00029 #include <qvio.h>
00030
00074 class QVVideoRecorder: public QVWorker
00075 {
00076 private:
00077 bool initiated, rgbMode;
00078 QFile videoFile;
00079
00080 bool linkProperty(QString sourcePropertyName, QVPropertyContainer *destinyContainer, QString destinyPropertyName, LinkType linkType);
00081
00082 public:
00083 QVVideoRecorder(QString name, const QString fileName = "pru.mpg", const int fps = 25);
00084 ~QVVideoRecorder();
00085
00087 bool linkProperty(QVWorker &worker, const QString rgbImageName);
00088
00090 bool linkProperty(QVWorker &worker, const QString yImageName, const QString uImageName, const QString vImageName);
00091
00092 void iterate();
00093
00094 void setFPS(const int fps) { setPropertyValue<int>("FPS", fps); }
00095
00096 void setVideoFileName(const QString &videoFileName) { setPropertyValue<QString>("Record file name", videoFileName); }
00097 };
00098
00099 #endif