00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00024
00025 #ifndef QVYUV4MPEG2READER_H
00026 #define QVYUV4MPEG2READER_H
00027
00028 #include <QFile>
00029
00030 #include <QVBaseReader>
00031
00032 class QVYUV4MPEG2Reader : public QVBaseReader
00033 {
00034 public:
00035 QVYUV4MPEG2Reader() : QVBaseReader() { };
00036
00037 ~QVYUV4MPEG2Reader() { };
00038
00039 private:
00040 QFile videoFile;
00041 int cols,rows,fps;
00042 bool noLoop,realTime;
00043 int header_size;
00044
00045 protected:
00046 bool open(const QString & url_string,
00047 unsigned int & suggested_cols, unsigned int & suggested_rows,
00048 unsigned int & suggested_fps, QVVideoReader::OpenOptions & suggested_opts,
00049 QVVideoReader::TSourceMode & source_mode);
00050 bool close();
00051 bool grab(QVImage<uChar,1> &imgY, QVImage<uChar,1> &imgU, QVImage<uChar,1> &imgV);
00052 int getLength();
00053 int getPos();
00054 bool seek(int pos);
00055 };
00056 #endif // QVYUV4MPEG2READER_H