mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 04:43:22 -05:00
Fixed and updated OpenCL-VA interoperability
This commit is contained in:
committed by
Maksim Shabunin
parent
0dc28d3446
commit
862fc06b6f
@@ -81,4 +81,13 @@ if(OPENCL_FOUND)
|
||||
|
||||
# check WITH_OPENCL_D3D11_NV is located in OpenCVDetectDirectX.cmake file
|
||||
|
||||
if(WITH_VA_INTEL AND HAVE_VA)
|
||||
if(HAVE_OPENCL AND EXISTS "${OPENCL_INCLUDE_DIR}/CL/cl_va_api_media_sharing_intel.h")
|
||||
set(HAVE_VA_INTEL ON)
|
||||
elseif(HAVE_OPENCL AND EXISTS "${OPENCL_INCLUDE_DIR}/CL/va_ext.h")
|
||||
set(HAVE_VA_INTEL ON)
|
||||
set(HAVE_VA_INTEL_OLD_HEADER ON)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user