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

View File

@@ -586,10 +586,10 @@ public:
protected:
Ptr<CvCapture> cap;
Ptr<IVideoCapture> icap;
private:
static Ptr<IVideoCapture> createCameraCapture(int index);
};
class IVideoWriter;
/** @brief Video writer class.
*/
class CV_EXPORTS_W VideoWriter
@@ -651,6 +651,10 @@ public:
protected:
Ptr<CvVideoWriter> writer;
Ptr<IVideoWriter> iwriter;
static Ptr<IVideoWriter> create(const String& filename, int fourcc, double fps,
Size frameSize, bool isColor = true);
};
template<> CV_EXPORTS void DefaultDeleter<CvCapture>::operator ()(CvCapture* obj) const;