SpectrumPrecisionPreference type

Precision-vs-performance preference for Spectrum’s integer fast paths.

  • "highFidelity" (default): float reference path, bit-exact with the original behaviour. - "fast": integer fast paths with up to ±2 LSB drift on the 8-bit output. Roughly 2× faster per-CPU-cycle on BT.709 YUV↔RGB UINT8 chains. - "bitExact": skip integer fast paths entirely. For pixel-fingerprint workflows that need byte-exact float-reference output.

Signature:

export type SpectrumPrecisionPreference = "highFidelity" | "fast" | "bitExact";