mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
videoio: backends priority list
This commit is contained in:
@@ -1530,8 +1530,11 @@ void MotionJpegWriter::writeFrameData( const uchar* data, int step, int colorspa
|
||||
|
||||
}
|
||||
|
||||
Ptr<IVideoWriter> createMotionJpegWriter( const String& filename, double fps, Size frameSize, bool iscolor )
|
||||
Ptr<IVideoWriter> createMotionJpegWriter(const String& filename, int fourcc, double fps, Size frameSize, bool iscolor)
|
||||
{
|
||||
if (fourcc != CV_FOURCC('M', 'J', 'P', 'G'))
|
||||
return Ptr<IVideoWriter>();
|
||||
|
||||
Ptr<IVideoWriter> iwriter = makePtr<mjpeg::MotionJpegWriter>(filename, fps, frameSize, iscolor);
|
||||
if( !iwriter->isOpened() )
|
||||
iwriter.release();
|
||||
|
||||
Reference in New Issue
Block a user