Skip to main content

srgb_decode_lut

Function srgb_decode_lut 

Source
pub fn srgb_decode_lut() -> &'static [f32; 256]
Expand description

The 256-entry sRGB→linear decode table, built once — the workspace’s one sRGB decode. A table rather than a powf per channel because frames_to_settle runs a full-frame difference per captured frame, and the probe is a whole sequence of them.

Index it by the stored byte: lut[b] is the linear light of code value b. linear_diff’s doc comment carries why a level comparison decodes first (private, hence named rather than linked).