Skip to content

Commit 3fe9dfa

Browse files
committed
VideoIO classes refactoring
- Added `explicit` to `VideoCapture` constructors with 2 arguments, 1 of them has default value - Applied library code style - Introduced 2 debug macros to improve readability of the code
1 parent 89d3f95 commit 3fe9dfa

File tree

2 files changed

+209
-79
lines changed

2 files changed

+209
-79
lines changed

modules/videoio/include/opencv2/videoio.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ class CV_EXPORTS_W VideoCapture
628628
implementation if multiple are available: e.g. cv::CAP_FFMPEG or cv::CAP_IMAGES or cv::CAP_DSHOW.
629629
@sa The list of supported API backends cv::VideoCaptureAPIs
630630
*/
631-
CV_WRAP VideoCapture(const String& filename, int apiPreference = CAP_ANY);
631+
CV_WRAP explicit VideoCapture(const String& filename, int apiPreference = CAP_ANY);
632632

633633
/** @overload
634634
@brief Opens a camera for video capturing
@@ -640,7 +640,7 @@ class CV_EXPORTS_W VideoCapture
640640
641641
@sa The list of supported API backends cv::VideoCaptureAPIs
642642
*/
643-
CV_WRAP VideoCapture(int index, int apiPreference = CAP_ANY);
643+
CV_WRAP explicit VideoCapture(int index, int apiPreference = CAP_ANY);
644644

645645
/** @brief Default destructor
646646

0 commit comments

Comments
 (0)