pub struct YUVSlices<'a> { /* private fields */ }
Expand description
Convenience wrapper if you already have YUV-sliced data from some other place.
Implementations§
Trait Implementations§
source§impl<'a> YUVSource for YUVSlices<'a>
impl<'a> YUVSource for YUVSlices<'a>
source§fn dimensions(&self) -> (usize, usize)
fn dimensions(&self) -> (usize, usize)
Size of the image as
(w, h)
.source§fn dimensions_i32(&self) -> (i32, i32)
fn dimensions_i32(&self) -> (i32, i32)
Size of the image as
(w, h)
.source§fn estimate_rgb_u8_size(&self) -> usize
fn estimate_rgb_u8_size(&self) -> usize
Estimates how many bytes you’ll need to store this YUV in an
&[u8]
RGB array. Read moresource§fn estimate_rgba_u8_size(&self) -> usize
fn estimate_rgba_u8_size(&self) -> usize
Estimates how many bytes you’ll need to store this YUV in an
&[u8]
RGBA array. Read moreAuto Trait Implementations§
impl<'a> Freeze for YUVSlices<'a>
impl<'a> RefUnwindSafe for YUVSlices<'a>
impl<'a> Send for YUVSlices<'a>
impl<'a> Sync for YUVSlices<'a>
impl<'a> Unpin for YUVSlices<'a>
impl<'a> UnwindSafe for YUVSlices<'a>
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