pub struct NativeComponentPlane { /* private fields */ }Expand description
One owned decoded component plane at native bit depth.
Implementations§
Source§impl NativeComponentPlane
impl NativeComponentPlane
Sourcepub fn data(&self) -> &[u8] ⓘ
pub fn data(&self) -> &[u8] ⓘ
Packed little-endian sample bytes for this component in row-major order.
Sourcepub fn dimensions(&self) -> (u32, u32)
pub fn dimensions(&self) -> (u32, u32)
Width and height of this decoded plane in output samples.
Sourcepub fn sampling(&self) -> (u8, u8)
pub fn sampling(&self) -> (u8, u8)
Horizontal and vertical SIZ sampling factors (XRsiz, YRsiz) for
the source component represented by this plane.
Sourcepub fn bytes_per_sample(&self) -> u8
pub fn bytes_per_sample(&self) -> u8
Bytes used for each packed little-endian sample in Self::data.
Auto Trait Implementations§
impl Freeze for NativeComponentPlane
impl RefUnwindSafe for NativeComponentPlane
impl Send for NativeComponentPlane
impl Sync for NativeComponentPlane
impl Unpin for NativeComponentPlane
impl UnsafeUnpin for NativeComponentPlane
impl UnwindSafe for NativeComponentPlane
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more