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
d7db2201
Commit
d7db2201
authored
Nov 18, 2016
by
Rostislav Vasilikhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"no previous declaration" warnings fixed in samples
parent
289d879d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
no_wrappers.cpp
samples/openvx/no_wrappers.cpp
+7
-0
wrappers.cpp
samples/openvx/wrappers.cpp
+4
-0
wrappers_video.cpp
samples/openvx/wrappers_video.cpp
+4
-0
No files found.
samples/openvx/no_wrappers.cpp
View file @
d7db2201
...
@@ -27,6 +27,13 @@ enum UserMemoryMode
...
@@ -27,6 +27,13 @@ enum UserMemoryMode
COPY
,
USER_MEM
COPY
,
USER_MEM
};
};
vx_image
convertCvMatToVxImage
(
vx_context
context
,
cv
::
Mat
image
,
bool
toCopy
);
cv
::
Mat
copyVxImageToCvMat
(
vx_image
ovxImage
);
void
swapVxImage
(
vx_image
ovxImage
);
vx_status
createProcessingGraph
(
vx_image
inputImage
,
vx_image
outputImage
,
vx_graph
&
graph
);
int
ovxDemo
(
std
::
string
inputPath
,
UserMemoryMode
mode
);
vx_image
convertCvMatToVxImage
(
vx_context
context
,
cv
::
Mat
image
,
bool
toCopy
)
vx_image
convertCvMatToVxImage
(
vx_context
context
,
cv
::
Mat
image
,
bool
toCopy
)
{
{
if
(
!
(
!
image
.
empty
()
&&
image
.
dims
<=
2
&&
image
.
channels
()
==
1
))
if
(
!
(
!
image
.
empty
()
&&
image
.
dims
<=
2
&&
image
.
channels
()
==
1
))
...
...
samples/openvx/wrappers.cpp
View file @
d7db2201
...
@@ -15,6 +15,10 @@ enum UserMemoryMode
...
@@ -15,6 +15,10 @@ enum UserMemoryMode
COPY
,
USER_MEM
,
MAP
COPY
,
USER_MEM
,
MAP
};
};
ivx
::
Graph
createProcessingGraph
(
ivx
::
Image
&
inputImage
,
ivx
::
Image
&
outputImage
);
int
ovxDemo
(
std
::
string
inputPath
,
UserMemoryMode
mode
);
ivx
::
Graph
createProcessingGraph
(
ivx
::
Image
&
inputImage
,
ivx
::
Image
&
outputImage
)
ivx
::
Graph
createProcessingGraph
(
ivx
::
Image
&
inputImage
,
ivx
::
Image
&
outputImage
)
{
{
using
namespace
ivx
;
using
namespace
ivx
;
...
...
samples/openvx/wrappers_video.cpp
View file @
d7db2201
...
@@ -15,6 +15,10 @@ enum UserMemoryMode
...
@@ -15,6 +15,10 @@ enum UserMemoryMode
COPY
,
USER_MEM
,
MAP
COPY
,
USER_MEM
,
MAP
};
};
ivx
::
Graph
createProcessingGraph
(
ivx
::
Image
&
inputImage
,
ivx
::
Image
&
outputImage
);
int
ovxDemo
(
std
::
string
inputPath
,
UserMemoryMode
mode
);
ivx
::
Graph
createProcessingGraph
(
ivx
::
Image
&
inputImage
,
ivx
::
Image
&
outputImage
)
ivx
::
Graph
createProcessingGraph
(
ivx
::
Image
&
inputImage
,
ivx
::
Image
&
outputImage
)
{
{
using
namespace
ivx
;
using
namespace
ivx
;
...
...
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