Skip to main content

encode_precomputed_j2k_53

Function encode_precomputed_j2k_53 

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

Encode precomputed reversible 5/3 wavelet coefficients into a classic JPEG 2000 Part 1 codestream.

This mirrors encode_precomputed_htj2k_53 while selecting classic EBCOT block coding. It reuses the same quantization, packetization, and codestream writer stages as the normal encoder and is primarily intended for fixtures and coefficient-domain workflows that need JPEG-native component sampling.