signinum_jpeg_cuda/lib.rs
1// SPDX-License-Identifier: Apache-2.0
2
3//! CUDA-facing device-output adapter for `signinum-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, while full-tile batch auto requests may use nvJPEG
8//! when the CUDA runtime and library are available. Explicit CUDA requests
9//! return CUDA-backed surfaces or a clear unavailable error.
10
11#![warn(unreachable_pub)]
12
13mod codec;
14mod decoder;
15mod error;
16mod profile;
17mod runtime;
18mod session;
19mod surface;
20
21pub use codec::Codec;
22pub use decoder::Decoder;
23pub use error::Error;
24pub use session::CudaSession;
25pub use signinum_jpeg::{DecoderContext, ScratchPool};
26pub use surface::{CudaSurface, CudaSurfaceStats, Surface};