英特尔 VA-API/OpenCL (CL-VA) 互操作性 核心功能


名称空间

  cv::va_intel::ocl
 

函数

void  cv::va_intel::convertFromVASurface ( VADisplay display, VASurfaceID surface, Size size, OutputArray dst)
  把 VASurfaceID 对象转换成 OutputArray。 更多...
 
void  cv::va_intel::convertToVASurface ( VADisplay display, InputArray src, VASurfaceID surface, Size size)
  Converts InputArray to VASurfaceID object. 更多...
 

详细描述

This section describes Intel VA-API/OpenCL (CL-VA) interoperability.

To enable CL-VA interoperability support, configure OpenCV using CMake with WITH_VA_INTEL=ON . Currently VA-API is supported on Linux only. You should also install Intel Media Server Studio (MSS) to use this feature. You may have to specify the path(s) to MSS components for cmake in environment variables:

  • VA_INTEL_IOCL_ROOT for Intel OpenCL (default is "/opt/intel/opencl").

To use CL-VA interoperability you should first create VADisplay (libva), and then call initializeContextFromVA() function to create OpenCL context and set up interoperability.

函数文档编制

◆  convertFromVASurface()

void cv::va_intel::convertFromVASurface ( VADisplay   display ,
VASurfaceID   surface ,
Size   size ,
OutputArray   dst  
)

#include < opencv2/core/va_intel.hpp >

把 VASurfaceID 对象转换成 OutputArray。

参数
display - VADisplay object.
surface - source VASurfaceID object.
size - size of image represented by VASurfaceID object.
dst - destination OutputArray.

◆  convertToVASurface()

void cv::va_intel::convertToVASurface ( VADisplay   display ,
InputArray   src ,
VASurfaceID   surface ,
Size   size  
)

#include < opencv2/core/va_intel.hpp >

Converts InputArray to VASurfaceID object.

参数
display - VADisplay object.
src - source InputArray.
surface - destination VASurfaceID object.
size - size of image represented by VASurfaceID object.