pub struct ImageViewMut<'a, T, L = C1> { /* private fields */ }Implementations§
Source§impl<'a, T, L> ImageViewMut<'a, T, L>where
L: ChannelLayout,
impl<'a, T, L> ImageViewMut<'a, T, L>where
L: ChannelLayout,
pub fn from_memory(memory: &'a mut DeviceMemory<T>, size: Size) -> Result<Self>
pub fn from_memory_with_step( memory: &'a mut DeviceMemory<T>, size: Size, step: i32, ) -> Result<Self>
Sourcepub unsafe fn from_raw_parts(ptr: *mut T, size: Size, step: i32) -> Result<Self>
pub unsafe fn from_raw_parts(ptr: *mut T, size: Size, step: i32) -> Result<Self>
§Safety
ptr must be non-null CUDA device memory aligned for T that remains valid for 'a.
The allocation must cover height - 1 full byte steps plus the final
ROI row of width * L::CHANNELS * size_of::<T>() bytes. step is a
byte pitch, not an element count, and must describe the actual row
spacing visible to NPP. The pointed-to ROI must be uniquely writable for
the returned view lifetime.
§Errors
Returns an error if the image shape is invalid or ptr is null.
pub const fn size(&self) -> Size
pub const fn step(&self) -> i32
pub fn byte_len(&self) -> Result<usize>
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, L = C1> !Send for ImageViewMut<'a, T, L>
impl<'a, T, L = C1> !Sync for ImageViewMut<'a, T, L>
impl<'a, T, L = C1> !UnwindSafe for ImageViewMut<'a, T, L>
impl<'a, T, L> Freeze for ImageViewMut<'a, T, L>
impl<'a, T, L> RefUnwindSafe for ImageViewMut<'a, T, L>where
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, L> Unpin for ImageViewMut<'a, T, L>where
L: Unpin,
impl<'a, T, L> UnsafeUnpin for ImageViewMut<'a, T, L>
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