Skip to content
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

int to proper enum type #1730

Closed
wants to merge 9 commits into from
Closed

Conversation

cv3d
Copy link
Contributor

@cv3d cv3d commented Aug 23, 2018

Merge with opencv/opencv#12288 and opencv/opencv_extra#515

This pullrequest changes

There are hundreds of unnamed enums, and they are being passed as int in the C++ interface.
In order to avoid passing a wrong value, and to maintain good practices, the hope is to name most of these enums, and change the int arguments into the proper enum types wherever possible.

#force_builders=ARMv7,ARMv8
force_builders=Custom
docker_image:Custom=ubuntu-cuda:16.04

@@ -278,7 +278,7 @@ bool ocl_getAllDCTDescriptorsForImage( const Mat *imgCh, std::vector< GPCPatchDe
(int)globSize[0], (int)globSize[1], (int)patchRadius )
.run( 2, globSize, 0, true ) == false )
return false;
Mat cpuOut = out.getMat( 0 );
Copy link
Member

Choose a reason for hiding this comment

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

ACCESS_READ should be here.

@cv3d cv3d force-pushed the improvements/enum_interface branch from b3ee644 to ea0c8be Compare August 23, 2018 10:25
@alalek
Copy link
Member

alalek commented Aug 23, 2018

@cv3d Please rebase this patch onto 3.4 branch.

@cv3d cv3d changed the base branch from master to 3.4 August 23, 2018 21:02
@cv3d cv3d force-pushed the improvements/enum_interface branch from ea0c8be to 271f2bc Compare August 23, 2018 21:05
@cv3d cv3d changed the base branch from 3.4 to master August 23, 2018 22:32
@cv3d
Copy link
Contributor Author

cv3d commented Aug 23, 2018

@alalek I opened a new PR #1733 instead.
I will keep this PR for future commits related to the int to enum changes

@cv3d cv3d force-pushed the improvements/enum_interface branch 14 times, most recently from a04b8d2 to 80c87b9 Compare August 30, 2018 20:40
@cv3d cv3d force-pushed the improvements/enum_interface branch 7 times, most recently from 4bf90e6 to f7e2c88 Compare September 4, 2018 17:03
@cv3d cv3d force-pushed the improvements/enum_interface branch 11 times, most recently from e0f8c10 to fee14d4 Compare September 12, 2018 19:35
@cv3d cv3d force-pushed the improvements/enum_interface branch 5 times, most recently from 97fd65e to 41564d1 Compare September 16, 2018 20:04
@cv3d cv3d force-pushed the improvements/enum_interface branch 3 times, most recently from fad2209 to b84f892 Compare September 20, 2018 08:32
@cv3d cv3d force-pushed the improvements/enum_interface branch from b84f892 to 0184e33 Compare September 20, 2018 09:47
@vpisarev vpisarev closed this Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants