mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-21 01:43:51 +01:00
* codecs: use shared container muxing for slideshow video * codecs: format shared mux adapter and return invalid writer state * codecs: box active WebM mux state to keep writer variants compact * test(slideshow): ignore craft-media Mp4Writer placeholder free box * fix(codecs): include av01 ftyp brand and real WebM ReferenceBlock delta
58 lines
2.4 KiB
TOML
58 lines
2.4 KiB
TOML
[package]
|
|
name = "lightcraft-codecs"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "LightCraft standard image codecs: sniffing, decode to linear light, ICC, encoders (L1)"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
lightcraft-geom = { workspace = true }
|
|
lightcraft-color = { workspace = true }
|
|
lightcraft-raster = { workspace = true }
|
|
craft-gainmap = { workspace = true }
|
|
craft-cms = { workspace = true }
|
|
craft-jpeg = { workspace = true }
|
|
craft-image-codecs = { workspace = true }
|
|
craft-media = { workspace = true }
|
|
craft-metadata = { workspace = true }
|
|
craft-tiff = { workspace = true }
|
|
craft-gif = { workspace = true }
|
|
craft-psd = { workspace = true }
|
|
craft-heif = { workspace = true, optional = true, features = ["decode"] }
|
|
serde = { workspace = true }
|
|
bytemuck = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
rayon = { workspace = true, optional = true }
|
|
craft-jxl = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
craft-video = { workspace = true, optional = true }
|
|
craft-image-codecs = { workspace = true, optional = true, features = ["avif", "threads"] }
|
|
|
|
[features]
|
|
default = ["parallel", "jxl", "avif"]
|
|
parallel = ["dep:rayon", "lightcraft-raster/parallel", "craft-jpeg/parallel"]
|
|
## JPEG XL decoding and encoding via the shared craft-jxl codec.
|
|
jxl = ["dep:craft-jxl"]
|
|
# HEIC/HEIF decode via the optional craft-heif crate (heic-rs, pure Rust). Off by default so
|
|
# distributors choose it at build time (HEVC patents are a distributor's call, same policy as
|
|
# PhotoCraft); `cargo xtask ci` clippies and tests it (`--features heif`), releases don't ship it yet.
|
|
heif = ["dep:craft-heif"]
|
|
## AVIF/AV1 encoding via craft-image-codecs / craft-video (pure Rust), plus the shared AVIF decoder. Native targets only; a no-op on wasm32.
|
|
avif = ["dep:craft-video", "dep:craft-image-codecs", "craft-image-codecs/avif-decode"]
|
|
|
|
[dev-dependencies]
|
|
# tests record why they skip (`cargo xtask ci` lists the skips)
|
|
lightcraft-testkit = { workspace = true }
|
|
# JPEG parity tests and the benchmark use the prior/reference encoder only in development.
|
|
jpeg-encoder = { workspace = true }
|
|
proptest = { workspace = true }
|
|
# Lossless synthetic HEIC files for the `heif` feature's tests.
|
|
craft-heif = { workspace = true, features = ["testdata"] }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
dhat = { workspace = true }
|