Skip to main content

Crate j2k_jpeg_cuda

Crate j2k_jpeg_cuda 

Source
Expand description

NVIDIA CUDA GPU device-output adapter for j2k-jpeg.

This crate intentionally exposes the same backend-selection surface as the Metal adapter. CPU requests return host-backed surfaces. Scalar auto requests stay on CPU. Explicit CUDA requests use J2K-owned CUDA JPEG decode kernels when the runtime can handle the image, and otherwise return a clear unsupported or unavailable error.

Structs§

Codec
JPEG codec marker used by J2K’s generic CUDA decode traits.
CudaSession
Reusable CUDA JPEG decode session.
CudaSurface
Borrowed CUDA-resident JPEG decode surface.
CudaSurfaceStats
Dispatch counters and residency metadata for a CUDA JPEG surface.
Decoder
JPEG decoder that can return host or CUDA-resident surfaces.
DecoderContext
Shared decode context for WSI tile batches.
ScratchPool
Pool of decoder-internal scratch buffers, reusable across many Decoder::decode_into_with_scratch / decode_rows_with_scratch calls.
Surface
Decoded JPEG surface returned by the CUDA adapter.

Enums§

CudaJpegDecodePath
CUDA JPEG decode path used to produce a surface.
Error
Errors returned by the CUDA JPEG adapter.