Expand description
NVIDIA CUDA GPU device-output adapter for Rust JPEG 2000 / HTJ2K in j2k.
This crate intentionally exposes the same backend-selection surface as the Metal adapter. CPU and auto requests return host-backed surfaces. Strict CUDA requests are reserved for CUDA-resident HTJ2K codestream decode and CUDA-resident HTJ2K encode inputs; the CPU-decode-then-upload path is exposed through explicit CPU-staged APIs.
Structs§
- Codec
- Marker type implementing tile-batch CUDA surface decode traits.
- Cuda
Encode Stage Accelerator - CUDA implementation of selected JPEG 2000 encode stages.
- Cuda
Encode Stage Timings - Cumulative CUDA encode-stage timings collected by
CudaEncodeStageAccelerator. - Cuda
Htj2k Code Block - Flat POD HTJ2K code-block metadata consumed by CUDA kernels.
- Cuda
Htj2k Decode Plan - Flat CUDA HTJ2K decode plan.
- Cuda
Htj2k Decode Profile Detail - Detailed route-overhead timings for strict CUDA HTJ2K decode.
- Cuda
Htj2k Encode Profile Report - Structured stage timings for a strict CUDA HTJ2K encode operation.
- Cuda
Htj2k Idwt Step - Flat POD IDWT step consumed by CUDA kernels.
- Cuda
Htj2k Profile Report - Structured stage timings for a strict CUDA HTJ2K operation.
- Cuda
Htj2k Rect - Flat POD rectangle used inside CUDA HTJ2K plan metadata.
- Cuda
Htj2k Store Step - Flat POD store step consumed by CUDA kernels.
- Cuda
Htj2k Subband - Flat POD sub-band geometry consumed by CUDA kernels.
- Cuda
Lossless Encode Outcome - Lossless CUDA device-buffer encode output with host codestream bytes and timings.
- Cuda
Lossless Encode Residency - Residency decisions used by a lossless CUDA device-buffer encode.
- Cuda
Lossless Encode Tile - CUDA-resident lossless J2K/HTJ2K encode input tile.
- Cuda
Session - Mutable CUDA adapter session reused across submissions.
- Cuda
Surface - Borrowed view of a CUDA-resident surface.
- Cuda
Surface Stats - CUDA surface execution counters.
- J2kContext
- Reusable JPEG 2000 decode context and cache state.
- J2kDecoder
- CUDA-facing JPEG 2000 decoder wrapper.
- J2kScratch
Pool - Caller-owned reusable scratch for
j2k. - Submitted
J2kLossless Cuda Encode - Submitted single-tile CUDA lossless encode.
- Submitted
J2kLossless Cuda Encode Batch - Submitted multi-tile CUDA lossless encode.
- Surface
- Host- or CUDA-backed decoded surface.
Enums§
- Cuda
Htj2k Transform - CUDA-side DWT transform selector for a flat HTJ2K plan.
- Error
- Error returned by the CUDA JPEG 2000 adapter.
- Surface
Residency - Residency of a decoded J2K CUDA adapter surface.
Functions§
- encode_
j2k_ lossless_ with_ cuda - Encode lossless JPEG 2000/HTJ2K samples through the CUDA encode-stage adapter.
- encode_
j2k_ lossless_ with_ cuda_ and_ profile - Encode lossless JPEG 2000/HTJ2K samples through CUDA and return stage timings.
- encode_
lossless_ from_ cuda_ buffer - Encode one CUDA-resident tile into host codestream bytes.
- encode_
lossless_ from_ cuda_ buffer_ with_ report - Encode one CUDA-resident tile and return a host-byte timing report.
- encode_
lossless_ from_ cuda_ buffers - Encode multiple CUDA-resident tiles into host codestream bytes.
- encode_
lossless_ from_ cuda_ buffers_ with_ report - Encode multiple CUDA-resident tiles and return host-byte timing reports.
- submit_
lossless_ from_ cuda_ buffer - Submit one CUDA-resident tile encode for later host-byte collection.
- submit_
lossless_ from_ cuda_ buffers - Submit multiple CUDA-resident tile encodes for later host-byte collection.
Type Aliases§
- Cuda
Htj2k Band Id - Stable CUDA-side identifier for a direct-plan coefficient band.