1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

added self-contained motion jpeg encoder (filename should end with .avi; fourcc should be "MJPG"

This commit is contained in:
Vadim Pisarevsky
2015-03-26 00:39:29 +03:00
parent 0545aeb11b
commit 3df6b6fdcf
8 changed files with 1596 additions and 62 deletions
+16 -1
View File
@@ -168,9 +168,24 @@ namespace cv
virtual double getProperty(int) const { return 0; }
virtual bool setProperty(int, double) { return 0; }
virtual bool grabFrame() = 0;
virtual bool retrieveFrame(int, cv::OutputArray) = 0;
virtual bool retrieveFrame(int, OutputArray) = 0;
virtual bool isOpened() const = 0;
virtual int getCaptureDomain() { return CAP_ANY; } // Return the type of the capture object: CAP_VFW, etc...
};
class IVideoWriter
{
public:
virtual ~IVideoWriter() {}
virtual double getProperty(int) const { return 0; }
virtual bool setProperty(int, double) { return 0; }
virtual bool isOpened() const = 0;
virtual void write(InputArray) = 0;
};
Ptr<IVideoCapture> createMotionJpegCapture(const String& filename);
Ptr<IVideoWriter> createMotionJpegWriter( const String& filename, double fps, Size frameSize, bool iscolor );
};
#endif /* __VIDEOIO_H_ */