Expand description
Metal acceleration for coefficient-domain JPEG to HTJ2K transcode stages.
The supported targets are direct DCT-grid to one-level 5/3 and 9/7 wavelet
projections used by j2k-transcode’s HTJ2K paths. CPU scalar code
remains the oracle and fallback.
Auto routing is intentionally batch-first for the expensive Metal transcode
paths: the default single-job reversible 5/3 and 9/7 thresholds are
usize::MAX, so single-tile requests stay on the CPU unless callers opt in
with with_auto_reversible_min_samples or with_auto_dwt97_min_samples.
Structs§
- Metal
DctTo Wavelet Stage Accelerator - Optional Metal accelerator for
j2k-transcodetransform stages. - Metal
Encoded Transcode - JPEG-to-HTJ2K transcode output plus Metal route report.
- Metal
Encoded Transcode Batch - Batch JPEG-to-HTJ2K transcode output plus Metal route report.
- Metal
Runtime Failure - Diagnostic retained when the Metal runtime rejects a transcode operation.
- Metal
Transcode Route Report - Public route report for Metal-adapted JPEG-to-HTJ2K transcode calls.
- Metal
Transcode Session - Placeholder Metal transcode session for hosts without Metal support.
Enums§
- Metal
Transcode Error - Error returned by the Metal transcode accelerator.
- Metal
Transcode Fallback Reason - Structured CPU fallback reason for the Metal JPEG-to-HTJ2K route facade.
Constants§
- METAL_
UNAVAILABLE - Stable message returned when Metal is unavailable.
Functions§
- jpeg_
to_ htj2k_ batch_ with_ metal_ route - Batch transcode JPEG tiles to HTJ2K using CPU, Auto Metal, or strict Metal routing.
- jpeg_
to_ htj2k_ with_ metal_ route - Transcode JPEG to HTJ2K using CPU, Auto Metal, or strict Metal routing.