SpectrumWorkingSpace type
Colour domain in which Spectrum’s compose / resize / spatial ops operate. Orthogonal to SpectrumPrecisionPreference: working space chooses which (both-valid) result is computed (visible on translucent pixels), precision chooses how exactly.
-
"auto"(default): resolve per content — SDR display-encoded content operates in its encoded domain (the structural fast path that avoids the colour round-trip); HDR / scene-linear content uses linear light. -"linearLight": always linearise, operate on light, re-encode. Photometric; required for HDR; safest for heavy translucency. -"displayEncoded": always operate in the encoded reference transfer. SDR graphics convention; cheapest. Wrong for HDR translucency.
Signature:
export type SpectrumWorkingSpace = "auto" | "linearLight" | "displayEncoded";