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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
//! `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::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 `gamut` CLI.
//!
//! 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.
/// The version of this `gamut` library crate, taken from its `Cargo.toml` at compile time.
///
/// Exposed so tooling (e.g. the `gamut` CLI's `-V` output) can report the resolved library
/// version without hardcoding it. Because each workspace crate is versioned independently, this
/// can differ from the version of the binary or consumer that links it.
pub const VERSION: &str = env!;
pub use gamut_av1 as av1;
pub use gamut_av2 as av2;
pub use gamut_avif as avif;
pub use gamut_bitstream as bitstream;
pub use gamut_codec_abi as codec_abi;
pub use gamut_color as color;
pub use gamut_core as core;
pub use gamut_dng as dng;
pub use gamut_dsp as dsp;
pub use gamut_exif as exif;
pub use gamut_heic as heic;
pub use gamut_icc as icc;
pub use gamut_ifd as ifd;
pub use gamut_iptc as iptc;
pub use gamut_isobmff as isobmff;
pub use gamut_jpeg as jpeg;
pub use gamut_jxl as jxl;
pub use gamut_metadata as metadata;
pub use gamut_png as png;
pub use gamut_tiff as tiff;
pub use gamut_tonemap as tonemap;
pub use gamut_vvc as vvc;
pub use gamut_webp as webp;
pub use gamut_xmp as xmp;