pub struct J2kLosslessTypedComponentSamples<'a> {
pub planes: &'a [J2kLosslessTypedComponentPlane<'a>],
pub width: u32,
pub height: u32,
}Expand description
Borrowed typed component-plane samples and reference-grid image geometry for lossless encoding.
Fields§
§planes: &'a [J2kLosslessTypedComponentPlane<'a>]Component planes in codestream order.
width: u32Reference-grid image width in pixels.
height: u32Reference-grid image height in pixels.
Implementations§
Source§impl<'a> J2kLosslessTypedComponentSamples<'a>
impl<'a> J2kLosslessTypedComponentSamples<'a>
Sourcepub fn new(
planes: &'a [J2kLosslessTypedComponentPlane<'a>],
width: u32,
height: u32,
) -> Result<Self, J2kError>
pub fn new( planes: &'a [J2kLosslessTypedComponentPlane<'a>], width: u32, height: u32, ) -> Result<Self, J2kError>
Validate and construct a typed component-plane sample descriptor.
Sourcepub fn components(&self) -> u16
pub fn components(&self) -> u16
Return the component count.
Sourcepub fn max_bit_depth(&self) -> u8
pub fn max_bit_depth(&self) -> u8
Return the maximum significant bit depth across all components.
Sourcepub fn all_components_signed(&self) -> bool
pub fn all_components_signed(&self) -> bool
Return whether every component is signed.
Trait Implementations§
Source§impl<'a> Clone for J2kLosslessTypedComponentSamples<'a>
impl<'a> Clone for J2kLosslessTypedComponentSamples<'a>
Source§fn clone(&self) -> J2kLosslessTypedComponentSamples<'a>
fn clone(&self) -> J2kLosslessTypedComponentSamples<'a>
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 moreimpl<'a> Copy for J2kLosslessTypedComponentSamples<'a>
Auto Trait Implementations§
impl<'a> Freeze for J2kLosslessTypedComponentSamples<'a>
impl<'a> RefUnwindSafe for J2kLosslessTypedComponentSamples<'a>
impl<'a> Send for J2kLosslessTypedComponentSamples<'a>
impl<'a> Sync for J2kLosslessTypedComponentSamples<'a>
impl<'a> Unpin for J2kLosslessTypedComponentSamples<'a>
impl<'a> UnsafeUnpin for J2kLosslessTypedComponentSamples<'a>
impl<'a> UnwindSafe for J2kLosslessTypedComponentSamples<'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
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