00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00024
00025 #ifndef QVBASEREADER_H
00026 #define QVBASEREADER_H
00027
00028 #include<QVImage>
00029
00030 #include<QVVideoReader>
00031
00136 class QVBaseReader
00137 {
00138 public:
00140 QVBaseReader() {};
00141
00143 ~QVBaseReader() {};
00144
00167 virtual bool open( const QString & url_string,
00168 unsigned int & suggested_cols,
00169 unsigned int & suggested_rows,
00170 unsigned int & suggested_fps,
00171 QVVideoReader::OpenOptions & suggested_opts,
00172 QVVideoReader::TSourceMode & source_mode) = 0;
00173
00179 virtual bool close() = 0;
00180
00199 virtual bool grab(QVImage<uChar,1> &imgY_R, QVImage<uChar,1> &imgU_G, QVImage<uChar,1> &imgV_B) = 0;
00200
00210 virtual int getLength() = 0;
00211
00219 virtual int getPos() = 0;
00220
00230 virtual bool seek(int pos) = 0;
00231 };
00232
00233 #endif //QVBASEREADER_H
00234