OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
Intel VA-API/OpenCL (CL-VA) interoperability

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

Collaboration diagram for Intel VA-API/OpenCL (CL-VA) interoperability:

Namespaces

 cv::va_intel::ocl
 

Functions

void cv::va_intel::convertFromVASurface (VADisplay display, VASurfaceID surface, Size size, OutputArray dst)
 Converts VASurfaceID object to OutputArray. More...
 
void cv::va_intel::convertToVASurface (VADisplay display, InputArray src, VASurfaceID surface, Size size)
 Converts InputArray to VASurfaceID object. More...
 

Detailed Description

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:

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

Function Documentation

◆ convertFromVASurface()

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

#include <opencv2/core/va_intel.hpp>

Converts VASurfaceID object to OutputArray.

Parameters
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.

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