namespace cv::va_intel::ocl

Overview

namespace ocl {

// global functions

Context&
initializeContextFromVA(
    VADisplay display,
    bool tryInterop = true
    );

} // namespace ocl

Detailed Documentation

Global Functions

Context&
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