Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

VideoIO classes refactoring#16246

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@VadimLevin
Copy link
Contributor

@VadimLevinVadimLevin commentedDec 27, 2019
edited
Loading

Changes:

  • Addedexplicit toVideoCapture constructors with 2
    arguments, 1 of them has default value
  • Applied library code style
  • Introduced 2 debug macros to improve readability of the code

@VadimLevin
Copy link
ContributorAuthor

This change breaks ABI compatibility.@alalek what do you think about it?

@sa The list of supported API backends cv::VideoCaptureAPIs
*/
CV_WRAPVideoCapture(const String& filename,int apiPreference = CAP_ANY);
CV_WRAPexplicitVideoCapture(const String& filename,int apiPreference = CAP_ANY);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

this is useful change

@sa The list of supported API backends cv::VideoCaptureAPIs
*/
CV_WRAPVideoCapture(int index,int apiPreference = CAP_ANY);
CV_WRAPexplicitVideoCapture(int index,int apiPreference = CAP_ANY);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

useful

@vpisarev
Copy link
Contributor

vpisarev commentedJan 10, 2020
edited
Loading

@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.

@VadimLevin
Copy link
ContributorAuthor

VadimLevin commentedJan 13, 2020
edited
Loading

@vpisarev Yes, I separated work into several independent steps and this was one of them.
virtual methods in this class may lead to unexpected behavior for users, those want to inherited their classes fromVideoWriter andVideoCapture becauseopen andrelease are called in constructor and destructor respectively. If inheritance is not supposed to be, so there is no reasons to leave virtual methods in these classes at all (I try to follow the ruleC.132: Don’t make a function virtual without reason from Cpp Core Guidelines)

@VadimLevinVadimLevinforce-pushed thedev/vlevin/videoio_classes_cleanup branch from5c5ce9d toe2f3446CompareJanuary 22, 2020 08:01
@VadimLevinVadimLevin changed the base branch frommaster to3.4January 22, 2020 08:01
@VadimLevinVadimLevin changed the base branch from3.4 tomasterJanuary 22, 2020 08:02
  - 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
@VadimLevinVadimLevinforce-pushed thedev/vlevin/videoio_classes_cleanup branch frome2f3446 to3fe9dfaCompareJanuary 22, 2020 09:05
@asmorkalov
Copy link
Contributor

@vpisarev@alalek Please take a look again.
@VadimLevin Please update PR description after scope change.

@asmorkalov
Copy link
Contributor

@vpisarev friendly reminder.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vpisarevvpisarevvpisarev left review comments

@alalekalalekalalek approved these changes

Assignees

@alalekalalek

Projects

None yet

Milestone

4.3.0

Development

Successfully merging this pull request may close these issues.

5 participants

@VadimLevin@vpisarev@asmorkalov@alalek@opencv-pushbot

[8]ページ先頭

©2009-2025 Movatter.jp