00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00024
00025 #ifndef QVYUV4MPEG2RECORDER_H
00026 #define QVYUV4MPEG2RECORDER_H
00027
00028 #include <QVProcessingBlock>
00029 #include <QVImage>
00030 #include <QFile>
00031
00059 class QVYUV4MPEG2WriterBlock: public QVProcessingBlock
00060 {
00061 public:
00062 QVYUV4MPEG2WriterBlock(QString name, const QString fileName = "pru.mpg", const int fps = 25, const bool recording = true);
00063
00064 ~QVYUV4MPEG2WriterBlock();
00065
00066 bool linkUnspecifiedInputProperty(QVPropertyContainer *srcCont, QString srcProp, LinkType linkType);
00067
00068 void iterate();
00069
00070 public slots:
00071 void processTrigger(QString name);
00072
00073 private:
00074 bool initiated, rgbMode, recording, realTimeMode;
00075 QFile videoFile;
00076 uint cols, rows;
00077
00078 void grabFrame();
00079 };
00080
00081 #endif