pub struct PreparedClassicPlan { /* private fields */ }Expand description
Opaque retained classic JPEG 2000 execution plan for one prepared image.
Public callers inspect fragment byte ranges without depending on native
implementation types. Backend crates use Self::adapter_view to borrow
the immutable native geometry and segment metadata.
Implementations§
Source§impl PreparedClassicPlan
impl PreparedClassicPlan
Sourcepub fn is_grayscale(&self) -> bool
pub fn is_grayscale(&self) -> bool
Whether the retained geometry decodes one grayscale component.
Sourcepub fn is_rgba(&self) -> bool
pub fn is_rgba(&self) -> bool
Whether the retained geometry decodes four components in R, G, B, A order.
Sourcepub fn payload_count(&self) -> usize
pub fn payload_count(&self) -> usize
Number of referenced classic code-block payloads.
Sourcepub fn range_count(&self) -> usize
pub fn range_count(&self) -> usize
Number of encoded-input fragments across every code-block payload.
Sourcepub fn payload(&self, index: usize) -> Option<ClassicCodeBlockPayload>
pub fn payload(&self, index: usize) -> Option<ClassicCodeBlockPayload>
Return one code-block payload descriptor by traversal index.
Sourcepub fn payloads(
&self,
) -> impl ExactSizeIterator<Item = ClassicCodeBlockPayload> + '_
pub fn payloads( &self, ) -> impl ExactSizeIterator<Item = ClassicCodeBlockPayload> + '_
Iterate over code-block payload descriptors in component/step/job order.
Sourcepub fn range(&self, index: usize) -> Option<J2kCodestreamRange>
pub fn range(&self, index: usize) -> Option<J2kCodestreamRange>
Return one original-input fragment range by flat index.
Sourcepub fn ranges(&self) -> impl ExactSizeIterator<Item = J2kCodestreamRange> + '_
pub fn ranges(&self) -> impl ExactSizeIterator<Item = J2kCodestreamRange> + '_
Iterate over original-input fragment ranges in payload concatenation order.
Trait Implementations§
Source§impl Clone for PreparedClassicPlan
impl Clone for PreparedClassicPlan
Source§fn clone(&self) -> PreparedClassicPlan
fn clone(&self) -> PreparedClassicPlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PreparedClassicPlan
impl RefUnwindSafe for PreparedClassicPlan
impl Send for PreparedClassicPlan
impl Sync for PreparedClassicPlan
impl Unpin for PreparedClassicPlan
impl UnsafeUnpin for PreparedClassicPlan
impl UnwindSafe for PreparedClassicPlan
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
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> ⓘ
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> ⓘ
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