Expand description
A memory-safe, pure-Rust JBIG2 decoder.
hayro-jbig2 decodes JBIG2 images as specified in ITU-T T.88 (also known as
ISO/IEC 14492). JBIG2 is a bi-level image compression standard commonly used
in PDF documents for compressing scanned text documents.
The crate is no_std compatible but requires an allocator to be available.
§Safety
This crate forbids unsafe code via a crate-level attribute.
Structs§
- Image
- A decoded JBIG2 image.
Enums§
- Decode
Error - The main error type for JBIG2 decoding operations.
- Format
Error - Errors related to file structure.
- Huffman
Error - Errors related to Huffman decoding.
- Parse
Error - Errors related to reading/parsing data.
- Region
Error - Errors related to region parameters.
- Segment
Error - Errors related to segment processing.
- Symbol
Error - Errors related to symbol handling.
- Template
Error - Errors related to template configuration.
Functions§
- decode
- Decode a JBIG2 file from the given data.
- decode_
embedded - Decode an embedded JBIG2 image. with the given global segments.
Type Aliases§
- Result
- Result type for JBIG2 decoding operations.