Skip to main content

undo_float_predictor

Function undo_float_predictor 

Source
pub fn undo_float_predictor(
    row: &mut [u8],
    tmp: &mut Vec<u8>,
    width_samples: usize,
    bps_bytes: usize,
    factor: usize,
)
Expand description

Undo DNG floating-point predictor (TIFF predictor 3) for one row: bytes were split into byte planes (most significant first) and then byte-differenced. row holds width * cpp * bytes_per_sample bytes; output is native samples in big-endian byte order ready for float_bytes_to_f32.