pub struct J2kRowDecodeOptions { /* private fields */ }Expand description
Options for bounded J2K row decoding.
Implementations§
Source§impl J2kRowDecodeOptions
impl J2kRowDecodeOptions
Sourcepub const fn new(max_rows_per_stripe: u32) -> Self
pub const fn new(max_rows_per_stripe: u32) -> Self
Create row decode options with the requested maximum stripe height.
A zero value is normalized to one row.
Sourcepub const fn new_with_max_stripe_bytes(
max_rows_per_stripe: u32,
max_stripe_bytes: usize,
) -> Self
pub const fn new_with_max_stripe_bytes( max_rows_per_stripe: u32, max_stripe_bytes: usize, ) -> Self
Create row decode options with explicit stripe height and byte caps.
Sourcepub const fn with_max_stripe_bytes(self, max_stripe_bytes: usize) -> Self
pub const fn with_max_stripe_bytes(self, max_stripe_bytes: usize) -> Self
Return a copy of these options with an explicit stripe byte cap.
Sourcepub const fn max_rows_per_stripe(self) -> u32
pub const fn max_rows_per_stripe(self) -> u32
Maximum number of decoded rows held per bounded row-decode stripe.
Sourcepub const fn max_stripe_bytes(self) -> usize
pub const fn max_stripe_bytes(self) -> usize
Maximum number of packed bytes held per bounded row-decode stripe.
Trait Implementations§
Source§impl Clone for J2kRowDecodeOptions
impl Clone for J2kRowDecodeOptions
Source§fn clone(&self) -> J2kRowDecodeOptions
fn clone(&self) -> J2kRowDecodeOptions
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 Copy for J2kRowDecodeOptions
Source§impl Debug for J2kRowDecodeOptions
impl Debug for J2kRowDecodeOptions
Source§impl Default for J2kRowDecodeOptions
impl Default for J2kRowDecodeOptions
impl Eq for J2kRowDecodeOptions
Source§impl PartialEq for J2kRowDecodeOptions
impl PartialEq for J2kRowDecodeOptions
Source§fn eq(&self, other: &J2kRowDecodeOptions) -> bool
fn eq(&self, other: &J2kRowDecodeOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for J2kRowDecodeOptions
Auto Trait Implementations§
impl Freeze for J2kRowDecodeOptions
impl RefUnwindSafe for J2kRowDecodeOptions
impl Send for J2kRowDecodeOptions
impl Sync for J2kRowDecodeOptions
impl Unpin for J2kRowDecodeOptions
impl UnsafeUnpin for J2kRowDecodeOptions
impl UnwindSafe for J2kRowDecodeOptions
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