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.
- Cuda
Session - Reusable CUDA JPEG decode session.
- Cuda
Surface - Borrowed CUDA-resident JPEG decode surface.
- Cuda
Surface Stats - Dispatch counters and residency metadata for a CUDA JPEG surface.
- Decoder
- JPEG decoder that can return host or CUDA-resident surfaces.
- Decoder
Context - Shared decode context for WSI tile batches.
- Scratch
Pool - Pool of decoder-internal scratch buffers, reusable across many
Decoder::decode_into_with_scratch/decode_rows_with_scratchcalls. - Surface
- Decoded JPEG surface returned by the CUDA adapter.
Enums§
- Cuda
Jpeg Decode Path - CUDA JPEG decode path used to produce a surface.
- Error
- Errors returned by the CUDA JPEG adapter.