pub struct NativePixelView<'a> { /* private fields */ }Expand description
Borrowed native values with sign extension from BitsStored. Unused bits/source bytes remain intact. MONOCHROME1 is not inverted; no display LUT is applied.
Implementations§
Source§impl<'a> NativePixelView<'a>
impl<'a> NativePixelView<'a>
pub fn from_dataset( ds: &Part10Dataset<'a>, max_pixel_bytes: usize, w: &mut WorkBudget, ) -> Result<Self, PixelError>
pub fn source_blake3(&self) -> [u8; 32]
pub fn rows(&self) -> u16
pub fn columns(&self) -> u16
pub fn frames(&self) -> u32
pub fn photometric(&self) -> &'a str
Sourcepub fn padding_declared(&self) -> bool
pub fn padding_declared(&self) -> bool
Raw stored-sample access does not classify these values as measurements.
Sourcepub fn stored_sample_bytes(&self) -> &'a [u8] ⓘ
pub fn stored_sample_bytes(&self) -> &'a [u8] ⓘ
Stored sample layout: borrowed native bytes or losslessly decoded bytes. The encoded original always remains in Part10Dataset::original_bytes.
pub fn sample( &self, frame_index: u32, row: u16, column: u16, ) -> Result<StoredSample, PixelError>
Auto Trait Implementations§
impl<'a> Freeze for NativePixelView<'a>
impl<'a> RefUnwindSafe for NativePixelView<'a>
impl<'a> Send for NativePixelView<'a>
impl<'a> Sync for NativePixelView<'a>
impl<'a> Unpin for NativePixelView<'a>
impl<'a> UnsafeUnpin for NativePixelView<'a>
impl<'a> UnwindSafe for NativePixelView<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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