Skip to main content

Crate hayro_jbig2

Crate hayro_jbig2 

Source
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§

DecoderContext
A reusable context for decoding JBIG2 images.
Image
A JBIG2 image.

Enums§

DecodeError
The main error type for JBIG2 decoding operations.
FormatError
Errors related to file structure.
HuffmanError
Errors related to Huffman decoding.
OverflowError
Arithmetic overflow errors.
ParseError
Errors related to reading/parsing data.
RegionError
Errors related to region parameters.
SegmentError
Errors related to segment processing.
SymbolError
Errors related to symbol handling.
TemplateError
Errors related to template configuration.

Traits§

Decoder
A decoder for JBIG2 images.

Type Aliases§

Result
Result type for JBIG2 decoding operations.