Skip to main content

j2k_jpeg_cuda/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2
3//! NVIDIA CUDA GPU device-output adapter for `j2k-jpeg`.
4//!
5//! This crate intentionally exposes the same backend-selection surface as the
6//! Metal adapter. CPU requests return host-backed surfaces. Scalar auto
7//! requests stay on CPU. Explicit CUDA requests use J2K-owned CUDA JPEG
8//! decode kernels when the runtime can handle the image, and otherwise return
9//! a clear unsupported or unavailable error.
10
11#![warn(unreachable_pub)]
12
13mod codec;
14mod decoder;
15mod error;
16mod owned_decode;
17mod runtime;
18mod session;
19mod surface;
20
21pub use codec::Codec;
22pub use decoder::Decoder;
23pub use error::Error;
24pub use j2k_jpeg::{DecoderContext, ScratchPool};
25pub use session::CudaSession;
26pub use surface::{CudaJpegDecodePath, CudaSurface, CudaSurfaceStats, Surface};