Enum opencv::core::UMatUsageFlags
source · #[repr(C)]
pub enum UMatUsageFlags {
USAGE_DEFAULT,
USAGE_ALLOCATE_HOST_MEMORY,
USAGE_ALLOCATE_DEVICE_MEMORY,
USAGE_ALLOCATE_SHARED_MEMORY,
__UMAT_USAGE_FLAGS_32BIT,
}
Expand description
Usage flags for allocator
@warning All flags except USAGE_DEFAULT
are experimental.
@warning For the OpenCL allocator, USAGE_ALLOCATE_SHARED_MEMORY
depends on
OpenCV’s optional, experimental integration with OpenCL SVM. To enable this
integration, build OpenCV using the WITH_OPENCL_SVM=ON
CMake option and, at
runtime, call cv::ocl::Context::getDefault().setUseSVM(true);
or similar
code. Note that SVM is incompatible with OpenCL 1.x.
Variants
USAGE_DEFAULT
USAGE_ALLOCATE_HOST_MEMORY
USAGE_ALLOCATE_DEVICE_MEMORY
USAGE_ALLOCATE_SHARED_MEMORY
__UMAT_USAGE_FLAGS_32BIT
Trait Implementations
sourceimpl Clone for UMatUsageFlags
impl Clone for UMatUsageFlags
sourcefn clone(&self) -> UMatUsageFlags
fn clone(&self) -> UMatUsageFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UMatUsageFlags
impl Debug for UMatUsageFlags
sourceimpl PartialEq<UMatUsageFlags> for UMatUsageFlags
impl PartialEq<UMatUsageFlags> for UMatUsageFlags
sourcefn eq(&self, other: &UMatUsageFlags) -> bool
fn eq(&self, other: &UMatUsageFlags) -> bool
impl Copy for UMatUsageFlags
impl Eq for UMatUsageFlags
impl StructuralEq for UMatUsageFlags
impl StructuralPartialEq for UMatUsageFlags
Auto Trait Implementations
impl RefUnwindSafe for UMatUsageFlags
impl Send for UMatUsageFlags
impl Sync for UMatUsageFlags
impl Unpin for UMatUsageFlags
impl UnwindSafe for UMatUsageFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more