Trait opencv::hub_prelude::ContextTraitConst
source · [−]pub trait ContextTraitConst {
fn as_raw_Context(&self) -> *const c_void;
fn ndevices(&self) -> Result<size_t> { ... }
fn device(&self, idx: size_t) -> Result<Device> { ... }
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 empty(&self) -> Result<bool> { ... }
}
Required Methods
fn as_raw_Context(&self) -> *const c_void
Provided Methods
fn ndevices(&self) -> Result<size_t>
fn device(&self, idx: size_t) -> Result<Device>
sourcefn get_opencl_context_property(&self, property_id: i32) -> Result<*mut c_void>
fn get_opencl_context_property(&self, property_id: i32) -> Result<*mut c_void>
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