| OpenCV 3.4.1 Open Source Computer Vision

Functions
cv::va_intel::ocl Namespace Reference
Core functionality » Intel VA-API/OpenCL (CL-VA) interoperability

## Functions
Context & | initializeContextFromVA (VADisplay display, bool tryInterop=true)
| Creates OpenCL context from VA. More...

## Function Documentation

## § initializeContextFromVA()

Context& cv::va_intel::ocl::initializeContextFromVA | ( | VADisplay | display,
|  | bool | tryInterop = `true`
| ) |  |

Creates OpenCL context from VA.

Parameters

  display | - VADisplay for which CL interop should be established.
  tryInterop | - try to set up for interoperability, if true; set up for use slow copy if false.

Returns
  Returns reference to OpenCL Context