Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
62fab57c
Commit
62fab57c
authored
Mar 24, 2017
by
Vitaly Tuzov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tune OpenVX HAL usability checks to distinguish multiplication and color conversion kernels
parent
9620cb55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
openvx_hal.cpp
3rdparty/openvx/hal/openvx_hal.cpp
+16
-4
No files found.
3rdparty/openvx/hal/openvx_hal.cpp
View file @
62fab57c
...
...
@@ -84,10 +84,22 @@ inline bool dimTooBig(int size)
inline
bool
skipSmallImages
(
int
w
,
int
h
,
int
kernel_id
)
{
//OpenVX calls have essential overhead so it make sense to skip them for small images
if
(
w
*
h
<
1920
*
1080
)
return
true
;
else
return
false
;
switch
(
kernel_id
)
{
case
VX_KERNEL_MULTIPLY
:
if
(
w
*
h
<
640
*
480
)
return
true
;
break
;
case
VX_KERNEL_COLOR_CONVERT
:
if
(
w
*
h
<
2048
*
1536
)
return
true
;
break
;
default
:
if
(
w
*
h
<
3840
*
2160
)
return
true
;
break
;
}
return
false
;
}
inline
void
setConstantBorder
(
ivx
::
border_t
&
border
,
vx_uint8
val
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment