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 a few LSB drift on the 8-bit output (up to ~5 LSB on chroma). 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";