Enum opencv::core::UMatUsageFlags
source · #[repr(C)]pub enum UMatUsageFlags {
USAGE_DEFAULT = 0,
USAGE_ALLOCATE_HOST_MEMORY = 1,
USAGE_ALLOCATE_DEVICE_MEMORY = 2,
USAGE_ALLOCATE_SHARED_MEMORY = 4,
__UMAT_USAGE_FLAGS_32BIT = 2_147_483_647,
}
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 = 0
USAGE_ALLOCATE_HOST_MEMORY = 1
USAGE_ALLOCATE_DEVICE_MEMORY = 2
USAGE_ALLOCATE_SHARED_MEMORY = 4
__UMAT_USAGE_FLAGS_32BIT = 2_147_483_647
Trait Implementations§
source§impl Clone for UMatUsageFlags
impl Clone for UMatUsageFlags
source§fn clone(&self) -> UMatUsageFlags
fn clone(&self) -> UMatUsageFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UMatUsageFlags
impl Debug for UMatUsageFlags
source§impl From<UMatUsageFlags> for i32
impl From<UMatUsageFlags> for i32
source§fn from(v: UMatUsageFlags) -> Self
fn from(v: UMatUsageFlags) -> Self
Converts to this type from the input type.
source§impl PartialEq for UMatUsageFlags
impl PartialEq for UMatUsageFlags
source§fn eq(&self, other: &UMatUsageFlags) -> bool
fn eq(&self, other: &UMatUsageFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<i32> for UMatUsageFlags
impl TryFrom<i32> for UMatUsageFlags
impl Copy for UMatUsageFlags
impl Eq for UMatUsageFlags
impl StructuralPartialEq for UMatUsageFlags
Auto Trait Implementations§
impl Freeze for UMatUsageFlags
impl RefUnwindSafe for UMatUsageFlags
impl Send for UMatUsageFlags
impl Sync for UMatUsageFlags
impl Unpin for UMatUsageFlags
impl UnwindSafe for UMatUsageFlags
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more