pub fn encode_linear_rgb(rgb: [f32; 3], transfer: SdrOutputTransfer) -> [f32; 3]
Encodes linear-light RGB for an SDR output target.