j2k-metal 0.8.1

Metal decoder and encode-stage adapter for j2k
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: MIT OR Apache-2.0

mod runtime;
mod shape;

pub(super) use self::runtime::prepared_direct_color_plan_supports_runtime;
pub(super) use self::shape::{
    classic_group_shapes_match, classic_sub_band_shapes_match, ht_group_shapes_match,
    ht_sub_band_shapes_match, idwt_shapes_match, store_shapes_match,
};

use crate::Error;

pub(super) fn direct_preflight_invariant(message: &'static str) -> Error {
    Error::MetalKernel {
        message: format!("internal J2K Metal direct preflight error: {message}"),
    }
}