Expand description
gamut — the umbrella crate for a collection of space-efficient image encoding libraries.
This crate re-exports the high-level APIs of the format-specific crates behind Cargo features, so a consumer compiles only the codecs they need:
gamut = { version = "0.1", features = ["avif", "jxl"] }core (re-exported from gamut-core) is always
available and provides the shared core::EncodeImage / core::DecodeImage traits, the
branded core::ImageRef / core::ImageBuf buffers, and the common core::Error type.
Each format module appears only when its feature is enabled.
The primitives feature additionally re-exports the shared building blocks the codecs are
made of — color (pixel formats / CICP), dsp (transforms), and bitstream (bit writer
- AV1 symbol coder) — for tooling and sandbox use such as the
gamutCLI.
The metadata feature re-exports the shared image-metadata primitives (issue #34) — the
TIFF/IFD container core (ifd) plus, as they land, the per-format crates (exif/xmp/icc/
iptc) and the metadata facade that unifies them — for tooling and for the container crates
to consume.
The isobmff feature re-exports the ISOBMFF/HEIF still-image container primitive (isobmff) —
the box tree shared by the AVIF and HEIC codecs — so tooling can read and write containers
directly, independently of the codecs that fill them.
The codec-abi feature re-exports the shared codestream-backend seam (codec_abi) — the
repr(C) vtables and their object-safe Rust twin traits by which a foreign (C/FFI) or alternate
codestream backend plugs into a format crate — for anyone implementing or adapting a backend.
Re-exports§
pub use gamut_core as core;
Constants§
- VERSION
- The version of this
gamutlibrary crate, taken from itsCargo.tomlat compile time.