j2k-metal 0.10.0

Metal decoder and encode-stage adapter for j2k
Documentation
// SPDX-License-Identifier: MIT OR Apache-2.0

mod availability;
mod decision;
mod eligibility;
#[cfg(any(test, target_os = "macos"))]
pub(crate) mod promotion;
mod rejection;
mod telemetry;

pub(crate) use decision::{decide_route, decision_error, RouteDecision};
#[cfg(any(test, target_os = "macos"))]
pub(crate) use promotion::{auto_repeated_decode_uses_metal, auto_scaled_decode_uses_metal};

pub(crate) const AUTO_DECODE_CPU_FALLBACK_REASON: &str =
    "J2K Metal Auto decode stays on CPU until decode benchmark evidence justifies Metal routing";

#[cfg(test)]
mod tests;