48 #ifndef vpVideoReader_H
49 #define vpVideoReader_H
53 #include <visp/vpDiskGrabber.h>
54 #include <visp/vpFFMPEG.h>
157 #ifdef VISP_HAVE_FFMPEG
184 vpVideoFormatType formatType;
187 char fileName[FILENAME_MAX];
198 bool firstFrameIndexIsSet;
199 bool lastFrameIndexIsSet;
213 if (frameCount > lastFrame )
219 double getFramerate()
const;
247 void setFileName(
const char *filename);
248 void setFileName(
const std::string &filename);
258 this->firstFrameIndexIsSet =
true;
259 this->firstFrame = firstFrame;
269 this->lastFrameIndexIsSet =
true;
270 this->lastFrame = lastFrame;
274 vpVideoFormatType getFormat(
const char *filename);
275 static std::string getExtension(
const std::string &filename);
276 void findFirstFrameIndex();
277 void findLastFrameIndex();