Expand description
JPEG 2000 codestream parser and generator.
Port of ojph_codestream.h/cpp. The Codestream struct is the main
entry point for encoding and decoding HTJ2K images.
§Encoding workflow
- Create a
Codestreamand configure parameters viaaccess_siz_mut(),access_cod_mut(), andaccess_qcd_mut(). - Call
write_headers()to emit the main header to anOutfileBaseimplementor. - Push image lines with
exchange(). - Call
flush()to write tile data and the EOC marker.
§Decoding workflow
- Create a
Codestreamand callread_headers()on anInfileBaseimplementor. - Optionally inspect SIZ/COD/QCD parameters.
- Call
create()to build internal structures. - Pull decoded lines with
pull().
Modules§
- bitbuffer_
read - Bit-buffer reader for codestream parsing.
- bitbuffer_
write - Bit-buffer writer for codestream generation.
Structs§
- Codestream
- The main codestream interface for encoding and decoding HTJ2K images.