Skip to main content

forward_rct_reference

Function forward_rct_reference 

Source
pub fn forward_rct_reference(planes: Vec<Vec<f32>>) -> Vec<Vec<f32>>
Expand description

Adapter scalar forward RCT reference for CUDA stage parity.

Applies the native CPU forward Reversible Color Transform to three component planes supplied as owned Vec<f32> arrays. The transform is applied in place and the mutated planes are returned, so callers do not need to pass a mutable slice.