[−][src]Trait opencv::core::OpenCLExecutionContextTrait
Required methods
fn as_raw_OpenCLExecutionContext(&self) -> *const c_void
[src]
fn as_raw_mut_OpenCLExecutionContext(&mut self) -> *mut c_void
[src]
Provided methods
fn get_context(&self) -> Result<Context>
[src]
Get associated ocl::Context
fn get_device(&self) -> Result<Device>
[src]
Get the single default associated ocl::Device
fn get_queue(&self) -> Result<Queue>
[src]
Get the single ocl::Queue that is associated with the ocl::Context and the single default ocl::Device
fn use_opencl(&self) -> Result<bool>
[src]
fn set_use_opencl(&mut self, flag: bool) -> Result<()>
[src]
fn bind(&self) -> Result<()>
[src]
Bind this OpenCL execution context to current thread.
Context can't be empty.
Note: clFinish is not called for queue of previous execution context
fn clone_with_new_queue(&self, q: &Queue) -> Result<OpenCLExecutionContext>
[src]
fn clone_with_new_queue_1(&self) -> Result<OpenCLExecutionContext>
[src]
Creates new execution context with same OpenCV context and device
Parameters
- q: OpenCL queue