New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VideoIO classes refactoring #16246
VideoIO classes refactoring #16246
Conversation
This change breaks ABI compatibility. @alalek what do you think about it? |
@@ -628,7 +628,7 @@ class CV_EXPORTS_W VideoCapture | |||
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is useful change
@@ -640,13 +640,13 @@ class CV_EXPORTS_W VideoCapture | |||
|
|||
@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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useful
@VadimLevin, if I remember correctly, the goal was to add some profiles to video writer to enhance functionality. Here I just see many changes and absolutely no steps towards the goal that we stated. I have no principal objections against the changes in .cpp, as long as it passes all the tests. But, except for adding "explicit" to the constructors, please, undo all the changes in header files, because the lost compatibility is too high price for a questionably better style. |
@vpisarev Yes, I separated work into several independent steps and this was one of them. |
5c5ce9d
to
e2f3446
Compare
- 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
e2f3446
to
3fe9dfa
Compare
@vpisarev @alalek Please take a look again. |
@vpisarev friendly reminder. |
Changes:
explicit
toVideoCapture
constructors with 2arguments, 1 of them has default value