pub struct J2kNativeComponentPlane { /* private fields */ }Expand description
One owned decoded component plane at native bit depth.
Implementations§
Source§impl J2kNativeComponentPlane
impl J2kNativeComponentPlane
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).
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.
Trait Implementations§
Source§impl Clone for J2kNativeComponentPlane
impl Clone for J2kNativeComponentPlane
Source§fn clone(&self) -> J2kNativeComponentPlane
fn clone(&self) -> J2kNativeComponentPlane
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 J2kNativeComponentPlane
impl Debug for J2kNativeComponentPlane
impl Eq for J2kNativeComponentPlane
Source§impl PartialEq for J2kNativeComponentPlane
impl PartialEq for J2kNativeComponentPlane
Source§fn eq(&self, other: &J2kNativeComponentPlane) -> bool
fn eq(&self, other: &J2kNativeComponentPlane) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for J2kNativeComponentPlane
Auto Trait Implementations§
impl Freeze for J2kNativeComponentPlane
impl RefUnwindSafe for J2kNativeComponentPlane
impl Send for J2kNativeComponentPlane
impl Sync for J2kNativeComponentPlane
impl Unpin for J2kNativeComponentPlane
impl UnsafeUnpin for J2kNativeComponentPlane
impl UnwindSafe for J2kNativeComponentPlane
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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