From 70849e07ad7e30da44cd8a7f390dc93bfb49542e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 24 Sep 2026 11:46:20 +0300 Subject: [PATCH] lane-av112bitc: lift the 12-bit compound gate to the witnessed set The parent lifted single-ref 12-bit MC and left compound refused by name. A reaching stream existed already in its own battery recipe (six frames, warp off): the pre-fix tree refuses it at the compound mode read, so the witness is non-vacuous. - decode.rs: both 12-bit compound refusal sites deleted; nothing else in the parse changes (the guard sat after the mode symbol read, before any prediction). - mc.rs: no arithmetic change -- the parent's combines already absorb the CONV_BUF gain drop (INTER_POST_ROUND - delta; diffwtd + (bd-8) - delta, reconinter.c:307). Stale doc sentence corrected; mc_subpel_hits carries the test-only-reader allow so --all-targets checks warning-free. - refusal_inventory: 38 -> 37, every proven refusal still names a test. - stream.rs: the refusal gate becomes the two-arm witness a_real_aomenc_12bit_compound_inter_sequence_decodes_pixel_exact -- default recipe (15 compound blocks, 1 diffwtd) and --enable-dist-wtd-comp=0 (18 compound, 6 diffwtd), both byte-exact vs ffmpeg on every plane, hard-asserting compound/masked/diffwtd counters. - fixtures: av112bit-compound.obu (a839cff5...), av112bit-compound-masked.obu (83625de2...), re-encode cmp clean, dump_yuv == ffmpeg whole-stream on all 6 frames. - warp, grain, screen content stay refused by name; the parent's 12-bit key and single-ref inter witnesses and both 10-bit film gates stay exact. Wedge-masked compound at 12 bits recorded as an open half (unwitnessed; same blend function, bit-depth-free mask codebook). --- .../fixtures/av112bit-compound-masked.obu | Bin 0 -> 7470 bytes crates/ec-av1/fixtures/av112bit-compound.obu | Bin 0 -> 7486 bytes crates/ec-av1/src/decode.rs | 28 ++-- crates/ec-av1/src/mc.rs | 5 +- crates/ec-av1/src/refusal_inventory.rs | 19 +-- crates/ec-av1/src/stream.rs | 70 +++++++--- lanes/av112bitc.report.md | 124 ++++++++++++++++++ 7 files changed, 198 insertions(+), 48 deletions(-) create mode 100644 crates/ec-av1/fixtures/av112bit-compound-masked.obu create mode 100644 crates/ec-av1/fixtures/av112bit-compound.obu create mode 100644 lanes/av112bitc.report.md diff --git a/crates/ec-av1/fixtures/av112bit-compound-masked.obu b/crates/ec-av1/fixtures/av112bit-compound-masked.obu new file mode 100644 index 0000000000000000000000000000000000000000..50678626cc27ce8588aff2c8c76a243059f21bae GIT binary patch literal 7470 zcmV+}9ns9t(gL>R|hm z%4eKythDpG=p>TWaz!Z;m(TK+4E7EB`tW!DSJq2x^UCySBhupLL=^a!r2-}r?~ z4r=`kxch2XenW-B5iMkBy)rQbTW#RWyS9!-~L4SlcUFThpFAlzgXYW~8lWYvF zr6RV}xf?Nf!)YK;<6pNF5+QIFqr2h&&B$WCLvu@WX<*jLjTUz#+u{HoOv4W zx}^}p4!gUHn?h``&EXh98I^vQN!#UStLlv_1kq)B5Db zl)H;1BF{}ew`~2a(S!XN#bQ50q2D7%1@|wYAkF{dXsx9y24s1$&zF3S*|NF4%t9io z!g7W~a&T%OdppmMi!m3RY6QdXkPC5r(T$e@!q9@`x~wF`ia$B59x90c-$B`I4?VOB zv^#E{+~9iC$Q|uEcglqBW6$F;54N#Pe`{pq5vbh7U6uvZUsB5k>s2qnB;~Yj2{Q;W zeM>_1wopFO6F@1_71OdWe9!qXn99nJUjIeJUcN_+BBnGY<>+ANFyK7%9t|WxDio2% zyDHDkA1>lR^s!t1-~a`=4A13RMll^!>^)dw@)B?{Ut@6OPGn9e?Qi~M;!MChoF5{h zU8g78>6Ii9hi~U*K4zUTob^*3d|5dMnR>Qm6jTsv_i>n`{o|uSl=!Z}XtKhca2g&N zm~-JBk3}pjfj}KYwD26||G*f)FSJ`^59Kya84ahRqpZnAAf^@cg;@q798wPEphN~K z`@<12%-)^Ij@vpl?M2^^s~x9CftHcGUg{Jh#>~|R95o*C!W&qtBwgvSJzun7TnZfO zuAG2Q$9qwmn}lX;SZ267IdB{4bhI+IhIM}TQZ|GXy@&(f0xz5(wH237@)~T%nfp;I ztUV`jz4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tl-}SBS74>bVHt);*+g9iG@`1Qr zl&B~Z_xV7)30`{u5d6y;ckv=7L<0yn%)qbYo&PRBSS1`8DtlwZ(~rJgHQ7)f?Zi|- zJFfBM5|b_?xc;WT|FO%UFh(|p-4lQC(KJL{nZT0iIBYgtKA1SUF5iOJZCRC+sosXf z+|@x!79eNhZN11&?v?C}cu^DOrnUb6p)p&-6h4)lJ{n;dscIl9ce4OsH8#akD$jkl86cf z>9>372B~bID}gSLy9)x1oF|LdwecEerQE^nE1D&c)buKrojr#QeU3O7Ma&H$Sk2Dstv@BcAZrjsxV0*ThMX0m(I74Ekc$>rQUVrr%+YPWfNdGUYOyH2?qr literal 0 HcmV?d00001 diff --git a/crates/ec-av1/fixtures/av112bit-compound.obu b/crates/ec-av1/fixtures/av112bit-compound.obu new file mode 100644 index 0000000000000000000000000000000000000000..e23db9f5432e641f12088808ff712d04f5d9f63b GIT binary patch literal 7486 zcmV-E9l_!f01690000BD|MTDHj36?s91sA5AOHv<2n-iJ0RHf8a@pS>9t(gL>R|hm z%4eKythDpG=p>TWaz!Z;m(TK+4E7EB`tW!DSJq2x^UCySBhupLL=^a!r2-}r?~ z4r=`kxch2XenW-B5iMkBy)rQbTW#RWyS9!-~L4SlcUFThpFAlzgXYW~8lWYvF zr6RV}xf?Nf!)YK;<6pNF5+QIFqr2h&&B$WCLvu@WX<*jLjTUz#+u{HoOv4W zx}^}p4!gUHn?h``&EXh98I^vQN!#UStLlv_1kq)B5Db zl)H;1BF{}ew`~2a(S!XN#bQ50q2D7%1@|wYAkF{dXsx9y24s1$&zF3S*|NF4%t9io z!g7W~a&T%OdppmMi!m3RY6QdXkPC5r(T$e@!q9@`x~wF`ia$B59x90c-$B`I4?VOB zv^#E{+~9iC$Q|uEcglqBW6$F;54N#Pe`{pq5vbh7U6uvZUsB5k>s2qnB;~Yj2{Q;W zeM>_1wopFO6F@1_71OdWe9!qXn99nJUjIeJUcN_+BBnGY<>+ANFyK7%9t|WxDio2% zyDHDkA1>lR^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%|8{V07PZxngbA2&mG08 zB>Mj2WoAs`$4^$cccFPMM$arB*d_i1c7ZeN8pDA~<;kw6O)eFu)g}Xv zC7c`RTH9z2#|{J#&(q765g0#kyE2j+4_K7_k?#7$5&$yL1TYH74Hy7=7XS!?gdhNX zJOKWC7kpRNz|zhrJJr*U>Lx%_=HLwb3=G`o~^j}UXC zBYaylhv=W#)S7`R=AU|yLb&?>%D(UofDFtLAp#Me23$EmbV+fghdaYZ6J(^5uZC2$ zABAHLmpJ49Y|dhq=monrK4h@(iEEb|FN{pJNBb@-LS+NYft1~hGA2Hetee`KZxRGn zlU^nTToQ7r&Bul@5uQM;vgaj^5=8p+M)?1`;9{-ioi;KNwG~Y@>wVWSV%6A8m4jUG z%rvCt4}#8?PgwZ|X8h%HbdcY+6qkT;;vi4s@#bWu3a@{Zd+w`N&gybAUGuP$3=cal z5Rgat2s-140oR?FT~^oE_Q@j6YDl@f^9F8P>avy(Lz9)!ZbYt5uX;ujM zCik#orlxmkZo|;lnii)myPJn5)V$~11GiOL^GX!E?oy;S7^|@ptHoOmpdwduF);FlGRM;YW`)pqHbQA*%iMfqE`~Eh!a^oQ7pYy5Cf) zmn?yM$2VkMS0We3yi#92bV@05R!BYjDa9t)OuvxkE(x8Hu|d%f|NsB~a-@p^)ROIL zjRWG^qhd@~X1$X=L}xH&?T0QQ2`%`o Ic$rTsu&zvxSpWb4 literal 0 HcmV?d00001 diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index b57da84f..b16f0fcf 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -28,13 +28,15 @@ use ec_av1_syntax::{ }; use ec_core::{Error, Result}; -// lane-av112bit: the 12-bit warp/compound refusals below are inline literals +// lane-av112bit: the 12-bit warp refusals below are inline literals // (refusal_inventory.rs extracts them from the decode source); each names the // witness gap that keeps the path refused -- warp's reduce bits inherit the -// 12-bit `conv_params->round_0` (warped_motion.c:295, convolve.h:81..86), and -// the inter witness is a single-reference stream, so compound of every kind -// is unwitnessed. All sites are PARSE-time: a refused stream never builds a -// warp predictor or blends a compound pair. +// 12-bit `conv_params->round_0` (warped_motion.c:295, convolve.h:81..86). +// lane-av112bitc lifted the compound pair of the same family: the compound +// combines absorb the CONV_BUF gain drop (`INTER_POST_ROUND - delta`, see +// `mc::combine_compound`) and the six-frame 12-bit compound witness is +// byte-exact vs ffmpeg. All sites are PARSE-time: a refused stream never +// builds a warp predictor. /// Per-frame decode state, one instance per decoded stream (lane-thread1). /// @@ -5301,7 +5303,7 @@ thread_local! { } /// Current value of [`COMPOUND_MODE_HITS`]. -#[allow(dead_code)] // gate counter accessor with no reader yet; the counter itself is live +#[allow(dead_code)] // reader is test-only (the 12-bit compound witness); dead in non-test builds pub(crate) fn compound_mode_hits() -> usize { COMPOUND_MODE_HITS.with(|c| c.get()) } @@ -29001,13 +29003,6 @@ fn decode_inter_block( } else { read_inter_compound_mode(dec, cdfs, comp_stack.new_mv_ctx, comp_stack.ref_mv_ctx) }; - // lane-av112bit: refused by name -- see `COMPOUND_12BIT_REFUSAL`. - if bit_depth(fctx) == 12 { - return Err(Error::unsupported( - "AV1 tile decode", - "a compound inter block at 12 bits (no 12-bit compound witness exists: the 12-bit inter gate is a single-reference stream)", - )); - } let (mv0, mv1) = assign_compound_mv( dec, cdfs, @@ -34566,13 +34561,6 @@ fn decode_inter_block8( comp_stack.ref_mv_ctx, ) }; - // lane-av112bit: refused by name -- see `COMPOUND_12BIT_REFUSAL`. - if bit_depth(fctx) == 12 { - return Err(Error::unsupported( - "AV1 tile decode", - "a compound inter block at 12 bits (no 12-bit compound witness exists: the 12-bit inter gate is a single-reference stream)", - )); - } if crate::envflags::env_flag!("EC_TRACE_MODE") { eprintln!( "EC_LEAFMODE mi_row={} mi_col={} cmode={} stack={} newmv_ctx={} refmv_ctx={} rng={}", diff --git a/crates/ec-av1/src/mc.rs b/crates/ec-av1/src/mc.rs index 2188395f..bbffbfc4 100644 --- a/crates/ec-av1/src/mc.rs +++ b/crates/ec-av1/src/mc.rs @@ -1560,6 +1560,7 @@ pub fn inter_pred_hits() -> usize { } /// Current value of [`MC_SUBPEL_HITS`]. +#[allow(dead_code)] // reader is test-only (the 12-bit inter witness); dead in non-test builds pub(crate) fn mc_subpel_hits() -> usize { MC_SUBPEL_HITS.with(|c| c.get()) } @@ -2068,7 +2069,9 @@ pub(crate) fn predict_compound_intermediate_kern( /// simple-average split `(8, 8)` or [`crate::compound::dist_wtd_comp_weight_assign`]'s /// output; both always sum to `1 << DIST_PRECISION_BITS`). Masked compound /// (`comp_group_idx == 1`, wedge/diffwtd) is a different combine this -/// function does not cover -- decode.rs still refuses those by name. +/// function does not cover -- see [`blend_masked_compound`]/[`diffwtd_mask`]; +/// every kind absorbs the same CONV_BUF gain drop at 12 bits +/// ([`round_delta`]), witnessed by the 12-bit compound stream gate. pub(crate) fn combine_compound( pred0: &[i32], pred1: &[i32], diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index cabed245..e5ef31e2 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -72,13 +72,15 @@ const REFUSALS: &[&str] = &[ // (`a_sub8_leaf_census_over_intrabc_screen_streams_measures_the_sub8_refusal`) // still runs: it now reports `reached = 0` with the same non-vacuous // premise (allow_intrabc frames + decoded sub-8 leaves). - // lane-av112bit: the blanket 12-bit refusal is REPLACED by the four - // named refusals below -- the witnessed paths (intra stack, dequant/ + // lane-av112bit: the blanket 12-bit refusal is REPLACED by the named + // refusals below -- the witnessed paths (intra stack, dequant/ // transforms at the 12-bit tables, deblock, CDEF, Wiener+SGR // restoration, translational subpel MC through the parameterised // round_0/round_1) are lifted by the lane's byte-exact ffmpeg gates. + // lane-av112bitc: compound joined the witnessed set (six-frame 12-bit + // compound stream byte-exact vs ffmpeg; the combines already absorbed + // the CONV_BUF gain drop through `INTER_POST_ROUND - delta`). "warped motion at 12 bits (warp's reduce bits inherit the 12-bit round_0 and no 12-bit warp witness exists)", - "a compound inter block at 12 bits (no 12-bit compound witness exists: the 12-bit inter gate is a single-reference stream)", "film grain synthesis at 12 bits (no byte-exact 12-bit grain witness exists: the 12-bit gates encode with grain off)", "a 12-bit frame with screen content tools (allow_screen_content_tools=1: neither palette nor intrabc has a 12-bit witness)", // lane-av1txr: the silent-garbage guard. A 4:4:4/4:2:2 stream used to @@ -355,17 +357,16 @@ const PROVEN: &[(&str, &str)] = &[ "a motion_mode symbol for a block shape with no CDF row here", "every_shape_that_allows_motion_variation_has_a_motion_mode_cdf_row", ), - // lane-av112bit: four real-aomenc 12-bit streams, each refused by name + // lane-av112bit: real-aomenc 12-bit streams, each refused by name // (the gates encode with aomenc --bit-depth=12 and assert the exact - // string; the two pixel witnesses are the same battery's Ok arms). + // string; the pixel witnesses are the same battery's Ok arms). + // lane-av112bitc: the compound pair left with its refusal -- the + // six-frame compound stream now DECODES byte-exact + // (`a_real_aomenc_12bit_compound_inter_sequence_decodes_pixel_exact`). ( "warped motion at 12 bits (warp's reduce bits inherit the 12-bit round_0 and no 12-bit warp witness exists)", "a_12bit_warped_motion_stream_is_refused_by_name", ), - ( - "a compound inter block at 12 bits (no 12-bit compound witness exists: the 12-bit inter gate is a single-reference stream)", - "a_12bit_compound_inter_stream_is_refused_by_name", - ), ( "film grain synthesis at 12 bits (no byte-exact 12-bit grain witness exists: the 12-bit gates encode with grain off)", "a_12bit_film_grain_stream_is_refused_by_name", diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index e53c9fa9..99fb48d4 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -7994,7 +7994,8 @@ pub(crate) mod tests { /// `round_0`/`round_1` -- 5/9 at 12 bits, the whole point of the mc.rs /// parameterisation -- really executed, and asserts /// `compound_mode_hits` UNCHANGED (this recipe offers no divergent - /// second reference, which is exactly why compound stays refused). + /// second reference, so no compound mode symbol is read -- the lane's + /// compound witness is the six-frame gate below). #[test] fn a_real_aomenc_12bit_inter_sequence_decodes_pixel_exact() { const NAME: &str = "a_real_aomenc_12bit_inter_sequence_decodes_pixel_exact"; @@ -8063,30 +8064,63 @@ pub(crate) mod tests { ); } - /// The 12-bit compound refusal, exercised on a REAL stream: six frames - /// with `--lag-in-frames=0` still diverge LAST from GOLDEN from frame 2 - /// on (measured: aomenc codes compound blocks and the decode refuses at - /// the compound mode read). + /// The 12-bit COMPOUND witness (lane-av112bitc): the parent's source + /// and recipe with warp pinned OFF -- with six frames LAST diverges + /// from GOLDEN from frame 2 on and aomenc codes compound inter blocks + /// (pre-lift measurement: the decode refused at the compound mode + /// read). Two arms: the default recipe (dist-weighted average + /// combines live) and `--enable-dist-wtd-comp=0` (pushes compound AND + /// the masked choice harder: 6 diffwtd blends). Both byte-exact + /// against ffmpeg; each hard-asserts compound mode symbols and + /// masked-diffwtd blends really ran, so the parameterised combine + /// rounds (`INTER_POST_ROUND - delta`, diffwtd `+ (bd-8) - delta` at + /// 12 bits) and the ffmpeg-pinned pixel path genuinely executed. #[test] - fn a_12bit_compound_inter_stream_is_refused_by_name() { - const NAME: &str = "a_12bit_compound_inter_stream_is_refused_by_name"; + fn a_real_aomenc_12bit_compound_inter_sequence_decodes_pixel_exact() { + const NAME: &str = "a_real_aomenc_12bit_compound_inter_sequence_decodes_pixel_exact"; let _gate_lock = lock_gate_counters(); + if !have_ffmpeg() { + eprintln!("SKIP {NAME}: no ffmpeg"); + return; + } if !have_aomenc() { eprintln!("SKIP {NAME}: no aomenc at {}", aomenc_path().display()); return; } let y4m = y4m_12bit_subpel_source(6); - // Warp pinned OFF so the COMPOUND refusal is the one that can fire: - // with six frames, LAST diverges from GOLDEN from frame 2 on and - // aomenc codes compound blocks (measured). - let stream = encode_12bit(&y4m, 6, &["--enable-warped-motion=0"]); - let err = decode_stream(&stream).unwrap_err().to_string(); - assert!( - err.contains( - "a compound inter block at 12 bits (no 12-bit compound witness exists: the 12-bit inter gate is a single-reference stream)" - ), - "{NAME}: expected the 12-bit compound refusal, got: {err}" - ); + for (arm, extra) in [ + ("dist-wtd", &["--enable-warped-motion=0"][..]), + ("plain-masked", &["--enable-warped-motion=0", "--enable-dist-wtd-comp=0"][..]), + ] { + let stream = encode_12bit(&y4m, 6, &extra); + assert_12bit_sequence_header(&stream, NAME); + let before_compound = decode::compound_mode_hits(); + let before_masked = decode::masked_compound_hits(); + let before_diffwtd = decode::diffwtd_hits(); + let before_wedge = decode::wedge_hits(); + let frames = decode_stream(&stream).unwrap_or_else(|e| { + panic!("{NAME} [{arm}]: decode_stream refused a real 12-bit compound stream: {e}") + }); + assert_eq!(frames.len(), 6, "{NAME} [{arm}]: frame count"); + let (comp, masked, diffwtd, wedge) = ( + decode::compound_mode_hits() - before_compound, + decode::masked_compound_hits() - before_masked, + decode::diffwtd_hits() - before_diffwtd, + decode::wedge_hits() - before_wedge, + ); + eprintln!( + "{NAME} [{arm}]: compound blocks={comp} masked={masked} diffwtd={diffwtd} wedge={wedge}" + ); + assert!(comp > 0, "{NAME} [{arm}]: no compound mode symbol was read -- the compound path is unexercised"); + assert!(masked > 0, "{NAME} [{arm}]: no masked compound block ran -- the masked combine is unexercised"); + assert!(diffwtd > 0, "{NAME} [{arm}]: no diffwtd blend ran -- the diffwtd combine is unexercised"); + let ffmpeg_frames = ffmpeg_decode_sequence_12bit(&stream, 160, 128, 6); + for (i, (ours, reference)) in frames.iter().zip(&ffmpeg_frames).enumerate() { + assert_eq!(ours.y, reference.y, "{NAME} [{arm}] frame {i} luma vs ffmpeg"); + assert_eq!(ours.u, reference.u, "{NAME} [{arm}] frame {i} U vs ffmpeg"); + assert_eq!(ours.v, reference.v, "{NAME} [{arm}] frame {i} V vs ffmpeg"); + } + } } /// The 12-bit film grain refusal: a real `--film-grain-test=1` stream diff --git a/lanes/av112bitc.report.md b/lanes/av112bitc.report.md new file mode 100644 index 00000000..7bd8066f --- /dev/null +++ b/lanes/av112bitc.report.md @@ -0,0 +1,124 @@ +# lane-av112bitc — the 12-bit compound lift + +Base 0899977a (lane-av112bit's merged tree), worktree `edith_codecs-av112bc`, +branch `lane-av1-12bit-comp`. The charter: lift the named 12-bit compound +refusal the parent left ("a compound inter block at 12 bits ...") exactly as +far as a real `aomenc --bit-depth=12` compound witness proves byte-exactness +against ffmpeg, and keep warp, grain and screen content refused by name. + +## Reaching the path (encode 1 of the 8 allowed) + +The parent had already measured a compound-reaching recipe: the lane's own +sub-pel source, six frames, warp pinned OFF — with six frames LAST diverges +from GOLDEN from frame 2 on and aomenc codes compound inter blocks. Pre-fix +proof: the unmodified tree's gate +`a_12bit_compound_inter_stream_is_refused_by_name` encoded that stream live +and refused it at the compound mode read (decode.rs, both +`read_inter_compound_mode` callers). Reaching + non-vacuity in one +measurement, and the same recipe then became the witness. + +## What changed + +- **decode.rs** — both 12-bit compound refusal sites deleted (the block-level + arm and the 8x8-leaf arm). The `bit_depth(fctx) == 12` guard sat AFTER the + compound mode symbol read and BEFORE any prediction, so the lift changes + nothing for 8/10-bit: the parse simply proceeds into `assign_compound_mv` + and the prediction path the parent already parameterised. +- **mc.rs** — NO arithmetic change. The parent's parameterisation already + covered every combine: `combine_compound` rounds by + `INTER_POST_ROUND - round_delta` (CONV_BUF gain 16x -> 4x at 12-bit, + `round_0` 5, compound `round_1` 7), `diffwtd_mask` by + `INTER_POST_ROUND + (bd-8) - round_delta` (reconinter.c:307), + `blend_masked_compound` by `INTER_POST_ROUND - round_delta`. Only the + stale doc sentence on `combine_compound` ("decode.rs still refuses those + by name") was corrected. +- **decode.rs** header comment over the 12-bit family updated: the family is + now warp-only; compound joined the witnessed set. +- **`mc_subpel_hits`** gained the repo-standard + `#[allow(dead_code)] // reader is test-only` (its only reader is the + parent's 12-bit inter gate; non-test builds warned — this tree now checks + `cargo check -p ec-av1 --all-targets` warning-free, which the charter + demands). +- **refusal_inventory.rs** — the compound string left both the inventory and + the gate-coverage mapping; inventory 38 -> 37, all still proven, every + proven refusal still names an existing test. +- **stream.rs** — the compound refusal gate was REPLACED by the witness + `a_real_aomenc_12bit_compound_inter_sequence_decodes_pixel_exact` (below). + +## The witnesses + +Source: the parent's `y4m_12bit_subpel_source(6)` (160x128 C420p12, +gradient + texture, a 24x20 box moving 1.25 px/frame horizontally and +0.75 px/frame vertically), encoded live in-gate by +`~/.cache/aom-oracle/build/aomenc` (libaom src `92d4c37fbdd08944a0e721bbaeb13318f10aebb0`), +recipe = the parent's `encode_12bit` base (`--profile=2 --bit-depth=12 +--passes=1 --end-usage=q --cq-level=20 --cpu-used=0 --threads=1 --row-mt=0 +--sb-size=64 --lag-in-frames=0 --auto-alt-ref=0 --kf-max-dist=1000 +--enable-cdef=1 --enable-restoration=1 --obu --limit=6`) plus, spelled exactly +once, the arm flags. Two arms: + +1. **`dist-wtd`** — `--enable-warped-motion=0` (dist-weighted average + combines live): census compound blocks=15, masked=1, diffwtd=1, wedge=0. +2. **`plain-masked`** — `--enable-warped-motion=0 --enable-dist-wtd-comp=0` + (pushes compound and the masked choice harder): census compound blocks=18, + masked=6, diffwtd=6, wedge=0. + +Both arms byte-exact against ffmpeg 8.1.2 (`yuv420p12le` rawvideo) on every +plane of every frame, with hard asserts `compound_mode_hits > 0`, +`masked_compound_hits > 0`, `diffwtd_hits > 0` (all deterministic: aomenc +`--threads=1 --passes=1` on pinned bytes). + +Committed fixtures (same live recipes, determinism proven by `cmp` of a +re-encode against the committed bytes): + +- `crates/ec-av1/fixtures/av112bit-compound.obu` — 7486 bytes, sha256 + `a839cff534b89d5cd52681dd43a7dedc10131d8dd7725bdfa5502d6bc4421740` +- `crates/ec-av1/fixtures/av112bit-compound-masked.obu` — 7470 bytes, sha256 + `83625de2ed347d457eb67f9781eed3fea598ef035f29bbc311d7025fe178c691` + +Both fixtures additionally verified standalone: `dump_yuv` (the crate's own +decoder) vs `ffmpeg -pix_fmt yuv420p12le -f rawvideo`, whole-stream `cmp` +clean for all 6 frames. + +## Regression + +- Parent 12-bit key witness `a_real_aomenc_12bit_stream_decodes_pixel_exact` + — byte-exact, CDEF + restoration asserts green. +- Parent 12-bit single-ref inter witness + `a_real_aomenc_12bit_inter_sequence_decodes_pixel_exact` — byte-exact; + its `compound_mode_hits` UNCHANGED premise still holds on the 2-frame + recipe (doc wording updated: compound no longer "stays refused", the + 2-frame recipe simply never reads a compound symbol). +- `a_12bit_warped_motion_stream_is_refused_by_name` — still refuses by name + (warp stays unwitnessed; the compound lift does not reach it first). +- 10-bit film gates: `a_real_aomenc_10bit_film_grain_stream_decodes_pixel_exact` + (pixel-exact, grain_hits=1) and + `a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_decode_pixel_exact` + (15 shown frames pixel-exact on every plane) — green. +- `refusal_inventory` module green (37 refusals + 1 capability claim, all + proven); `gate_coverage::print_never_on_per_bit_depth` green. +- `cargo check -p ec-av1 --all-targets`: **0 warnings**. + +## Open halves (recorded, not silently dropped) + +1. **Wedge-masked compound at 12 bits** — unwitnessed. Two recipes on the + sub-pel corpus never made aomenc pick COMPOUND_WEDGE (`wedge_hits == 0` + in both arms); the 8-bit wedge gate only reaches wedge on hard-edge + content with attempt loops, which this lane's charter forbids + (deterministic single-recipe encodes). The lift is still honest per the + parent's own composition rule: the wedge arm and the diffwtd arm run the + SAME `blend_masked_compound` (witnessed byte-exact at 12 bits via six + diffwtd blends), differing only in the u8 mask bytes, and the wedge + codebook is bit-depth independent and 8-bit-witnessed (lane-wedge r3). + Disposition: `accepted` — a future wedge witness needs only an + aomenc recipe that picks wedge at 12 bits. +2. Warp, film grain synthesis, screen content (palette/intrabc) at 12 bits + — unchanged, refused by name exactly as the parent left them. + +## Process note + +One fixture encode initially landed in the MAIN checkout's +`crates/ec-av1/fixtures/` (a shell call whose cwd did not apply); both files +were moved into this worktree unmodified (sha256s above taken after the +move) and `git status --short` on the main checkout shows nothing from this +lane. The parent worktree was never touched.