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
bfecea48
Commit
bfecea48
authored
Nov 18, 2016
by
Andrey Pavlenko
Committed by
Rostislav Vasilikhin
Nov 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warnings in ivx.hpp fixed
* fixing 1.0.1 * fixing build without c++11 * hiding warnings
parent
d7db2201
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
ivx.hpp
3rdparty/openvx/include/ivx.hpp
+9
-8
No files found.
3rdparty/openvx/include/ivx.hpp
View file @
bfecea48
...
@@ -89,8 +89,8 @@ class RuntimeError : public std::runtime_error
...
@@ -89,8 +89,8 @@ class RuntimeError : public std::runtime_error
{
{
public
:
public
:
/// Constructor
/// Constructor
explicit
RuntimeError
(
vx_status
st
atus
,
const
std
::
string
&
msg
=
""
)
explicit
RuntimeError
(
vx_status
st
,
const
std
::
string
&
msg
=
""
)
:
runtime_error
(
msg
),
_status
(
st
atus
)
:
runtime_error
(
msg
),
_status
(
st
)
{}
{}
/// OpenVX error code
/// OpenVX error code
...
@@ -142,7 +142,7 @@ template <vx_enum E> using EnumToType_t = typename EnumToType<E>::type;
...
@@ -142,7 +142,7 @@ template <vx_enum E> using EnumToType_t = typename EnumToType<E>::type;
#endif
#endif
/// Gets size in bytes for the provided OpenVX type enum
/// Gets size in bytes for the provided OpenVX type enum
vx_size
enumToTypeSize
(
vx_enum
type
)
inline
vx_size
enumToTypeSize
(
vx_enum
type
)
{
{
switch
(
type
)
switch
(
type
)
{
{
...
@@ -1314,16 +1314,16 @@ public:
...
@@ -1314,16 +1314,16 @@ public:
{
return
_mapId
;
}
{
return
_mapId
;
}
#else
#else
/// reference to vx_rectangle_t for the current mapping
/// reference to vx_rectangle_t for the current mapping
const
vx_rectangle_t
&
rect
()
const
const
vx_rectangle_t
&
rect
angle
()
const
{
return
_rect
;
}
{
return
_rect
;
}
/// Image plane index for the current mapping
/// Image plane index for the current mapping
vx_uint32
planeI
d
x
()
const
vx_uint32
planeI
nde
x
()
const
{
return
_planeIdx
;
}
{
return
_planeIdx
;
}
#endif // VX_VERSION_1_1
#endif // VX_VERSION_1_1
/// vx_image for the current mapping
/// vx_image for the current mapping
vx_image
im
g
()
const
vx_image
im
age
()
const
{
return
_img
;
}
{
return
_img
;
}
/// where this patch is mapped
/// where this patch is mapped
...
@@ -1393,6 +1393,7 @@ public:
...
@@ -1393,6 +1393,7 @@ public:
IVX_CHECK_STATUS
(
vxMapImagePatch
(
img
,
&
rect
,
planeIdx
,
&
_mapId
,
&
_addr
,
&
_data
,
usage
,
_memType
,
flags
)
);
IVX_CHECK_STATUS
(
vxMapImagePatch
(
img
,
&
rect
,
planeIdx
,
&
_mapId
,
&
_addr
,
&
_data
,
usage
,
_memType
,
flags
)
);
#else
#else
IVX_CHECK_STATUS
(
vxAccessImagePatch
(
img
,
&
rect
,
planeIdx
,
&
_addr
,
&
_data
,
usage
));
IVX_CHECK_STATUS
(
vxAccessImagePatch
(
img
,
&
rect
,
planeIdx
,
&
_addr
,
&
_data
,
usage
));
(
void
)
flags
;
_rect
=
rect
;
_rect
=
rect
;
_planeIdx
=
planeIdx
;
_planeIdx
=
planeIdx
;
#endif
#endif
...
@@ -1565,8 +1566,8 @@ static const vx_enum
...
@@ -1565,8 +1566,8 @@ static const vx_enum
/// vxQueryThreshold() wrapper
/// vxQueryThreshold() wrapper
template
<
typename
T
>
template
<
typename
T
>
void
query
(
vx_enum
att
,
T
&
val
ue
)
const
void
query
(
vx_enum
att
,
T
&
val
)
const
{
IVX_CHECK_STATUS
(
vxQueryThreshold
(
ref
,
att
,
&
value
,
sizeof
(
val
ue
))
);
}
{
IVX_CHECK_STATUS
(
vxQueryThreshold
(
ref
,
att
,
&
value
,
sizeof
(
val
))
);
}
/// vxQueryThreshold(VX_THRESHOLD_TYPE) wrapper
/// vxQueryThreshold(VX_THRESHOLD_TYPE) wrapper
vx_enum
type
()
const
vx_enum
type
()
const
...
...
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