j2k-jpeg-cuda 0.6.1

NVIDIA CUDA GPU JPEG decode adapter for j2k-jpeg
Documentation
// SPDX-License-Identifier: Apache-2.0

//! 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.

#![warn(unreachable_pub)]

mod codec;
mod decoder;
mod error;
mod owned_decode;
mod runtime;
mod session;
mod surface;

pub use codec::Codec;
pub use decoder::Decoder;
pub use error::Error;
pub use j2k_jpeg::{DecoderContext, ScratchPool};
pub use session::CudaSession;
pub use surface::{CudaJpegDecodePath, CudaSurface, CudaSurfaceStats, Surface};