lane-av112bitc: lift the 12-bit compound gate to the witnessed set
Browse files at this commit70849e07ad7e30da44cd8a7f390dc93bfb49542eParent: 05313877 changed files +198 -48
- crates/ec-av1/fixtures/av112bit-compound-masked.obu +0 -0
- crates/ec-av1/fixtures/av112bit-compound.obu +0 -0
- crates/ec-av1/src/decode.rs +8 -20
- crates/ec-av1/src/mc.rs +4 -1
- crates/ec-av1/src/refusal_inventory.rs +10 -9
- crates/ec-av1/src/stream.rs +52 -18
- lanes/av112bitc.report.md +124 -0
crates/ec-av1/fixtures/av112bit-compound-masked.obuadded+0 -0
Binary file changed
crates/ec-av1/fixtures/av112bit-compound.obuadded+0 -0
Binary file changed
crates/ec-av1/src/decode.rsmodified+8 -20
| @@ -28,13 +28,15 @@ use ec_av1_syntax::{ | ||
| 28 | 28 | }; |
| 29 | 29 | use ec_core::{Error, Result}; |
| 30 | 30 | |
| 31 | -// lane-av112bit: the 12-bit warp/compound refusals below are inline literals | |
| 31 | +// lane-av112bit: the 12-bit warp refusals below are inline literals | |
| 32 | 32 | // (refusal_inventory.rs extracts them from the decode source); each names the |
| 33 | 33 | // witness gap that keeps the path refused -- warp's reduce bits inherit the |
| 34 | -// 12-bit `conv_params->round_0` (warped_motion.c:295, convolve.h:81..86), and | |
| 35 | -// the inter witness is a single-reference stream, so compound of every kind | |
| 36 | -// is unwitnessed. All sites are PARSE-time: a refused stream never builds a | |
| 37 | -// warp predictor or blends a compound pair. | |
| 34 | +// 12-bit `conv_params->round_0` (warped_motion.c:295, convolve.h:81..86). | |
| 35 | +// lane-av112bitc lifted the compound pair of the same family: the compound | |
| 36 | +// combines absorb the CONV_BUF gain drop (`INTER_POST_ROUND - delta`, see | |
| 37 | +// `mc::combine_compound`) and the six-frame 12-bit compound witness is | |
| 38 | +// byte-exact vs ffmpeg. All sites are PARSE-time: a refused stream never | |
| 39 | +// builds a warp predictor. | |
| 38 | 40 | |
| 39 | 41 | /// Per-frame decode state, one instance per decoded stream (lane-thread1). |
| 40 | 42 | /// |
| @@ -5301,7 +5303,7 @@ thread_local! { | ||
| 5301 | 5303 | } |
| 5302 | 5304 | |
| 5303 | 5305 | /// Current value of [`COMPOUND_MODE_HITS`]. |
| 5304 | -#[allow(dead_code)] // gate counter accessor with no reader yet; the counter itself is live | |
| 5306 | +#[allow(dead_code)] // reader is test-only (the 12-bit compound witness); dead in non-test builds | |
| 5305 | 5307 | pub(crate) fn compound_mode_hits() -> usize { |
| 5306 | 5308 | COMPOUND_MODE_HITS.with(|c| c.get()) |
| 5307 | 5309 | } |
| @@ -29001,13 +29003,6 @@ fn decode_inter_block( | ||
| 29001 | 29003 | } else { |
| 29002 | 29004 | read_inter_compound_mode(dec, cdfs, comp_stack.new_mv_ctx, comp_stack.ref_mv_ctx) |
| 29003 | 29005 | }; |
| 29004 | - // lane-av112bit: refused by name -- see `COMPOUND_12BIT_REFUSAL`. | |
| 29005 | - if bit_depth(fctx) == 12 { | |
| 29006 | - return Err(Error::unsupported( | |
| 29007 | - "AV1 tile decode", | |
| 29008 | - "a compound inter block at 12 bits (no 12-bit compound witness exists: the 12-bit inter gate is a single-reference stream)", | |
| 29009 | - )); | |
| 29010 | - } | |
| 29011 | 29006 | let (mv0, mv1) = assign_compound_mv( |
| 29012 | 29007 | dec, |
| 29013 | 29008 | cdfs, |
| @@ -34566,13 +34561,6 @@ fn decode_inter_block8( | ||
| 34566 | 34561 | comp_stack.ref_mv_ctx, |
| 34567 | 34562 | ) |
| 34568 | 34563 | }; |
| 34569 | - // lane-av112bit: refused by name -- see `COMPOUND_12BIT_REFUSAL`. | |
| 34570 | - if bit_depth(fctx) == 12 { | |
| 34571 | - return Err(Error::unsupported( | |
| 34572 | - "AV1 tile decode", | |
| 34573 | - "a compound inter block at 12 bits (no 12-bit compound witness exists: the 12-bit inter gate is a single-reference stream)", | |
| 34574 | - )); | |
| 34575 | - } | |
| 34576 | 34564 | if crate::envflags::env_flag!("EC_TRACE_MODE") { |
| 34577 | 34565 | eprintln!( |
| 34578 | 34566 | "EC_LEAFMODE mi_row={} mi_col={} cmode={} stack={} newmv_ctx={} refmv_ctx={} rng={}", |
crates/ec-av1/src/mc.rsmodified+4 -1
| @@ -1560,6 +1560,7 @@ pub fn inter_pred_hits() -> usize { | ||
| 1560 | 1560 | } |
| 1561 | 1561 | |
| 1562 | 1562 | /// Current value of [`MC_SUBPEL_HITS`]. |
| 1563 | +#[allow(dead_code)] // reader is test-only (the 12-bit inter witness); dead in non-test builds | |
| 1563 | 1564 | pub(crate) fn mc_subpel_hits() -> usize { |
| 1564 | 1565 | MC_SUBPEL_HITS.with(|c| c.get()) |
| 1565 | 1566 | } |
| @@ -2068,7 +2069,9 @@ pub(crate) fn predict_compound_intermediate_kern( | ||
| 2068 | 2069 | /// simple-average split `(8, 8)` or [`crate::compound::dist_wtd_comp_weight_assign`]'s |
| 2069 | 2070 | /// output; both always sum to `1 << DIST_PRECISION_BITS`). Masked compound |
| 2070 | 2071 | /// (`comp_group_idx == 1`, wedge/diffwtd) is a different combine this |
| 2071 | -/// function does not cover -- decode.rs still refuses those by name. | |
| 2072 | +/// function does not cover -- see [`blend_masked_compound`]/[`diffwtd_mask`]; | |
| 2073 | +/// every kind absorbs the same CONV_BUF gain drop at 12 bits | |
| 2074 | +/// ([`round_delta`]), witnessed by the 12-bit compound stream gate. | |
| 2072 | 2075 | pub(crate) fn combine_compound( |
| 2073 | 2076 | pred0: &[i32], |
| 2074 | 2077 | pred1: &[i32], |
crates/ec-av1/src/refusal_inventory.rsmodified+10 -9
| @@ -72,13 +72,15 @@ const REFUSALS: &[&str] = &[ | ||
| 72 | 72 | // (`a_sub8_leaf_census_over_intrabc_screen_streams_measures_the_sub8_refusal`) |
| 73 | 73 | // still runs: it now reports `reached = 0` with the same non-vacuous |
| 74 | 74 | // premise (allow_intrabc frames + decoded sub-8 leaves). |
| 75 | - // lane-av112bit: the blanket 12-bit refusal is REPLACED by the four | |
| 76 | - // named refusals below -- the witnessed paths (intra stack, dequant/ | |
| 75 | + // lane-av112bit: the blanket 12-bit refusal is REPLACED by the named | |
| 76 | + // refusals below -- the witnessed paths (intra stack, dequant/ | |
| 77 | 77 | // transforms at the 12-bit tables, deblock, CDEF, Wiener+SGR |
| 78 | 78 | // restoration, translational subpel MC through the parameterised |
| 79 | 79 | // round_0/round_1) are lifted by the lane's byte-exact ffmpeg gates. |
| 80 | + // lane-av112bitc: compound joined the witnessed set (six-frame 12-bit | |
| 81 | + // compound stream byte-exact vs ffmpeg; the combines already absorbed | |
| 82 | + // the CONV_BUF gain drop through `INTER_POST_ROUND - delta`). | |
| 80 | 83 | "warped motion at 12 bits (warp's reduce bits inherit the 12-bit round_0 and no 12-bit warp witness exists)", |
| 81 | - "a compound inter block at 12 bits (no 12-bit compound witness exists: the 12-bit inter gate is a single-reference stream)", | |
| 82 | 84 | "film grain synthesis at 12 bits (no byte-exact 12-bit grain witness exists: the 12-bit gates encode with grain off)", |
| 83 | 85 | "a 12-bit frame with screen content tools (allow_screen_content_tools=1: neither palette nor intrabc has a 12-bit witness)", |
| 84 | 86 | // lane-av1txr: the silent-garbage guard. A 4:4:4/4:2:2 stream used to |
| @@ -355,17 +357,16 @@ const PROVEN: &[(&str, &str)] = &[ | ||
| 355 | 357 | "a motion_mode symbol for a block shape with no CDF row here", |
| 356 | 358 | "every_shape_that_allows_motion_variation_has_a_motion_mode_cdf_row", |
| 357 | 359 | ), |
| 358 | - // lane-av112bit: four real-aomenc 12-bit streams, each refused by name | |
| 360 | + // lane-av112bit: real-aomenc 12-bit streams, each refused by name | |
| 359 | 361 | // (the gates encode with aomenc --bit-depth=12 and assert the exact |
| 360 | - // string; the two pixel witnesses are the same battery's Ok arms). | |
| 362 | + // string; the pixel witnesses are the same battery's Ok arms). | |
| 363 | + // lane-av112bitc: the compound pair left with its refusal -- the | |
| 364 | + // six-frame compound stream now DECODES byte-exact | |
| 365 | + // (`a_real_aomenc_12bit_compound_inter_sequence_decodes_pixel_exact`). | |
| 361 | 366 | ( |
| 362 | 367 | "warped motion at 12 bits (warp's reduce bits inherit the 12-bit round_0 and no 12-bit warp witness exists)", |
| 363 | 368 | "a_12bit_warped_motion_stream_is_refused_by_name", |
| 364 | 369 | ), |
| 365 | - ( | |
| 366 | - "a compound inter block at 12 bits (no 12-bit compound witness exists: the 12-bit inter gate is a single-reference stream)", | |
| 367 | - "a_12bit_compound_inter_stream_is_refused_by_name", | |
| 368 | - ), | |
| 369 | 370 | ( |
| 370 | 371 | "film grain synthesis at 12 bits (no byte-exact 12-bit grain witness exists: the 12-bit gates encode with grain off)", |
| 371 | 372 | "a_12bit_film_grain_stream_is_refused_by_name", |
crates/ec-av1/src/stream.rsmodified+52 -18
| @@ -7994,7 +7994,8 @@ pub(crate) mod tests { | ||
| 7994 | 7994 | /// `round_0`/`round_1` -- 5/9 at 12 bits, the whole point of the mc.rs |
| 7995 | 7995 | /// parameterisation -- really executed, and asserts |
| 7996 | 7996 | /// `compound_mode_hits` UNCHANGED (this recipe offers no divergent |
| 7997 | - /// second reference, which is exactly why compound stays refused). | |
| 7997 | + /// second reference, so no compound mode symbol is read -- the lane's | |
| 7998 | + /// compound witness is the six-frame gate below). | |
| 7998 | 7999 | #[test] |
| 7999 | 8000 | fn a_real_aomenc_12bit_inter_sequence_decodes_pixel_exact() { |
| 8000 | 8001 | const NAME: &str = "a_real_aomenc_12bit_inter_sequence_decodes_pixel_exact"; |
| @@ -8063,30 +8064,63 @@ pub(crate) mod tests { | ||
| 8063 | 8064 | ); |
| 8064 | 8065 | } |
| 8065 | 8066 | |
| 8066 | - /// The 12-bit compound refusal, exercised on a REAL stream: six frames | |
| 8067 | - /// with `--lag-in-frames=0` still diverge LAST from GOLDEN from frame 2 | |
| 8068 | - /// on (measured: aomenc codes compound blocks and the decode refuses at | |
| 8069 | - /// the compound mode read). | |
| 8067 | + /// The 12-bit COMPOUND witness (lane-av112bitc): the parent's source | |
| 8068 | + /// and recipe with warp pinned OFF -- with six frames LAST diverges | |
| 8069 | + /// from GOLDEN from frame 2 on and aomenc codes compound inter blocks | |
| 8070 | + /// (pre-lift measurement: the decode refused at the compound mode | |
| 8071 | + /// read). Two arms: the default recipe (dist-weighted average | |
| 8072 | + /// combines live) and `--enable-dist-wtd-comp=0` (pushes compound AND | |
| 8073 | + /// the masked choice harder: 6 diffwtd blends). Both byte-exact | |
| 8074 | + /// against ffmpeg; each hard-asserts compound mode symbols and | |
| 8075 | + /// masked-diffwtd blends really ran, so the parameterised combine | |
| 8076 | + /// rounds (`INTER_POST_ROUND - delta`, diffwtd `+ (bd-8) - delta` at | |
| 8077 | + /// 12 bits) and the ffmpeg-pinned pixel path genuinely executed. | |
| 8070 | 8078 | #[test] |
| 8071 | - fn a_12bit_compound_inter_stream_is_refused_by_name() { | |
| 8072 | - const NAME: &str = "a_12bit_compound_inter_stream_is_refused_by_name"; | |
| 8079 | + fn a_real_aomenc_12bit_compound_inter_sequence_decodes_pixel_exact() { | |
| 8080 | + const NAME: &str = "a_real_aomenc_12bit_compound_inter_sequence_decodes_pixel_exact"; | |
| 8073 | 8081 | let _gate_lock = lock_gate_counters(); |
| 8082 | + if !have_ffmpeg() { | |
| 8083 | + eprintln!("SKIP {NAME}: no ffmpeg"); | |
| 8084 | + return; | |
| 8085 | + } | |
| 8074 | 8086 | if !have_aomenc() { |
| 8075 | 8087 | eprintln!("SKIP {NAME}: no aomenc at {}", aomenc_path().display()); |
| 8076 | 8088 | return; |
| 8077 | 8089 | } |
| 8078 | 8090 | let y4m = y4m_12bit_subpel_source(6); |
| 8079 | - // Warp pinned OFF so the COMPOUND refusal is the one that can fire: | |
| 8080 | - // with six frames, LAST diverges from GOLDEN from frame 2 on and | |
| 8081 | - // aomenc codes compound blocks (measured). | |
| 8082 | - let stream = encode_12bit(&y4m, 6, &["--enable-warped-motion=0"]); | |
| 8083 | - let err = decode_stream(&stream).unwrap_err().to_string(); | |
| 8084 | - assert!( | |
| 8085 | - err.contains( | |
| 8086 | - "a compound inter block at 12 bits (no 12-bit compound witness exists: the 12-bit inter gate is a single-reference stream)" | |
| 8087 | - ), | |
| 8088 | - "{NAME}: expected the 12-bit compound refusal, got: {err}" | |
| 8089 | - ); | |
| 8091 | + for (arm, extra) in [ | |
| 8092 | + ("dist-wtd", &["--enable-warped-motion=0"][..]), | |
| 8093 | + ("plain-masked", &["--enable-warped-motion=0", "--enable-dist-wtd-comp=0"][..]), | |
| 8094 | + ] { | |
| 8095 | + let stream = encode_12bit(&y4m, 6, &extra); | |
| 8096 | + assert_12bit_sequence_header(&stream, NAME); | |
| 8097 | + let before_compound = decode::compound_mode_hits(); | |
| 8098 | + let before_masked = decode::masked_compound_hits(); | |
| 8099 | + let before_diffwtd = decode::diffwtd_hits(); | |
| 8100 | + let before_wedge = decode::wedge_hits(); | |
| 8101 | + let frames = decode_stream(&stream).unwrap_or_else(|e| { | |
| 8102 | + panic!("{NAME} [{arm}]: decode_stream refused a real 12-bit compound stream: {e}") | |
| 8103 | + }); | |
| 8104 | + assert_eq!(frames.len(), 6, "{NAME} [{arm}]: frame count"); | |
| 8105 | + let (comp, masked, diffwtd, wedge) = ( | |
| 8106 | + decode::compound_mode_hits() - before_compound, | |
| 8107 | + decode::masked_compound_hits() - before_masked, | |
| 8108 | + decode::diffwtd_hits() - before_diffwtd, | |
| 8109 | + decode::wedge_hits() - before_wedge, | |
| 8110 | + ); | |
| 8111 | + eprintln!( | |
| 8112 | + "{NAME} [{arm}]: compound blocks={comp} masked={masked} diffwtd={diffwtd} wedge={wedge}" | |
| 8113 | + ); | |
| 8114 | + assert!(comp > 0, "{NAME} [{arm}]: no compound mode symbol was read -- the compound path is unexercised"); | |
| 8115 | + assert!(masked > 0, "{NAME} [{arm}]: no masked compound block ran -- the masked combine is unexercised"); | |
| 8116 | + assert!(diffwtd > 0, "{NAME} [{arm}]: no diffwtd blend ran -- the diffwtd combine is unexercised"); | |
| 8117 | + let ffmpeg_frames = ffmpeg_decode_sequence_12bit(&stream, 160, 128, 6); | |
| 8118 | + for (i, (ours, reference)) in frames.iter().zip(&ffmpeg_frames).enumerate() { | |
| 8119 | + assert_eq!(ours.y, reference.y, "{NAME} [{arm}] frame {i} luma vs ffmpeg"); | |
| 8120 | + assert_eq!(ours.u, reference.u, "{NAME} [{arm}] frame {i} U vs ffmpeg"); | |
| 8121 | + assert_eq!(ours.v, reference.v, "{NAME} [{arm}] frame {i} V vs ffmpeg"); | |
| 8122 | + } | |
| 8123 | + } | |
| 8090 | 8124 | } |
| 8091 | 8125 | |
| 8092 | 8126 | /// The 12-bit film grain refusal: a real `--film-grain-test=1` stream |
lanes/av112bitc.report.mdadded+124 -0
| @@ -0,0 +1,124 @@ | ||
| 1 | +# lane-av112bitc — the 12-bit compound lift | |
| 2 | + | |
| 3 | +Base 0899977a (lane-av112bit's merged tree), worktree `edith_codecs-av112bc`, | |
| 4 | +branch `lane-av1-12bit-comp`. The charter: lift the named 12-bit compound | |
| 5 | +refusal the parent left ("a compound inter block at 12 bits ...") exactly as | |
| 6 | +far as a real `aomenc --bit-depth=12` compound witness proves byte-exactness | |
| 7 | +against ffmpeg, and keep warp, grain and screen content refused by name. | |
| 8 | + | |
| 9 | +## Reaching the path (encode 1 of the 8 allowed) | |
| 10 | + | |
| 11 | +The parent had already measured a compound-reaching recipe: the lane's own | |
| 12 | +sub-pel source, six frames, warp pinned OFF — with six frames LAST diverges | |
| 13 | +from GOLDEN from frame 2 on and aomenc codes compound inter blocks. Pre-fix | |
| 14 | +proof: the unmodified tree's gate | |
| 15 | +`a_12bit_compound_inter_stream_is_refused_by_name` encoded that stream live | |
| 16 | +and refused it at the compound mode read (decode.rs, both | |
| 17 | +`read_inter_compound_mode` callers). Reaching + non-vacuity in one | |
| 18 | +measurement, and the same recipe then became the witness. | |
| 19 | + | |
| 20 | +## What changed | |
| 21 | + | |
| 22 | +- **decode.rs** — both 12-bit compound refusal sites deleted (the block-level | |
| 23 | + arm and the 8x8-leaf arm). The `bit_depth(fctx) == 12` guard sat AFTER the | |
| 24 | + compound mode symbol read and BEFORE any prediction, so the lift changes | |
| 25 | + nothing for 8/10-bit: the parse simply proceeds into `assign_compound_mv` | |
| 26 | + and the prediction path the parent already parameterised. | |
| 27 | +- **mc.rs** — NO arithmetic change. The parent's parameterisation already | |
| 28 | + covered every combine: `combine_compound` rounds by | |
| 29 | + `INTER_POST_ROUND - round_delta` (CONV_BUF gain 16x -> 4x at 12-bit, | |
| 30 | + `round_0` 5, compound `round_1` 7), `diffwtd_mask` by | |
| 31 | + `INTER_POST_ROUND + (bd-8) - round_delta` (reconinter.c:307), | |
| 32 | + `blend_masked_compound` by `INTER_POST_ROUND - round_delta`. Only the | |
| 33 | + stale doc sentence on `combine_compound` ("decode.rs still refuses those | |
| 34 | + by name") was corrected. | |
| 35 | +- **decode.rs** header comment over the 12-bit family updated: the family is | |
| 36 | + now warp-only; compound joined the witnessed set. | |
| 37 | +- **`mc_subpel_hits`** gained the repo-standard | |
| 38 | + `#[allow(dead_code)] // reader is test-only` (its only reader is the | |
| 39 | + parent's 12-bit inter gate; non-test builds warned — this tree now checks | |
| 40 | + `cargo check -p ec-av1 --all-targets` warning-free, which the charter | |
| 41 | + demands). | |
| 42 | +- **refusal_inventory.rs** — the compound string left both the inventory and | |
| 43 | + the gate-coverage mapping; inventory 38 -> 37, all still proven, every | |
| 44 | + proven refusal still names an existing test. | |
| 45 | +- **stream.rs** — the compound refusal gate was REPLACED by the witness | |
| 46 | + `a_real_aomenc_12bit_compound_inter_sequence_decodes_pixel_exact` (below). | |
| 47 | + | |
| 48 | +## The witnesses | |
| 49 | + | |
| 50 | +Source: the parent's `y4m_12bit_subpel_source(6)` (160x128 C420p12, | |
| 51 | +gradient + texture, a 24x20 box moving 1.25 px/frame horizontally and | |
| 52 | +0.75 px/frame vertically), encoded live in-gate by | |
| 53 | +`~/.cache/aom-oracle/build/aomenc` (libaom src `92d4c37fbdd08944a0e721bbaeb13318f10aebb0`), | |
| 54 | +recipe = the parent's `encode_12bit` base (`--profile=2 --bit-depth=12 | |
| 55 | +--passes=1 --end-usage=q --cq-level=20 --cpu-used=0 --threads=1 --row-mt=0 | |
| 56 | +--sb-size=64 --lag-in-frames=0 --auto-alt-ref=0 --kf-max-dist=1000 | |
| 57 | +--enable-cdef=1 --enable-restoration=1 --obu --limit=6`) plus, spelled exactly | |
| 58 | +once, the arm flags. Two arms: | |
| 59 | + | |
| 60 | +1. **`dist-wtd`** — `--enable-warped-motion=0` (dist-weighted average | |
| 61 | + combines live): census compound blocks=15, masked=1, diffwtd=1, wedge=0. | |
| 62 | +2. **`plain-masked`** — `--enable-warped-motion=0 --enable-dist-wtd-comp=0` | |
| 63 | + (pushes compound and the masked choice harder): census compound blocks=18, | |
| 64 | + masked=6, diffwtd=6, wedge=0. | |
| 65 | + | |
| 66 | +Both arms byte-exact against ffmpeg 8.1.2 (`yuv420p12le` rawvideo) on every | |
| 67 | +plane of every frame, with hard asserts `compound_mode_hits > 0`, | |
| 68 | +`masked_compound_hits > 0`, `diffwtd_hits > 0` (all deterministic: aomenc | |
| 69 | +`--threads=1 --passes=1` on pinned bytes). | |
| 70 | + | |
| 71 | +Committed fixtures (same live recipes, determinism proven by `cmp` of a | |
| 72 | +re-encode against the committed bytes): | |
| 73 | + | |
| 74 | +- `crates/ec-av1/fixtures/av112bit-compound.obu` — 7486 bytes, sha256 | |
| 75 | + `a839cff534b89d5cd52681dd43a7dedc10131d8dd7725bdfa5502d6bc4421740` | |
| 76 | +- `crates/ec-av1/fixtures/av112bit-compound-masked.obu` — 7470 bytes, sha256 | |
| 77 | + `83625de2ed347d457eb67f9781eed3fea598ef035f29bbc311d7025fe178c691` | |
| 78 | + | |
| 79 | +Both fixtures additionally verified standalone: `dump_yuv` (the crate's own | |
| 80 | +decoder) vs `ffmpeg -pix_fmt yuv420p12le -f rawvideo`, whole-stream `cmp` | |
| 81 | +clean for all 6 frames. | |
| 82 | + | |
| 83 | +## Regression | |
| 84 | + | |
| 85 | +- Parent 12-bit key witness `a_real_aomenc_12bit_stream_decodes_pixel_exact` | |
| 86 | + — byte-exact, CDEF + restoration asserts green. | |
| 87 | +- Parent 12-bit single-ref inter witness | |
| 88 | + `a_real_aomenc_12bit_inter_sequence_decodes_pixel_exact` — byte-exact; | |
| 89 | + its `compound_mode_hits` UNCHANGED premise still holds on the 2-frame | |
| 90 | + recipe (doc wording updated: compound no longer "stays refused", the | |
| 91 | + 2-frame recipe simply never reads a compound symbol). | |
| 92 | +- `a_12bit_warped_motion_stream_is_refused_by_name` — still refuses by name | |
| 93 | + (warp stays unwitnessed; the compound lift does not reach it first). | |
| 94 | +- 10-bit film gates: `a_real_aomenc_10bit_film_grain_stream_decodes_pixel_exact` | |
| 95 | + (pixel-exact, grain_hits=1) and | |
| 96 | + `a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_decode_pixel_exact` | |
| 97 | + (15 shown frames pixel-exact on every plane) — green. | |
| 98 | +- `refusal_inventory` module green (37 refusals + 1 capability claim, all | |
| 99 | + proven); `gate_coverage::print_never_on_per_bit_depth` green. | |
| 100 | +- `cargo check -p ec-av1 --all-targets`: **0 warnings**. | |
| 101 | + | |
| 102 | +## Open halves (recorded, not silently dropped) | |
| 103 | + | |
| 104 | +1. **Wedge-masked compound at 12 bits** — unwitnessed. Two recipes on the | |
| 105 | + sub-pel corpus never made aomenc pick COMPOUND_WEDGE (`wedge_hits == 0` | |
| 106 | + in both arms); the 8-bit wedge gate only reaches wedge on hard-edge | |
| 107 | + content with attempt loops, which this lane's charter forbids | |
| 108 | + (deterministic single-recipe encodes). The lift is still honest per the | |
| 109 | + parent's own composition rule: the wedge arm and the diffwtd arm run the | |
| 110 | + SAME `blend_masked_compound` (witnessed byte-exact at 12 bits via six | |
| 111 | + diffwtd blends), differing only in the u8 mask bytes, and the wedge | |
| 112 | + codebook is bit-depth independent and 8-bit-witnessed (lane-wedge r3). | |
| 113 | + Disposition: `accepted` — a future wedge witness needs only an | |
| 114 | + aomenc recipe that picks wedge at 12 bits. | |
| 115 | +2. Warp, film grain synthesis, screen content (palette/intrabc) at 12 bits | |
| 116 | + — unchanged, refused by name exactly as the parent left them. | |
| 117 | + | |
| 118 | +## Process note | |
| 119 | + | |
| 120 | +One fixture encode initially landed in the MAIN checkout's | |
| 121 | +`crates/ec-av1/fixtures/` (a shell call whose cwd did not apply); both files | |
| 122 | +were moved into this worktree unmodified (sha256s above taken after the | |
| 123 | +move) and `git status --short` on the main checkout shows nothing from this | |
| 124 | +lane. The parent worktree was never touched. |