mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
OpenVX calls updated to use single common OpenVX context per thread
This commit is contained in:
committed by
Alexander Alekhin
parent
ec7f74f7b4
commit
9a4b5a4545
@@ -20,6 +20,12 @@
|
||||
#define IVX_USE_OPENCV
|
||||
#include "ivx.hpp"
|
||||
|
||||
namespace cv{
|
||||
namespace ovx{
|
||||
// Get common thread local OpenVX context
|
||||
CV_EXPORTS_W ivx::Context& getOpenVXContext();
|
||||
}}
|
||||
|
||||
#define CV_OVX_RUN(condition, func, ...) \
|
||||
if (cv::useOpenVX() && (condition) && func) \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user