pub trait OpenCLExecutionContextTraitConst {
    fn as_raw_OpenCLExecutionContext(&self) -> *const c_void;

    fn get_context(&self) -> Result<Context> { ... }
    fn get_device(&self) -> Result<Device> { ... }
    fn get_queue(&self) -> Result<Queue> { ... }
    fn use_opencl(&self) -> Result<bool> { ... }
    fn bind(&self) -> Result<()> { ... }
    fn clone_with_new_queue(&self, q: &Queue) -> Result<OpenCLExecutionContext> { ... }
    fn clone_with_new_queue_1(&self) -> Result<OpenCLExecutionContext> { ... }
    fn empty(&self) -> Result<bool> { ... }
}

Required Methods

Provided Methods

Get associated ocl::Context

Get the single default associated ocl::Device

Get the single ocl::Queue that is associated with the ocl::Context and the single default ocl::Device

Bind this OpenCL execution context to current thread.

Context can’t be empty.

Note: clFinish is not called for queue of previous execution context

Creates new execution context with same OpenCV context and device

Parameters
  • q: OpenCL queue

Creates new execution context with same OpenCV context and device

Parameters
  • q: OpenCL queue
Overloaded parameters

Implementors