pub fn encode_precomputed_htj2k_53(
image: &PrecomputedHtj2k53Image,
options: &EncodeOptions,
) -> Result<Vec<u8>, &'static str>Expand description
Encode precomputed reversible 5/3 wavelet coefficients into an HTJ2K codestream.
This experimental entry point reuses the existing quantization, HT block
coding, packetization, and codestream writer stages. It bypasses the
encoder’s forward DWT stage by supplying precomputed DWT output through the
internal stage hook. Coefficients are expected in the same sample domain as
the native encoder’s FDWT input: unsigned components are already level
shifted by subtracting 2^(bit_depth - 1).