hayro-ccitt 0.3.0

A decoder for group 3 and group 4 CCITT images.
Documentation
  • Coverage
  • 100%
    27 out of 27 items documented0 out of 10 items with examples
  • Size
  • Source code size: 48.65 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.21 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • LaurenzV/hayro
    621 43 18
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • LaurenzV

hayro-ccitt

Crates.io Documentation

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 the encoded data and a DecoderContext, and outputs the decoded pixels through a Decoder trait that can be implemented according to your needs. For example, you could implement the trait such that the decoded pixels are written into a vector, but you could also configure it to instead print the pixels to standard output, without any intermediate allocations.

The crate is no_std compatible but requires an allocator to be available.

Safety

Unsafe code is forbidden via a crate-level attribute.

License

Licensed under either of

at your option.