Skip to main content

Crate j2k_transcode_metal

Crate j2k_transcode_metal 

Source
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§

MetalDctToWaveletStageAccelerator
Optional Metal accelerator for j2k-transcode transform stages.
MetalEncodedTranscode
JPEG-to-HTJ2K transcode output plus Metal route report.
MetalEncodedTranscodeBatch
Batch JPEG-to-HTJ2K transcode output plus Metal route report.
MetalRuntimeFailure
Diagnostic retained when the Metal runtime rejects a transcode operation.
MetalTranscodeRouteReport
Public route report for Metal-adapted JPEG-to-HTJ2K transcode calls.
MetalTranscodeSession
Placeholder Metal transcode session for hosts without Metal support.

Enums§

MetalTranscodeError
Error returned by the Metal transcode accelerator.
MetalTranscodeFallbackReason
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.