videoio: drop changes from legacy C-API header
authorAlexander Alekhin <alexander.alekhin@intel.com>
Sun, 25 Jun 2017 20:05:07 +0000 (23:05 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Sun, 25 Jun 2017 20:25:56 +0000 (23:25 +0300)
modules/videoio/include/opencv2/videoio.hpp
modules/videoio/include/opencv2/videoio/videoio_c.h
modules/videoio/src/cap.cpp

index 13149cb..aa3f31a 100644 (file)
@@ -115,7 +115,7 @@ enum VideoCaptureAPIs {
        CAP_FFMPEG       = 1900,         //!< Open and record video file or stream using the FFMPEG library
        CAP_IMAGES       = 2000,         //!< OpenCV Image Sequence (e.g. img_%02d.jpg)
        CAP_ARAVIS       = 2100,         //!< Aravis SDK
-       CAP_OCV_MJPEG    = 2200,         //!< Built-in MotionJPEG codec
+       CAP_OPENCV_MJPEG = 2200,         //!< Built-in OpenCV MotionJPEG codec
        CAP_INTEL_MFX    = 2300          //!< Intel MediaSDK
      };
 
index 48581dd..024633c 100644 (file)
@@ -124,8 +124,7 @@ enum
     CV_CAP_FFMPEG = 1900,    // FFMPEG
     CV_CAP_IMAGES = 2000,    // OpenCV Image Sequence (e.g. img_%02d.jpg)
 
-    CV_CAP_ARAVIS = 2100,     // Aravis GigE SDK
-    CV_CAP_OCV_MJPEG = 2200   // Built-in MotionJPEG codec
+    CV_CAP_ARAVIS = 2100     // Aravis GigE SDK
 };
 
 /** @brief start capturing frames from camera: index = camera_index + domain_offset (CV_CAP_*)
index d3e4f94..d4b49e9 100644 (file)
@@ -575,7 +575,7 @@ static Ptr<IVideoWriter> IVideoWriter_create(const String& filename, int apiPref
     }
 #endif
 
-    if( (apiPreference == CAP_OCV_MJPEG || apiPreference == CAP_ANY)
+    if( (apiPreference == CAP_OPENCV_MJPEG || apiPreference == CAP_ANY)
             && _fourcc == CV_FOURCC('M', 'J', 'P', 'G') )
         iwriter = createMotionJpegWriter(filename, fps, frameSize, isColor);