From 2680fefdd89977a8466fde83db78f80c2fd7cb5d Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 19 Nov 2026 16:32:01 +0000 Subject: [PATCH] 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). --- crates/media/src/mpegts/mux/mod.rs | 4 ++-- crates/video/Cargo.toml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/media/src/mpegts/mux/mod.rs b/crates/media/src/mpegts/mux/mod.rs index 2bf808e17..7e7ced791 100644 --- a/crates/media/src/mpegts/mux/mod.rs +++ b/crates/media/src/mpegts/mux/mod.rs @@ -155,9 +155,9 @@ pub type Result = std::result::Result; 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, diff --git a/crates/video/Cargo.toml b/crates/video/Cargo.toml index 11ad425f0..4ef66a5e1 100644 --- a/crates/video/Cargo.toml +++ b/crates/video/Cargo.toml @@ -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`.