| Crates.io | hayro-ccitt |
| lib.rs | hayro-ccitt |
| version | 0.2.0 |
| created_at | 2025-12-14 13:48:13.441294+00 |
| updated_at | 2026-01-04 10:39:17.304723+00 |
| description | A decoder for group 3 and group 4 CCITT images. |
| homepage | |
| repository | https://github.com/LaurenzV/hayro |
| max_upload_size | |
| id | 1984514 |
| size | 36,503 |
A decoder for CCITT fax-encoded images.
This crate implements the CCITT Group 3 and Group 4 fax compression algorithms as defined in ITU-T Recommendations T.4 and T.6. These encodings are commonly used for bi-level (black and white) images in PDF documents and fax transmissions.
The main entry point is the decode function, which takes encoded data and
decoding settings, and outputs the decoded pixels through a Decoder trait
that can be implemented according to your needs.
The crate is no_std compatible but requires an allocator to be available.
Unsafe code is forbidden via a crate-level attribute.
Licensed under either of
at your option.