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.
Modules§
- integration
- Integration with the image crate.
Structs§
- Decoder
Context - A reusable context for decoding JBIG2 images.
- Image
- A 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.
- Overflow
Error - Arithmetic overflow errors.
- 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.
Traits§
- Decoder
- A decoder for JBIG2 images.
Type Aliases§
- Result
- Result type for JBIG2 decoding operations.