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();
void setFirstFrameIndex(const long firstFrame)
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
void setLastFrameIndex(const long lastFrame)
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.
virtual void acquire(vpImage< unsigned char > &I)=0