Skip to main content

encode_precomputed_htj2k_97

Function encode_precomputed_htj2k_97 

Source
pub fn encode_precomputed_htj2k_97(
    image: &PrecomputedHtj2k97Image,
    options: &EncodeOptions,
) -> Result<Vec<u8>, &'static str>
Expand description

Encode precomputed irreversible 9/7 wavelet coefficients into an HTJ2K codestream.

This experimental entry point is the lossy counterpart of encode_precomputed_htj2k_53. It bypasses the encoder’s forward 9/7 DWT stage by supplying precomputed floating-point DWT output through the internal stage hook. Coefficients are expected in the same sample domain as the native irreversible FDWT input: unsigned components are already level shifted by subtracting 2^(bit_depth - 1).