Skip to main content

forward_dwt97_reference

Function forward_dwt97_reference 

Source
pub fn forward_dwt97_reference(
    samples: &[f32],
    width: u32,
    height: u32,
    num_levels: u8,
) -> J2kForwardDwt97Output
Expand description

Adapter scalar forward 9/7 DWT reference for Metal/CUDA stage parity.

Runs the native CPU irreversible 9/7 forward DWT on samples and returns the decomposed subbands packed into the public J2kForwardDwt97Output type. The returned layout matches what the encoder feeds to Tier-1.