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
5ebf066d
Commit
5ebf066d
authored
Mar 14, 2017
by
Vitaly Tuzov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated OpenVX detector and wrappers to handle Reference attribute names change
parent
3e2b05b0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
openvx_hal.cpp
3rdparty/openvx/hal/openvx_hal.cpp
+2
-1
ivx.hpp
3rdparty/openvx/include/ivx.hpp
+6
-0
FindOpenVX.cmake
cmake/FindOpenVX.cmake
+14
-0
openvx_refenum_test.cpp
cmake/checks/openvx_refenum_test.cpp
+5
-0
No files found.
3rdparty/openvx/hal/openvx_hal.cpp
View file @
5ebf066d
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#include <cfloat>
#include <cfloat>
#include <climits>
#include <climits>
#include <cmath>
#include <cmath>
#include <cstring>
//==================================================================================================
//==================================================================================================
// utility
// utility
...
@@ -1076,7 +1077,7 @@ int ovx_hal_integral(int depth, int sdepth, int, const uchar * a, size_t astep,
...
@@ -1076,7 +1077,7 @@ int ovx_hal_integral(int depth, int sdepth, int, const uchar * a, size_t astep,
ib
=
ivx
::
Image
::
createFromHandle
(
ctx
,
VX_DF_IMAGE_U32
,
ib
=
ivx
::
Image
::
createFromHandle
(
ctx
,
VX_DF_IMAGE_U32
,
ivx
::
Image
::
createAddressing
(
w
,
h
,
4
,
(
vx_int32
)
bstep
),
(
unsigned
int
*
)(
b
+
bstep
+
sizeof
(
unsigned
int
)));
ivx
::
Image
::
createAddressing
(
w
,
h
,
4
,
(
vx_int32
)
bstep
),
(
unsigned
int
*
)(
b
+
bstep
+
sizeof
(
unsigned
int
)));
ivx
::
IVX_CHECK_STATUS
(
vxuIntegralImage
(
ctx
,
ia
,
ib
));
ivx
::
IVX_CHECK_STATUS
(
vxuIntegralImage
(
ctx
,
ia
,
ib
));
memset
(
b
,
0
,
(
w
+
1
)
*
sizeof
(
unsigned
int
));
std
::
memset
(
b
,
0
,
(
w
+
1
)
*
sizeof
(
unsigned
int
));
b
+=
bstep
;
b
+=
bstep
;
for
(
int
i
=
0
;
i
<
h
;
i
++
,
b
+=
bstep
)
for
(
int
i
=
0
;
i
<
h
;
i
++
,
b
+=
bstep
)
{
{
...
...
3rdparty/openvx/include/ivx.hpp
View file @
5ebf066d
...
@@ -32,6 +32,12 @@ static const vx_enum VX_INTERPOLATION_NEAREST_NEIGHBOR = VX_INTERPOLATION_TYPE_N
...
@@ -32,6 +32,12 @@ static const vx_enum VX_INTERPOLATION_NEAREST_NEIGHBOR = VX_INTERPOLATION_TYPE_N
static
const
vx_enum
VX_BORDER_CONSTANT
=
VX_BORDER_MODE_CONSTANT
;
static
const
vx_enum
VX_BORDER_CONSTANT
=
VX_BORDER_MODE_CONSTANT
;
static
const
vx_enum
VX_BORDER_REPLICATE
=
VX_BORDER_MODE_REPLICATE
;
static
const
vx_enum
VX_BORDER_REPLICATE
=
VX_BORDER_MODE_REPLICATE
;
#else
#ifdef IVX_RENAMED_REFS
static
const
vx_enum
VX_REF_ATTRIBUTE_TYPE
=
VX_REFERENCE_TYPE
;
#endif
#endif
#endif
#ifndef IVX_USE_CXX98
#ifndef IVX_USE_CXX98
...
...
cmake/FindOpenVX.cmake
View file @
5ebf066d
...
@@ -25,6 +25,20 @@ endif()
...
@@ -25,6 +25,20 @@ endif()
if
(
OPENVX_INCLUDE_DIR AND OPENVX_LIBRARIES
)
if
(
OPENVX_INCLUDE_DIR AND OPENVX_LIBRARIES
)
set
(
HAVE_OPENVX TRUE
)
set
(
HAVE_OPENVX TRUE
)
try_compile
(
OPENVX_RENAMED_REF
"
${
OpenCV_BINARY_DIR
}
"
"
${
OpenCV_SOURCE_DIR
}
/cmake/checks/openvx_refenum_test.cpp"
CMAKE_FLAGS
"-DINCLUDE_DIRECTORIES:STRING=
${
OPENVX_INCLUDE_DIR
}
"
LINK_LIBRARIES
${
OPENVX_LIBRARIES
}
OUTPUT_VARIABLE OUTPUT
)
if
(
OPENVX_RENAMED_REF
)
add_definitions
(
-DIVX_RENAMED_REFS=1
)
message
(
STATUS
"OpenVX: Checking reference attribute name convention... New"
)
else
()
message
(
STATUS
"OpenVX: Checking reference attribute name convention... Old"
)
endif
()
endif
()
endif
()
if
(
NOT HAVE_OPENVX
)
if
(
NOT HAVE_OPENVX
)
...
...
cmake/checks/openvx_refenum_test.cpp
0 → 100644
View file @
5ebf066d
#include <VX/vx.h>
int
main
()
{
return
VX_REFERENCE_COUNT
==
VX_REFERENCE_TYPE
?
VX_REFERENCE_NAME
:
0
;
}
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