SpectrumPrecisionPreference type

Accuracy-vs-speed preference for Spectrum’s integer fast paths.

  • "accurate" (default): int32/Q14 fixed-point fast paths, sub-LSB error vs the reference — numerically/visually indistinguishable, and faster. - "fast": looser int16 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. - "reference": skip the integer fast paths entirely — float reference math, stable across releases. For golden / pixel-fingerprint workflows.

Signature:

export type SpectrumPrecisionPreference = "accurate" | "fast" | "reference";