mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
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
This commit is contained in:
@@ -628,7 +628,7 @@ public:
|
||||
implementation if multiple are available: e.g. cv::CAP_FFMPEG or cv::CAP_IMAGES or cv::CAP_DSHOW.
|
||||
@sa The list of supported API backends cv::VideoCaptureAPIs
|
||||
*/
|
||||
CV_WRAP VideoCapture(const String& filename, int apiPreference = CAP_ANY);
|
||||
CV_WRAP explicit VideoCapture(const String& filename, int apiPreference = CAP_ANY);
|
||||
|
||||
/** @overload
|
||||
@brief Opens a camera for video capturing
|
||||
@@ -640,7 +640,7 @@ public:
|
||||
|
||||
@sa The list of supported API backends cv::VideoCaptureAPIs
|
||||
*/
|
||||
CV_WRAP VideoCapture(int index, int apiPreference = CAP_ANY);
|
||||
CV_WRAP explicit VideoCapture(int index, int apiPreference = CAP_ANY);
|
||||
|
||||
/** @brief Default destructor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user