Trait opencv::core::ContextTrait[][src]

pub trait ContextTrait {
Show 14 methods fn as_raw_Context(&self) -> *const c_void;
fn as_raw_mut_Context(&mut self) -> *mut c_void; fn create(&mut self) -> Result<bool> { ... }
fn create_with_type(&mut self, dtype: i32) -> Result<bool> { ... }
fn ndevices(&self) -> Result<size_t> { ... }
fn device(&self, idx: size_t) -> Result<Device> { ... }
fn get_prog(
        &mut self,
        prog: &ProgramSource,
        buildopt: &str,
        errmsg: &mut String
    ) -> Result<Program> { ... }
fn unload_prog(&mut self, prog: &mut Program) -> Result<()> { ... }
fn ptr(&self) -> Result<*mut c_void> { ... }
fn get_opencl_context_property(
        &self,
        property_id: i32
    ) -> Result<*mut c_void> { ... }
fn use_svm(&self) -> Result<bool> { ... }
fn set_use_svm(&mut self, enabled: bool) -> Result<()> { ... }
fn release(&mut self) -> Result<()> { ... }
fn empty(&self) -> Result<bool> { ... }
}

Required methods

Provided methods

@deprecated

@deprecated

Returns

cl_context value

Get OpenCL context property specified on context creation

Parameters

  • propertyId: Property id (CL_CONTEXT_* as defined in cl_context_properties type)

Returns

Property value if property was specified on clCreateContext, or NULL if context created without the property

Implementors