1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! `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:
//!
//! ```toml
//! gamut = { version = "0.1", features = ["avif", "jxl"] }
//! ```
//!
//! [`core`] (re-exported from [`gamut-core`](https://crates.io/crates/gamut-core)) is always
//! available and provides the shared [`core::Encoder`] / [`core::Decoder`] traits 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 `gamut` CLI.
pub use gamut_core as core;
pub use gamut_bitstream as bitstream;
pub use gamut_color as color;
pub use gamut_dsp as dsp;
pub use gamut_av1 as av1;
pub use gamut_av2 as av2;
pub use gamut_avif as avif;
pub use gamut_heic as heic;
pub use gamut_jxl as jxl;
pub use gamut_vvc as vvc;
pub use gamut_webp as webp;