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
@@ -1282,7 +1282,7 @@ namespace cv
|
||||
|
||||
try
|
||||
{
|
||||
ivx::Context ctx = ivx::Context::create();
|
||||
ivx::Context ctx = ovx::getOpenVXContext();
|
||||
#if VX_VERSION <= VX_VERSION_1_0
|
||||
if (ctx.vendorID() == VX_ID_KHRONOS && (range % histSize))
|
||||
return false;
|
||||
@@ -3773,7 +3773,7 @@ static bool openvx_equalize_hist(Mat srcMat, Mat dstMat)
|
||||
|
||||
try
|
||||
{
|
||||
Context context = Context::create();
|
||||
Context context = ovx::getOpenVXContext();
|
||||
Image srcImage = Image::createFromHandle(context, Image::matTypeToFormat(srcMat.type()),
|
||||
Image::createAddressing(srcMat), srcMat.data);
|
||||
Image dstImage = Image::createFromHandle(context, Image::matTypeToFormat(dstMat.type()),
|
||||
|
||||
Reference in New Issue
Block a user