48 #ifndef vpVideoReader_H
49 #define vpVideoReader_H
53 #include <visp/vpDiskGrabber.h>
54 #include <visp/vpFFMPEG.h>
162 #ifdef VISP_HAVE_FFMPEG
189 vpVideoFormatType formatType;
192 char fileName[FILENAME_MAX];
203 bool firstFrameIndexIsSet;
204 bool lastFrameIndexIsSet;
218 if (frameCount > lastFrame )
224 double getFramerate()
const;
252 void setFileName(
const char *filename);
253 void setFileName(
const std::string &filename);
263 this->firstFrameIndexIsSet =
true;
264 this->firstFrame = first_frame;
274 this->lastFrameIndexIsSet =
true;
275 this->lastFrame = last_frame;
279 vpVideoFormatType getFormat(
const char *filename);
280 static std::string getExtension(
const std::string &filename);
281 void findFirstFrameIndex();
282 void findLastFrameIndex();
long getFrameIndex() const
long getLastFrameIndex() const
Class that enables to manipulate easily a video file or a sequence of images. As it inherits from the...
virtual void open(vpImage< unsigned char > &I)=0
This class interfaces the FFmpeg library to enable video stream reading or writing.
Class to grab (ie. read) images from the disk.
Base class for all video devices. It is designed to provide a front end to video sources.
void setLastFrameIndex(const long last_frame)
void setFirstFrameIndex(const long first_frame)
virtual void acquire(vpImage< unsigned char > &I)=0