exr::compression::pxr24

Function f32_to_f24

Source
pub fn f32_to_f24(float: f32) -> u32
Expand description

Conversion from 32-bit to 24-bit floating-point numbers. Reverse conversion is just a simple 8-bit left shift.