pub fn encode_htj2k(
pixels: &[u8],
width: u32,
height: u32,
num_components: u8,
bit_depth: u8,
signed: bool,
options: &EncodeOptions,
) -> Result<Vec<u8>, &'static str>Expand description
Encode pixel data into an HTJ2K codestream.
Lossless HTJ2K output is self-validated before it is returned.