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.

Structs§

Image
A decoded JBIG2 image.

Enums§

DecodeError
The main error type for JBIG2 decoding operations.
FormatError
Errors related to file structure.
HuffmanError
Errors related to Huffman decoding.
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.

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.