pltrs-codec 0.1.0

Self-contained compression and image codecs: DEFLATE/zlib, PNG/APNG, JPEG, TIFF, GIF and WebP, and an AVIF encoder
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! TIFF files.
//!
//! * [`encode_rgba8`] writes uncompressed RGBA files laid out as Pillow
//!   writes them.
//! * [`decode`] reads the first image of a file as Pillow opens it:
//!   little- and big-endian (and `BigTIFF`) files, strips or tiles,
//!   uncompressed, `PackBits`, LZW or Deflate data (with horizontal
//!   differencing), in the layouts Pillow knows — bilevel, 2-, 4-, 8- and
//!   16-bit grey, grey with alpha, RGB and RGBA of 8 or 16 bits (alpha
//!   associated or not), palettes and CMYK — oriented by the
//!   `Orientation` tag.

mod decode;
mod encode;

pub use decode::{DecodeError, decode};
pub use encode::{TiffError, encode_rgba8};