pub fn encode_htj2k( pixels: &[u8], width: u32, height: u32, bits_per_sample: u8, samples_per_pixel: u8, lossless: bool, ) -> DcmResult<Vec<u8>>
Encode raw pixel data into an HTJ2K codestream.