mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 21:52:32 +00:00
961 upstream commits since 7bb6c900. Resolutions:
- Test-only conflicts: upstream tests from before the base that our side
cut stay cut; tests new upstream are kept (audio aac/config, layout,
encode_format; cms lutfile; media mux; print windows_native, ticket;
update self_update; xml hostile).
- Code our side moved, with upstream's change carried to the new place:
craft-media mux roll sample groups (mux/boxes.rs) and writer-start
offsets with overflow checks (mux/progressive.rs); craft-print's
shrink-to-fit scale guard (sheets/plan.rs); craft-update's nextest
archive detection (self_update/detect.rs); craft-vectorcraft-format's
Tail::write_to_with (container.rs); craft-i18n's pedantic fixes
(bidi.rs, negotiation.rs).
- craft-ui: the old crate's modules stay removed; gpu_test_lock guarded
their per-test wgpu renderers, which the snapshot kit does not have.
- New upstream tests in crates that build their integration tests into
the library's test executable are modules of tests/main.rs (audio
flac_decode and qoa_oracle, cms, docpath, pcraft-format,
vectorcraft-format).
- The 22 new crates are optional members of the craft facade.
40 lines
1.7 KiB
Rust
40 lines
1.7 KiB
Rust
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
|
//! OpenEXR handling shared by the Craft apps.
|
|
//!
|
|
//! This first part is the naming layer every reader needs once it has a file's channel list and
|
|
//! header attributes, whichever decoder produced them:
|
|
//!
|
|
//! - [`channels`]: OpenEXR layer and channel names (`diffuse.R`, `ViewLayer.Combined.R`), the
|
|
//! channels that make a colour picture, and the channels of a layer to show as red, green, blue
|
|
//! and alpha.
|
|
//! - [`cryptomatte`]: Cryptomatte (specification 1.2) IDs, metadata keys, manifests and rank
|
|
//! channel names.
|
|
//!
|
|
//! Those take names and attribute text and depend on no decoder. With the `decode` feature:
|
|
//!
|
|
//! - `decode`: bounded part listing, flat decoding (scan lines and tiles, every compression the
|
|
//! `exr` crate reads) and writing, on top of the `exr` crate.
|
|
//! - `deep`: deep scan lines and tiles (NONE, RLE, ZIPS) and their flattening.
|
|
//! - `stream`: one flat scan-line part read block by block, for pictures larger than memory.
|
|
//! - `cryptomatte_samples`: a file's Cryptomatte layers and their per-pixel (ID, coverage) ranks.
|
|
|
|
/// Scanline OpenEXR writer using a caller-supplied linearization table.
|
|
pub mod rgba8;
|
|
/// RFC 1950/1951 compressor for ZIP-compressed EXR chunks.
|
|
pub mod zlib;
|
|
|
|
pub mod channels;
|
|
pub mod cryptomatte;
|
|
#[cfg(feature = "decode")]
|
|
pub mod cryptomatte_samples;
|
|
#[cfg(feature = "decode")]
|
|
pub mod decode;
|
|
#[cfg(all(test, feature = "decode"))]
|
|
mod decode_tests;
|
|
#[cfg(feature = "decode")]
|
|
pub mod deep;
|
|
#[cfg(all(test, feature = "decode"))]
|
|
mod deep_tests;
|
|
#[cfg(feature = "decode")]
|
|
pub mod stream;
|