Skip to main content

forward_dwt53_reference

Function forward_dwt53_reference 

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

Adapter scalar forward 5/3 DWT reference for CUDA stage parity.

Runs the native CPU reversible 5/3 forward DWT on samples and returns the decomposed subbands packed into the public J2kForwardDwt53Output type. The returned layout matches what the encoder feeds to Tier-1.