Sync follow-ups: craft-video's track decoder builds with ffv1, vp8-decode and mpeg2-decode alone; mpegts mux docs quote AV1 field names

next makes craft-media optional in craft-video, and main's track decoder (built with any decoder
feature, now including ffv1 and vp8-decode) imports craft_media::CodecParams. Every feature that
builds the track module now turns on craft-media, as dnx and av1-decode already do.

The AV1 descriptor fields `seq_level_idx[0]` and `seq_tier[0]` are code, so rustdoc no longer
reads `[0]` as an intra-doc link (next's media workflow documents with -D warnings).
This commit is contained in:
aiongg committed 2026-11-19 16:32:01 +00:00
1 parent 454a08255a
commit 2680fefdd8
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -155,9 +155,9 @@ pub type Result<T> = std::result::Result<T, Error>;
pub struct Av1Config {
/// seq_profile, 0 to 2.
pub seq_profile: u8,
/// seq_level_idx[0], 0 to 31.
/// `seq_level_idx[0]`, 0 to 31.
pub seq_level_idx_0: u8,
/// seq_tier[0].
/// `seq_tier[0]`.
pub seq_tier_0: bool,
/// high_bitdepth.
pub high_bitdepth: bool,
+3 -3
View File
@@ -25,19 +25,19 @@ apv-decode = ["craft-media/bitstream"]
apv-encode = ["craft-media/bitstream"]
# VP8 (RFC 6386): decoder and encoder; `vp8-decode` or `vp8-encode` for one of them.
vp8 = ["vp8-decode", "vp8-encode"]
vp8-decode = []
vp8-decode = ["dep:craft-media"]
vp8-encode = []
# MPEG-2 video (ITU-T H.262) and MPEG-1 video (ISO/IEC 11172-2): decoder (`mpeg2-decode`) and
# MPEG-2 encoder (`mpeg2-encode`). The encoder reuses the decoder's code tables, IDCT and motion
# compensation, so it turns on the decoder too.
mpeg2 = ["mpeg2-decode", "mpeg2-encode"]
mpeg2-decode = []
mpeg2-decode = ["dep:craft-media"]
mpeg2-encode = ["mpeg2-decode"]
# MPEG-4 Part 2 video (ISO/IEC 14496-2, the Xvid/DivX format): Simple profile encoder.
mpeg4 = ["mpeg4-encode"]
mpeg4-encode = ["craft-media/bitstream"]
# FFV1 lossless video (RFC 9043): version 3, range coder, decoder and encoder.
ffv1 = []
ffv1 = ["dep:craft-media"]
# Hap (Vidvox): decoder and encoder, with Snappy and chunked second stages.
hap = []
# Motion JPEG: a frame-level decoder and encoder over `craft-jpeg`.