mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
Merge pull request #7550 from apavlenko:ivx
C++ wrappers over OpenVX 1.x API (#7550) * initial commit * fixing missing swap(refcount) bug * removing dead code * fixinf identation * splitting c++98 and external refcount definitions * fixing formatToMatType * using vector instead of initializer_list for consistency with c++98 API * IVX_HIDE_INFO_WARNINGS * just in case a compiler doesn't do this * removing copy functionality from ImagePatch, Image can be used for that * stricter type checks
This commit is contained in:
parent
6991c24a27
commit
bdf661538d
1491
3rdparty/openvx/include/ivx.hpp
vendored
Normal file
1491
3rdparty/openvx/include/ivx.hpp
vendored
Normal file
File diff suppressed because it is too large
Load Diff
42
3rdparty/openvx/include/ivx_lib_debug.hpp
vendored
Normal file
42
3rdparty/openvx/include/ivx_lib_debug.hpp
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
// This file is part of OpenCV project.
|
||||
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
||||
// of this distribution and at http://opencv.org/license.html.
|
||||
|
||||
// Copyright (C) 2016, Intel Corporation, all rights reserved.
|
||||
// Third party copyrights are property of their respective owners.
|
||||
|
||||
/*
|
||||
C++ wrappers over OpenVX 1.x C API ("openvx-debug" module)
|
||||
Details: TBD
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef IVX_LIB_DEBUG_HPP
|
||||
#define IVX_LIB_DEBUG_HPP
|
||||
|
||||
#include "ivx.hpp"
|
||||
|
||||
namespace ivx
|
||||
{
|
||||
namespace debug
|
||||
{
|
||||
/*
|
||||
* "openvx-debug" module
|
||||
*/
|
||||
|
||||
//
|
||||
void fReadImage(vx_context c, const std::string& path, vx_image img)
|
||||
{
|
||||
IVX_CHECK_STATUS( vxuFReadImage(c, (vx_char*)path.c_str(), img) );
|
||||
}
|
||||
|
||||
//
|
||||
void fWriteImage(vx_context c, vx_image img, const std::string& path)
|
||||
{
|
||||
IVX_CHECK_STATUS( vxuFWriteImage(c, img, (vx_char*)path.c_str()) );
|
||||
}
|
||||
|
||||
} // namespace debug
|
||||
} // namespace ivx
|
||||
|
||||
#endif //IVX_LIB_DEBUG_HPP
|
Loading…
Reference in New Issue
Block a user