mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
ocl: stop using of OpenCL without explicit UMat arguments
This commit is contained in:
@@ -6073,6 +6073,18 @@ void* Image2D::ptr() const
|
||||
return p ? p->handle : 0;
|
||||
}
|
||||
|
||||
bool internal::isOpenCLForced()
|
||||
{
|
||||
static bool initialized = false;
|
||||
static bool value = false;
|
||||
if (!initialized)
|
||||
{
|
||||
value = getBoolParameter("OPENCV_OPENCL_FORCE", false);
|
||||
initialized = true;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
bool internal::isPerformanceCheckBypassed()
|
||||
{
|
||||
static bool initialized = false;
|
||||
|
||||
Reference in New Issue
Block a user