pub struct CudaBatchGroup { /* private fields */ }Expand description
One successful homogeneous CUDA-resident output group.
Implementations§
Source§impl CudaBatchGroup
impl CudaBatchGroup
Sourcepub const fn info(&self) -> &BatchGroupInfo
pub const fn info(&self) -> &BatchGroupInfo
Shared decoded dimensions, type, color, transform, route, and layout.
Sourcepub fn source_indices(&self) -> &[usize]
pub fn source_indices(&self) -> &[usize]
Original input indices in dense batch order.
Sourcepub fn decoded_rects(&self) -> &[Rect]
pub fn decoded_rects(&self) -> &[Rect]
Actual decoded rectangle for each image.
Sourcepub fn warnings(&self) -> &[Vec<J2kDecodeWarning>]
pub fn warnings(&self) -> &[Vec<J2kDecodeWarning>]
Non-fatal codec warnings for each image.
Sourcepub fn surfaces(&self) -> &[Surface]
pub fn surfaces(&self) -> &[Surface]
CUDA-resident image views in dense batch order.
Grayscale groups expose one view per image. NHWC RGB/RGBA groups also expose compatible interleaved views over their dense group allocation. No decoded host staging is used.
Sourcepub const fn dense_output(&self) -> &CudaResidentBatchBuffer
pub const fn dense_output(&self) -> &CudaResidentBatchBuffer
Dense codec-owned allocation for exact-native grayscale or color output.
NCHW color groups must be consumed through this owner because a
Surface describes interleaved pixels. Grayscale and NHWC RGB/RGBA
groups return both this owner and compatible surface views.
Sourcepub fn into_parts(
self,
) -> (BatchGroupInfo, Vec<usize>, Vec<Rect>, Vec<Vec<J2kDecodeWarning>>, Vec<Surface>, CudaResidentBatchBuffer)
pub fn into_parts( self, ) -> (BatchGroupInfo, Vec<usize>, Vec<Rect>, Vec<Vec<J2kDecodeWarning>>, Vec<Surface>, CudaResidentBatchBuffer)
Consume the group into metadata, compatible surfaces, and its required dense exact-native allocation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CudaBatchGroup
impl RefUnwindSafe for CudaBatchGroup
impl Send for CudaBatchGroup
impl Sync for CudaBatchGroup
impl Unpin for CudaBatchGroup
impl UnsafeUnpin for CudaBatchGroup
impl UnwindSafe for CudaBatchGroup
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> 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