j2k-cuda 0.8.1

CUDA adapter for resident HTJ2K decode/encode and shared JPEG 2000 stages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: MIT OR Apache-2.0

use super::super::{CudaError, Error};

#[cfg(feature = "cuda-runtime")]
#[expect(
    clippy::needless_pass_by_value,
    reason = "conversion consumes the owned plan error to preserve its message"
)]
pub(super) fn cuda_invalid_decode_plan(error: Error) -> CudaError {
    CudaError::InvalidArgument {
        message: error.to_string(),
    }
}