Commit d7db2201 authored by Rostislav Vasilikhin's avatar Rostislav Vasilikhin

"no previous declaration" warnings fixed in samples

parent 289d879d
...@@ -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))
......
...@@ -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;
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment