Skip to content

Commit 460e9bf

Browse files
committed
videoio: drop changes from legacy C-API header
1 parent 23f4bff commit 460e9bf

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

modules/videoio/include/opencv2/videoio.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ enum VideoCaptureAPIs {
115115
CAP_FFMPEG = 1900, //!< Open and record video file or stream using the FFMPEG library
116116
CAP_IMAGES = 2000, //!< OpenCV Image Sequence (e.g. img_%02d.jpg)
117117
CAP_ARAVIS = 2100, //!< Aravis SDK
118-
CAP_OCV_MJPEG = 2200, //!< Built-in MotionJPEG codec
118+
CAP_OPENCV_MJPEG = 2200, //!< Built-in OpenCV MotionJPEG codec
119119
CAP_INTEL_MFX = 2300 //!< Intel MediaSDK
120120
};
121121

modules/videoio/include/opencv2/videoio/videoio_c.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ enum
124124
CV_CAP_FFMPEG = 1900, // FFMPEG
125125
CV_CAP_IMAGES = 2000, // OpenCV Image Sequence (e.g. img_%02d.jpg)
126126

127-
CV_CAP_ARAVIS = 2100, // Aravis GigE SDK
128-
CV_CAP_OCV_MJPEG = 2200 // Built-in MotionJPEG codec
127+
CV_CAP_ARAVIS = 2100 // Aravis GigE SDK
129128
};
130129

131130
/** @brief start capturing frames from camera: index = camera_index + domain_offset (CV_CAP_*)

modules/videoio/src/cap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ static Ptr<IVideoWriter> IVideoWriter_create(const String& filename, int apiPref
575575
}
576576
#endif
577577

578-
if( (apiPreference == CAP_OCV_MJPEG || apiPreference == CAP_ANY)
578+
if( (apiPreference == CAP_OPENCV_MJPEG || apiPreference == CAP_ANY)
579579
&& _fourcc == CV_FOURCC('M', 'J', 'P', 'G') )
580580
iwriter = createMotionJpegWriter(filename, fps, frameSize, isColor);
581581

0 commit comments

Comments
 (0)