pub struct CpuBatchGroup { /* private fields */ }Expand description
One successfully decoded homogeneous CPU output group.
Implementations§
Source§impl CpuBatchGroup
impl CpuBatchGroup
Sourcepub fn info(&self) -> &BatchGroupInfo
pub fn info(&self) -> &BatchGroupInfo
Shared output metadata.
Sourcepub fn source_indices(&self) -> &[usize]
pub fn source_indices(&self) -> &[usize]
Original input indices for the dense batch dimension.
Sourcepub fn decoded_rects(&self) -> &[Rect]
pub fn decoded_rects(&self) -> &[Rect]
Actual decoded rectangle for each output image.
Sourcepub fn warnings(&self) -> &[Vec<J2kDecodeWarning>]
pub fn warnings(&self) -> &[Vec<J2kDecodeWarning>]
Non-fatal warnings for each output image.
Sourcepub const fn samples(&self) -> &CpuBatchSamples
pub const fn samples(&self) -> &CpuBatchSamples
Contiguous native-width samples.
Sourcepub fn into_parts(
self,
) -> (BatchGroupInfo, Vec<usize>, Vec<Rect>, Vec<Vec<J2kDecodeWarning>>, CpuBatchSamples)
pub fn into_parts( self, ) -> (BatchGroupInfo, Vec<usize>, Vec<Rect>, Vec<Vec<J2kDecodeWarning>>, CpuBatchSamples)
Consume the group into its metadata, indices, rectangles, warnings, and samples.
Trait Implementations§
Source§impl Debug for CpuBatchGroup
impl Debug for CpuBatchGroup
impl Eq for CpuBatchGroup
Source§impl PartialEq for CpuBatchGroup
impl PartialEq for CpuBatchGroup
impl StructuralPartialEq for CpuBatchGroup
Auto Trait Implementations§
impl Freeze for CpuBatchGroup
impl RefUnwindSafe for CpuBatchGroup
impl Send for CpuBatchGroup
impl Sync for CpuBatchGroup
impl Unpin for CpuBatchGroup
impl UnsafeUnpin for CpuBatchGroup
impl UnwindSafe for CpuBatchGroup
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> 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