OpenCV
3.4.11
Open Source Computer Vision
|
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... | |
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.
void cv::va_intel::convertFromVASurface | ( | VADisplay | display, |
VASurfaceID | surface, | ||
Size | size, | ||
OutputArray | dst | ||
) |
#include <opencv2/core/va_intel.hpp>
Converts VASurfaceID object to OutputArray.
display | - VADisplay object. |
surface | - source VASurfaceID object. |
size | - size of image represented by VASurfaceID object. |
dst | - destination OutputArray. |
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. |