diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index ab830612..7c28d8ee 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -8955,6 +8955,14 @@ fn decode_inter_block( let (above_inter, left_inter) = (neighbours.above_inter[c], neighbours.left_inter[r]); let ii_ctx = intra_inter_ctx(has_above, has_left, above_inter, left_inter); let is_inter = skip_mode || dec.symbol(&mut cdfs.intra_inter[ii_ctx]) == 1; + if std::env::var_os("EC_TRACE_MODE").is_some() { + eprintln!( + "EC_MODE mi_row={} mi_col={} rng={}", + r * SUB_MI as usize, + c * SUB_MI as usize, + dec.debug_state().0 + ); + } if std::env::var_os("EC_AV1_TELL").is_some() { eprintln!( "TELL mi_row={} mi_col={} label=post_is_inter skip_mode={skip_mode} skip={skip} is_inter={is_inter} tell={} range={}", @@ -10709,7 +10717,11 @@ fn decode_inter_block8( base_q_idx: u8, scan8: &[u16], scan4: &[u16], - prev_leaf: Option<((usize, usize), bool, bool)>, + // lane-inter8 r1: every leaf of this 16x16 decoded so far, not just the + // previous one -- the bottom-LEFT leaf's above neighbour is leaf 0, which + // a single `prev_leaf` (leaf 1) never names (class + // context-read-from-one-cell). + prev_leaves: &[((usize, usize), bool, bool, i8, Option)], allow_high_precision_mv: bool, force_integer_mv: bool, // lane-av1comp: see [`decode_inter_block`]'s own doc -- this leaf path @@ -10757,8 +10769,27 @@ fn decode_inter_block8( // `BLOCK_8X8` (this leaf's fixed size) is always `av1_allow_palette`- // eligible (`bsize >= BLOCK_8X8`). allow_screen_content_tools: bool, -) -> Result<(bool, bool, bool, Option<(i8, i8, u8, u8)>)> { + // lane-inter8 r1: the leaf's mv stacks used to be built with neither the + // frame's sign-bias table nor its global-motion mv table (`NO_SIGN_BIAS` + // / `NO_GM_MV`), while [`decode_inter_block`] one level up passed both. + // A neighbour coded GLOBALMV contributes the gm mv, so dropping the table + // changes the candidate list -- and with it `new_mv_ctx`/`ref_mv_ctx`, + // `drl_ctx` and the number of symbols read. Measured: an 8x8 compound + // NEAR_NEWMV leaf desynced against aomdec's EC_MODE ladder at exactly + // this block (mi 4,14 of the mandelbrot 8x8-split gate). + sign_bias_table: &SignBiasTable, + global_motion: &[ec_av1_syntax::WarpParams; 7], +) -> Result<(bool, bool, bool, Option<(i8, i8, u8, u8)>, (i8, Option))> { const LAST_FRAME: i8 = 1; + let gm_table = build_gm_mv_table( + global_motion, + leaf_mi.0, + leaf_mi.1, + 2, + 2, + allow_high_precision_mv, + force_integer_mv, + ); /// `Y_MODE`'s size group (`common_data.h`'s `size_group_lookup[BLOCK_8X8]`). const SIZE_GROUP_8: usize = 1; @@ -10772,13 +10803,21 @@ fn decode_inter_block8( let mut left_skip = neighbours.left_skip[r]; let mut above_inter = neighbours.above_inter[c]; let mut left_inter = neighbours.left_inter[r]; - if let Some(((pr, pc), pskip, pinter)) = prev_leaf { + let mut above_ref0 = neighbours.above_ref[c]; + let mut above_ref1 = neighbours.above_ref1[c]; + let mut left_ref0 = neighbours.left_ref[r]; + let mut left_ref1 = neighbours.left_ref1[r]; + for &((pr, pc), pskip, pinter, pref0, pref1) in prev_leaves { if pc == leaf_mi.1 && leaf_mi.0 == pr + 2 { above_skip = pskip; above_inter = pinter; + above_ref0 = pref0; + above_ref1 = pref1; } else if pr == leaf_mi.0 && leaf_mi.1 == pc + 2 { left_skip = pskip; left_inter = pinter; + left_ref0 = pref0; + left_ref1 = pref1; } } let skip_mode_ctx = @@ -10801,23 +10840,46 @@ fn decode_inter_block8( ); let ii_ctx = intra_inter_ctx(has_above, has_left, above_inter, left_inter); let is_inter = skip_mode || dec.symbol(&mut cdfs.intra_inter[ii_ctx]) == 1; + // lane-inter8 r1: mirrors the oracle's `EC_MODE` (instrument rung 4, + // `read_inter_block_mode_info`) so an 8x8 leaf's mode-info range ladder + // diffs line for line against a real aomdec. + if std::env::var_os("EC_TRACE_MODE").is_some() { + eprintln!( + "EC_MODE mi_row={} mi_col={} rng={}", + leaf_mi.0, + leaf_mi.1, + dec.debug_state().0 + ); + } let mode_for_tx; let (luma_grid, u_grid, v_grid); let mut compound_ctx8: Option<(i8, i8, u8, u8)> = None; + // lane-inter8 r1: this leaf's own resolved references, handed back so the + // NEXT leaf of the same 16x16 can use them as its real above/left + // neighbour (`Neighbours`' arrays only move once per 16x16 block). + // `(0, None)` is intra. + let mut leaf_refs: (i8, Option) = (0, None); if is_inter { if reference_select || skip_mode { + // lane-inter8 r1: the REAL neighbour references, not a + // `LAST_FRAME`-or-intra stand-in. `av1_get_reference_mode_context` + // and `read_compound_ref_frames`' own contexts both ask whether a + // neighbour is COMPOUND, so pretending every inter neighbour is + // single-ref LAST picked the wrong `comp_mode` CDF row -- measured + // as an 8x8 leaf reading single-ref where aomdec read compound + // NEAR_NEWMV (mi 4,14). let above_nbr = has_above.then(|| NeighbourRef { is_inter: above_inter, - ref0: if above_inter { LAST_FRAME } else { 0 }, - ref1: None, - uni: false, + ref0: if above_inter { above_ref0 } else { 0 }, + ref1: above_ref1, + uni: above_ref1.is_some_and(|r1| is_uni_comp_ref(above_ref0, r1)), }); let left_nbr = has_left.then(|| NeighbourRef { is_inter: left_inter, - ref0: if left_inter { LAST_FRAME } else { 0 }, - ref1: None, - uni: false, + ref0: if left_inter { left_ref0 } else { 0 }, + ref1: left_ref1, + uni: left_ref1.is_some_and(|r1| is_uni_comp_ref(left_ref0, r1)), }); if skip_mode || read_comp_mode(dec, cdfs, above_nbr, left_nbr) { let (ref0, ref1) = if skip_mode { @@ -10840,6 +10902,7 @@ fn decode_inter_block8( }, ) }; + leaf_refs = (ref0, Some(ref1)); let (mi_row, mi_col) = leaf_mi; // lane-av1comp: this leaf path has neither a real sign-bias // table nor `tpl_frame` (see this function's own doc on the @@ -10856,8 +10919,8 @@ fn decode_inter_block8( (ref0, ref1), mi_cols as usize, mi_rows as usize, - &NO_SIGN_BIAS, - &crate::mvstack::NO_GM_MV, + sign_bias_table, + &gm_table, None, ); let compound_mode = if skip_mode { @@ -10870,6 +10933,18 @@ fn decode_inter_block8( comp_stack.ref_mv_ctx, ) }; + if std::env::var_os("EC_TRACE_MODE").is_some() { + eprintln!( + "EC_LEAFMODE mi_row={} mi_col={} cmode={} stack={} newmv_ctx={} refmv_ctx={} rng={}", + leaf_mi.0, + leaf_mi.1, + compound_mode + 17, + comp_stack.entries.len(), + comp_stack.new_mv_ctx, + comp_stack.ref_mv_ctx, + dec.debug_state().0 + ); + } let (mv0, mv1) = assign_compound_mv( dec, cdfs, @@ -10877,9 +10952,12 @@ fn decode_inter_block8( compound_mode, allow_high_precision_mv, force_integer_mv, - // leaf8 stays gm-inert (sanctioned partial landing, see - // this fn's own GLOBALMV refusal below). - ((0, 0), (0, 0)), + // lane-inter8 r1: the real per-ref gm mvs, same as + // [`decode_inter_block`]'s own compound arm. + ( + gm_table[(ref0 - LAST_FRAME) as usize], + gm_table[(ref1 - LAST_FRAME) as usize], + ), ); // spec 5.11.25: same gating [`decode_inter_block`]'s own @@ -11210,9 +11288,10 @@ fn decode_inter_block8( )? .0; } - return Ok((skip, is_inter, skip_mode, compound_ctx8)); + return Ok((skip, is_inter, skip_mode, compound_ctx8, leaf_refs)); } } + leaf_refs = (LAST_FRAME, None); let sr_ctx = single_ref_ctx(above_inter || left_inter); let p1 = dec.symbol(&mut cdfs.single_ref[sr_ctx][0]); let p3 = dec.symbol(&mut cdfs.single_ref[sr_ctx][2]); @@ -11224,7 +11303,7 @@ fn decode_inter_block8( } let (mi_row, mi_col) = leaf_mi; - let stack = find_mv_stack( + let stack = find_mv_stack_with_sign_bias( grid, mi_row, mi_col, @@ -11233,6 +11312,9 @@ fn decode_inter_block8( LAST_FRAME, mi_cols as usize, mi_rows as usize, + sign_bias_table, + &gm_table, + None, ); let not_new = dec.symbol(&mut cdfs.new_mv[stack.new_mv_ctx]) == 1; @@ -11709,7 +11791,7 @@ fn decode_inter_block8( } neighbours.record_mi(leaf_mi, 8, &[luma_grid, u_grid, v_grid]); neighbours.fill_lf_grid(leaf_mi, 2, 8, if is_inter { LAST_FRAME } else { 0 }); - Ok((skip, is_inter, skip_mode, compound_ctx8)) + Ok((skip, is_inter, skip_mode, compound_ctx8, leaf_refs)) } /// Decodes the payload [`crate::tile::sb_coeff_inter_frame_tile`] writes, @@ -12342,7 +12424,16 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs( // inter leaves through the very same loop the // straddling case has always used. let part16 = if has_cols16 && has_rows16 { - dec.symbol(&mut cdfs.partition_w16[ctx16]) + let p = dec.symbol(&mut cdfs.partition_w16[ctx16]); + if std::env::var_os("EC_AV1_TRACE").is_some() { + let (rng, _) = dec.debug_state(); + eprintln!( + "TRACE partition_w16 mi=({},{}) ctx={ctx16} value={p} rng={rng}", + sr as u32 * SUB_MI, + sc as u32 * SUB_MI + ); + } + p } else { if has_cols16 { dec.symbol_fixed(&gather( @@ -12442,7 +12533,7 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs( "an 8x8 partition leaf under a scaled reference (superres, unimplemented)", )); } - let mut prev_leaf: Option<((usize, usize), bool, bool)> = None; + let mut prev_leaves: Vec<((usize, usize), bool, bool, i8, Option)> = Vec::new(); let mut last_compound_ctx: Option<(i8, i8, u8, u8)> = None; let mut last_skip_mode = false; for (mr, mc) in leaf_positions { @@ -12454,7 +12545,7 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs( "a partition below 8x8 (this decoder codes no leaf smaller than 8x8)", )); } - let (skip, is_inter, skip_mode_leaf, compound_ctx8) = + let (skip, is_inter, skip_mode_leaf, compound_ctx8, leaf_refs) = decode_inter_block8( &mut dec, &mut cdfs, @@ -12474,7 +12565,7 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs( base_q_idx, &scan8, &scan4, - prev_leaf, + &prev_leaves, allow_high_precision_mv, force_integer_mv, reference_select, @@ -12491,14 +12582,16 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs( switchable_motion_mode, allow_warped_motion, allow_screen_content_tools, + &sign_bias_table, + &global_motion, )?; - prev_leaf = Some((leaf_mi, skip, is_inter)); + prev_leaves.push((leaf_mi, skip, is_inter, leaf_refs.0, leaf_refs.1)); last_skip_mode = skip_mode_leaf; if compound_ctx8.is_some() { last_compound_ctx = compound_ctx8; } } - if let Some((_, skip, is_inter)) = prev_leaf { + if let Some(&(_, skip, is_inter, _, _)) = prev_leaves.last() { // corner-cut: `decode_inter_block8`'s // leaves never read a switchable filter // (round-3 GLOBALMV refusal already diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index 38600731..07e02b8a 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -69,7 +69,7 @@ const REFUSALS: &[&str] = &[ "an inter frame with no key frame before it", "an inter SB-level partition type other than NONE or SPLIT (this decoder's inter tile path recurses a superblock only as SPLIT)", "a masked compound 64x64 inter block (compound_type is inferred, not coded, at this size)", - "an inter partition below 16x16 (8x8 and smaller inter blocks are not coded yet)", + "an inter partition below 16x16 other than SPLIT (16x8/8x16 rect inter leaves are not coded yet)", "an intra mode this decoder does not code (round 2)", "an intra-coded HORZ/VERT strip needs rectangular intra prediction this decoder does not code yet", "filter intra on a HORZ/VERT strip (this decoder predicts square-only)", diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 593f8875..43d6b0b0 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -2767,7 +2767,18 @@ mod tests { /// really fired, class refusal-lifted-without-a-gate) and every frame is /// pixel-exact vs ffmpeg; a decode error is a FAILURE here, never a SKIP /// (class gate-skips-on-its-own-failure). - fn inter_sb_none_gate(name: &str, ten_bit: bool) { + /// lane-inter8 r1: generalised so the same recipe can target a deeper + /// level of the inter partition tree -- `min_part` is aomenc's + /// `--min-partition-size`, and `hits`/`what` name the counter that proves + /// the arm under test really fired. + fn inter_sb_none_gate( + name: &str, + ten_bit: bool, + min_part: &str, + max_part: &str, + hits: fn() -> usize, + what: &str, + ) { if !have_ffmpeg() { eprintln!("SKIP {name}: no ffmpeg"); return; @@ -2828,8 +2839,6 @@ mod tests { "--enable-rect-partitions=0", "--enable-ab-partitions=0", "--enable-1to4-partitions=0", - "--min-partition-size=32", - "--max-partition-size=64", "--enable-filter-intra=0", "--enable-smooth-intra=0", "--enable-paeth-intra=0", @@ -2850,6 +2859,8 @@ mod tests { .iter() .map(|s| (*s).to_string()) .collect(); + args.insert(1, format!("--min-partition-size={min_part}")); + args.insert(1, format!("--max-partition-size={max_part}")); if ten_bit { args.insert(1, "--input-bit-depth=10".to_string()); args.insert(1, "--bit-depth=10".to_string()); @@ -2874,7 +2885,7 @@ mod tests { String::from_utf8_lossy(&out.stderr) ); let stream = out.stdout; - let before = decode::inter_sb_none_hits(); + let before = hits(); let frames = match decode_stream(&stream) { Ok(frames) => frames, Err(e) => { @@ -2884,8 +2895,8 @@ mod tests { } }; assert!( - decode::inter_sb_none_hits() > before, - "{name}: no whole-superblock inter PARTITION_NONE fired -- this gate proves nothing" + hits() > before, + "{name}: no {what} fired -- this gate proves nothing" ); let ffmpeg_frames = if ten_bit { ffmpeg_decode_sequence_10bit(&stream, width, height, frame_count) @@ -2907,6 +2918,10 @@ mod tests { inter_sb_none_gate( "a_real_aomenc_inter_sequence_with_a_whole_superblock_block_decodes_pixel_exact", false, + "32", + "64", + decode::inter_sb_none_hits, + "whole-superblock inter PARTITION_NONE", ); } @@ -2915,6 +2930,58 @@ mod tests { inter_sb_none_gate( "a_real_aomenc_10bit_inter_sequence_with_a_whole_superblock_block_decodes_pixel_exact", true, + "32", + "64", + decode::inter_sb_none_hits, + "whole-superblock inter PARTITION_NONE", + ); + } + + /// lane-inter8 r1: the same recipe with `--min-partition-size=8`, so + /// aomenc's RD may split a 16x16 inter block into four 8x8 leaves. The + /// interior (non-edge-straddling) `PARTITION_SPLIT` at the 16x16 level + /// was refused by name until this round; the straddle path always ran the + /// same loop, so only [`decode::inter_sub16_split_hits`] -- which counts + /// interior splits only -- proves the newly-lifted alphabet value fired. + #[test] + // lane-inter8 r1: RED, and ignored rather than deleted. The 16x16-level + // interior `PARTITION_SPLIT` and its four 8x8 leaves now decode without a + // refusal, and the mode-info range ladder matches aomdec's `EC_MODE` for + // 42 blocks, but block mi=(6,12) still diverges: `Neighbours`' above_*/ + // left_* arrays are 16x16-granular, so the LEFT neighbour of leaf (6,12) + // resolves to whatever the previous 16x16 recorded rather than to that + // block's own bottom-right leaf (6,10). Un-ignore when the arrays are + // mi-granular (see lanes/inter8-r1.report.md). + #[ignore = "lane-inter8 r1: 8x8 leaf neighbour arrays are still 16x16-granular"] + fn a_real_aomenc_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact() { + inter_sb_none_gate( + "a_real_aomenc_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact", + false, + "8", + "16", + decode::inter_sub16_split_hits, + "interior 16x16 inter PARTITION_SPLIT into 8x8 leaves", + ); + } + + #[test] + // lane-inter8 r1: RED, and ignored rather than deleted. The 16x16-level + // interior `PARTITION_SPLIT` and its four 8x8 leaves now decode without a + // refusal, and the mode-info range ladder matches aomdec's `EC_MODE` for + // 42 blocks, but block mi=(6,12) still diverges: `Neighbours`' above_*/ + // left_* arrays are 16x16-granular, so the LEFT neighbour of leaf (6,12) + // resolves to whatever the previous 16x16 recorded rather than to that + // block's own bottom-right leaf (6,10). Un-ignore when the arrays are + // mi-granular (see lanes/inter8-r1.report.md). + #[ignore = "lane-inter8 r1: 8x8 leaf neighbour arrays are still 16x16-granular"] + fn a_real_aomenc_10bit_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact() { + inter_sb_none_gate( + "a_real_aomenc_10bit_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact", + true, + "8", + "16", + decode::inter_sub16_split_hits, + "interior 16x16 inter PARTITION_SPLIT into 8x8 leaves", ); } diff --git a/lanes/inter8-r1.report.md b/lanes/inter8-r1.report.md new file mode 100644 index 00000000..4ff4fa22 --- /dev/null +++ b/lanes/inter8-r1.report.md @@ -0,0 +1,87 @@ +# lane-inter8 r1 -- inter partition tree: the 16x16 level and its 8x8 leaves + +Branch `lane-inter8`, off main `3808cf8` (resumed from the orchestrator's WIP +snapshot `a5430ec`). **NOT merge-ready**: the round's gate is RED and `#[ignore]`d +with its reason (see "Open residue"). Nothing here has been merged to main. + +## What changed + +- `crates/ec-av1/src/decode.rs` (inter tile loop, ~12345): the interior (non + edge-straddling) 16x16 partition symbol is now read as the real alphabet and + `PARTITION_SPLIT` recurses into four 8x8 inter leaves (previously: refused by + name). Refusal narrowed to + `"an inter partition below 16x16 other than SPLIT (16x8/8x16 rect inter leaves are not coded yet)"`. + Counter `INTER_SUB16_SPLIT_HITS` / `inter_sub16_split_hits()` counts *interior* + splits only -- the straddle path always ran that same loop, so only an interior + count proves the newly-lifted alphabet value fired. (from the WIP snapshot) +- `decode.rs` `obmc_blend`: `av1_skip_u4x4_pred_in_obmc` -- the ABOVE pass skips + chroma when the chroma block is 4x4/8x4/4x8 (8x8, 16x8, 8x16 luma at 4:2:0); + `obmc_mask_2` added. (from the WIP snapshot) +- `decode.rs` `decode_inter_block8` (8x8 leaf), THIS round, three real defects, + each one moving the aomdec range ladder strictly later: + 1. the leaf built its `comp_mode` / compound-ref contexts from a FABRICATED + neighbour (`ref0 = LAST_FRAME` if inter, `ref1 = None`, `uni = false`). + `av1_get_reference_mode_context` asks whether a neighbour is COMPOUND, so + with real LAST+GOLDEN compound neighbours the leaf picked the wrong CDF row + and read single-ref where aomdec read compound `NEAR_NEWMV` (mi 4,14). + Now uses `neighbours.above_ref/above_ref1/left_ref/left_ref1` with the same + `is_uni_comp_ref` logic as `decode_inter_block` one level up. + 2. the sibling-leaf override was a single `prev_leaf` (the previously decoded + leaf). The bottom-LEFT leaf's ABOVE neighbour is leaf 0, never leaf 1, so + one of the four leaves always read a stale neighbour -- class + `context-read-from-one-cell`. Now a `prev_leaves` slice, matched by + coordinate, and each leaf hands back its own resolved `(ref0, ref1)`. + 3. both leaf mv stacks were built with `NO_SIGN_BIAS` / `NO_GM_MV` while the + 16x16 path passed the frame's real tables; `assign_compound_mv` got + `((0,0),(0,0))` for the gm mvs. Now threaded (`sign_bias_table`, + `global_motion` params + a leaf-local `build_gm_mv_table`). Alignment with + the proven path; it did NOT move this fixture's ladder (identity gm here). +- `decode.rs`: `EC_MODE mi_row=.. mi_col=.. rng=..` traces under `EC_TRACE_MODE` + in both `decode_inter_block` and `decode_inter_block8`, byte-format-identical + to the oracle's rung-4 `EC_MODE`, plus `EC_LEAFMODE` (compound mode / stack + size / ctxs) and a `TRACE partition_w16` line under `EC_AV1_TRACE`. These are + the instruments the round was actually decided with. +- `crates/ec-av1/src/stream.rs`: `inter_sb_none_gate` generalised to take + `min_part` / `max_part` (aomenc `--min/--max-partition-size`) and the counter + + label that proves the arm under test fired, so one recipe can target any + level of the inter partition tree. Two new gates + (`a_real_aomenc_[10bit_]inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact`, + `min=8 max=16`) assert `inter_sub16_split_hits` moved and every frame is + pixel-exact -- currently `#[ignore]`d, RED. + +## Gate + evidence + +Command (from the worktree, `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-inter8`, +`EC_AV1_REQUIRE_AOMENC=1`): + + cargo test -p ec-av1 --lib -- --ignored an_8x8_leaf_split + +EVIDENCE: /tmp/a_real_aomenc_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact-refused.obu | aomenc mandelbrot 64x64 4 frames, cq40 cpu0 --min-partition-size=8 --max-partition-size=16, rect/AB/1to4 off; decoded by ours (EC_TRACE_MODE) and by the instrumented aomdec (EC_TRACE_MODE) | partition symbol stream agrees 118/118 (size,ctx,value) vs aomdec EC_PART; inter mode-info range ladder agreed 41/57 before this round's fixes and 42/57 after, first divergence moved from block mi=(4,14) to mi=(6,12) +EVIDENCE: /tmp/ours_mode4.txt vs /tmp/orc_mode.txt | same stream, EC_MODE ladders diffed line for line | ours "EC_MODE mi_row=6 mi_col=14 rng=33349" vs oracle "rng=36254" -- entropy divergence inside block (6,12); before the fixes the stream refused outright ("a partition below 8x8"), it now decodes 4 frames without a refusal but is NOT pixel-exact + +## Refusals + +- narrowed: "an inter partition below 16x16 (8x8 and smaller inter blocks are not + coded yet)" -> "... other than SPLIT (16x8/8x16 rect inter leaves are not coded + yet)". **This narrowing is NOT yet backed by a green gate** -- honest status, + and the reason this branch must not merge as-is. +- untouched: SB-level non-NONE/SPLIT, the 32x32 alphabet refusal (`value=9`, + `PARTITION_VERT_4`, which aomenc emitted at 32x32 even with + `--enable-1to4-partitions=0` -- same shape as lane-sbpart r2's AB-at-64 note), + the 16x16 true-edge rectangular-transform one, the 8x8 chroma-mode one. + +## Open residue + +- fix-now (next round): `Neighbours`' `above_*`/`left_*` arrays are 16x16 + granular. Leaf (6,12)'s LEFT neighbour must be leaf (6,10) of the previous + 16x16 block, but both leaf rows of a 16x16 share one array slot, so one of + them is always wrong. Making those arrays mi-granular (or adding a per-mi + side band for skip/inter/ref0/ref1) is the next slice, and it is what + un-ignores the two gates above. +- deferred(the above): 8x8 HORZ/VERT -> 8x4/4x8 leaves, rect inter MC/transforms + at 16x8/8x16 (lane-rectx owns the transform half), AB/1-to-4 at 64/32/16, and + the aggregate per-type-per-level hit-counter gate the charter asks for. None + of these were started this round. +- deferred(unknown): the 10-bit variant of the same recipe stopped at + "a reference frame other than LAST_FRAME (round 2)" at `--min-partition-size=8 + --max-partition-size=64` before the max was clamped to 16; not re-measured.