[−][src]Trait opencv::prelude::OpenCLExecutionContextTrait
Required methods
pub fn as_raw_OpenCLExecutionContext(&self) -> *const c_void
[src]
pub fn as_raw_mut_OpenCLExecutionContext(&mut self) -> *mut c_void
[src]
Provided methods
pub fn get_context(&self) -> Result<Context>
[src]
Get associated ocl::Context
pub fn get_device(&self) -> Result<Device>
[src]
Get the single default associated ocl::Device
pub 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
pub fn use_opencl(&self) -> Result<bool>
[src]
pub fn set_use_opencl(&mut self, flag: bool) -> Result<()>
[src]
pub 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
pub fn clone_with_new_queue(&self, q: &Queue) -> Result<OpenCLExecutionContext>
[src]
pub fn clone_with_new_queue_1(&self) -> Result<OpenCLExecutionContext>
[src]
Creates new execution context with same OpenCV context and device
Parameters
- q: OpenCL queue