Skip to main content

normalize

Function normalize 

Source
pub fn normalize(voltage: f32) -> f32
Expand description

Normalize a raw composite voltage to the shader-friendly [0.0, 1.0] range.

Maps the black reference to 0.0 and white to 1.0; values outside are possible under emphasis and are left un-clamped so a decoder sees the true signal excursion.