diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 2b08f958..c799b4bd 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -8687,6 +8687,22 @@ impl Neighbours { o.2 += dc_vote(left[plane].dc); } } + if crate::envflags::env_flag!("EC_DCDUMP") { + // lane-av1422mi24: same dump [`Self::around_mi_rect`] prints, so + // a rerouted 4:2:2 chroma gather stays visible under EC_DCDUMP=1. + // The above rows are the SAMPLED (every-second) cells. + for (plane, o) in out.iter().enumerate() { + let vote = o.2; + let ab: Vec = (0..above_mi) + .step_by(2) + .map(|k| format!("{:?}/{}", self.above[mi_c + k][plane].dc, self.above[mi_c + k][plane].level)) + .collect(); + let lf: Vec = (0..left_mi) + .map(|k| format!("{:?}/{}", self.left[mi_r + k][plane].dc, self.left[mi_r + k][plane].level)) + .collect(); + eprintln!("EC_DCDUMP422 mi=({mi_r},{mi_c}) plane={plane} wh=({w},{h}) vote={vote} above=[{}] left=[{}]", ab.join(","), lf.join(",")); + } + } out } @@ -10879,7 +10895,16 @@ fn decode_rect_split( // rule) -- the plain rect walk samples one chroma cell // twice at ss_x 1. Every pre-existing shape keeps its own // walk. - let cu_around = if chroma_422_oob { + // lane-av1422mi24: the plain rect walk's double-count + // hits EVERY unit shape at ss (1,0), not just the (4, 8) + // one -- the (8, 8) unit of a 16x8 intra-in-inter strip + // read its above dc votes twice and its U dc_sign one + // ctx row high (t422 frame 1). Route every ss (1,0) + // unit through the every-second-above-cell sampling; + // 4:2:0/4:4:4 keep the plain walk verbatim. + let cu_around = if chroma_422_oob + || (ss_x(fctx) == 1 && ss_y(fctx) == 0) + { neighbours.around_mi_422_chroma(cu_mi, luma_span_x, luma_span_y) } else { neighbours.around_mi_rect(cu_mi, luma_span_x, luma_span_y) @@ -10968,7 +10993,19 @@ fn decode_rect_split( } else { default_intra_tx_type(m.uv_predict_mode as u8) }; - let around = neighbours.around_mi_rect(at_mi, bw, bh); + // lane-av1422mi24: at ss (1,0) the chroma above span is `bw >> 1` + // chroma cells spread over `bw` luma mi columns -- the per-mi gather + // counts every chroma column's whole-unit dc sign twice (the t422 + // frame-1 mi(26,60) intra-in-inter strip's U dc_sign read one ctx + // row high). Luma keeps the per-mi gather; the two chroma planes + // take [`Neighbours::around_mi_422_chroma`]'s every-second + // above-cell sampling, like every other 4:2:2 chroma gather. + let mut around = neighbours.around_mi_rect(at_mi, bw, bh); + if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + let c = neighbours.around_mi_422_chroma(at_mi, bw, bh); + around[1] = c[1]; + around[2] = c[2]; + } let mut grids: Vec = Vec::with_capacity(2); for plane_idx in 1..=2 { let skip_ctx = @@ -11972,7 +12009,21 @@ fn decode_intrabc_rect( match leaves.as_ref() { None => { // One whole-block rectangular transform unit. - let around = neighbours.around_mi_rect((mi_r, mi_c), bw, bh); + // lane-av1422mi24: at ss (1,0) the chroma above span is + // `bw >> 1` chroma cells spread over `bw` luma mi columns -- + // the per-mi gather counts every chroma column's whole-unit + // dc sign twice (t422 frame 1, the mi(26,60) intra-in-inter + // strip's U dc_sign read ctx 1 where the oracle's cell sum + // is 0 -> ctx 0). Luma keeps the per-mi gather; the two + // chroma planes take + // [`Neighbours::around_mi_422_chroma`]'s every-second + // above-cell sampling, like every other 4:2:2 chroma gather. + let mut around = neighbours.around_mi_rect((mi_r, mi_c), bw, bh); + if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + let c = neighbours.around_mi_422_chroma((mi_r, mi_c), bw, bh); + around[1] = c[1]; + around[2] = c[2]; + } let (grid, tx_type) = read_inter_plane_rect( dec, cdfs, @@ -12097,7 +12148,15 @@ fn decode_intrabc_rect( // `av1_get_tx_type`'s chroma lookup lands on the colocated // LUMA unit, which for a split block is the top-left one. luma_tx_type = first_tx_type; - let around = neighbours.around_mi_rect((mi_r, mi_c), bw, bh); + // lane-av1422mi24: same 4:2:2 chroma gather rule as the + // `None` arm above -- the per-mi rect gather double-counts + // each chroma column's whole-unit dc sign at ss (1,0). + let mut around = neighbours.around_mi_rect((mi_r, mi_c), bw, bh); + if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + let c = neighbours.around_mi_422_chroma((mi_r, mi_c), bw, bh); + around[1] = c[1]; + around[2] = c[2]; + } let (ug, _) = read_inter_plane_rect( dec, cdfs, @@ -15483,7 +15542,18 @@ fn decode_rect4_16_strip( } (Grid::Zero(cw * ch), Grid::Zero(cw * ch)) } else { - let around = neighbours.around_mi_rect(pair_mi, pw, ph); + // lane-av1422ctxgather: 4:2:2's chroma above votes sample + // every second luma-mi cell + // ([`Neighbours::around_mi_422_chroma`]: at ss_x 1 one + // chroma 4-px column spans two luma mi columns, and the + // plain per-mi gather counts each column's whole-unit dc + // sign twice). The left extent is unsubsampled at ss_y 0, + // so its per-mi cells already line up one-to-one. + let around = if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + neighbours.around_mi_422_chroma(pair_mi, pw, ph) + } else { + neighbours.around_mi_rect(pair_mi, pw, ph) + }; // lane-av1-444: the strip's own 16x4 / 4x16 chroma at ss 0/0 // (`TxbSet::Chroma8`, `get_txsize_entropy_ctx(TX_16X4)` = // the 8x8 set); 4:2:0 keeps the pair's 8x4 / 4x8. @@ -23879,7 +23949,19 @@ fn read_inter_rect_chroma( at_mi.1 + cu_col * (span_x / MI), ); let cu_around = if multi { - neighbours.around_mi_rect(cu_mi, span_x, span_y) + // lane-av1422ctxgather: at ss (1,0) the unit's above + // span covers `uw` chroma px = `2*uw` luma mi columns, + // so the plain per-mi gather counts every chroma + // column's whole-unit dc sign twice + // ([`Neighbours::around_mi_422_chroma`]; the left + // extent is 1:1 at ss_y 0). 4:2:0 keeps the per-mi + // gather (both extents duplicated there, measured + // elsewhere). + if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + neighbours.around_mi_422_chroma(cu_mi, span_x, span_y) + } else { + neighbours.around_mi_rect(cu_mi, span_x, span_y) + } } else { around }; @@ -33762,7 +33844,39 @@ fn decode_inter_block( // OWN width above and height left -- reading `side` cells both // ways indexes past the tile's last mi row for a bottom strip. let around = if rect_tu { - neighbours.around_mi_rect(at_mi, write_w, write_h) + // lane-av1422mi24: at ss (1,0) the rect strip's chroma + // above span is `write_w >> 1` chroma cells spread over + // `write_w` luma mi columns -- the per-mi gather counts + // every chroma column's whole-unit dc sign twice (the + // t422 frame-1 mi(26,60) strip's U dc_sign read one row + // high). Luma keeps the per-mi extents; chroma takes + // [`Neighbours::around_mi_422_chroma`]'s every-second- + // above-cell sampling. + let mut a = neighbours.around_mi_rect(at_mi, write_w, write_h); + if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + let c = neighbours.around_mi_422_chroma(at_mi, write_w, write_h); + a[1] = c[1]; + a[2] = c[2]; + } + a + } else if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + // lane-av1422mi24: at ss (1,0) a square block's chroma + // plane block is (side/2, side) -- `side` chroma 4-px + // above cells spread over `side` luma mi columns, one + // chroma column per PAIR of luma mi cells. The plain + // per-mi gather samples every second chroma column, and + // its dc-vote sum lands one sign row off (t422 frame 1, + // mi(24,56) U dc_sign: ours read dc_sign_cdf[0] where + // the oracle read row 1). Luma keeps the per-mi gather + // verbatim; only the two chroma planes take + // [`Neighbours::around_mi_422_chroma`]'s every-second- + // above-cell sampling (the same measured rule the strip + // and chunk arms already run). + let mut a = neighbours.around_mi(at, side); + let c = neighbours.around_mi_422_chroma(at, write_w, write_h); + a[1] = c[1]; + a[2] = c[2]; + a } else { neighbours.around_mi(at, side) }; @@ -35257,7 +35371,25 @@ fn decode_inter_block( // OWN width above and height left -- reading `side` cells both // ways indexes past the tile's last mi row for a bottom strip. let around = if rect_tu { - neighbours.around_mi_rect(at_mi, write_w, write_h) + // lane-av1422mi24: same 4:2:2 rect-strip chroma gather + // rule as the single-TU path above -- luma per-mi, + // chroma every-second above cell. + let mut a = neighbours.around_mi_rect(at_mi, write_w, write_h); + if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + let c = neighbours.around_mi_422_chroma(at_mi, write_w, write_h); + a[1] = c[1]; + a[2] = c[2]; + } + a + } else if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + // lane-av1422mi24: same 4:2:2 square-block chroma gather + // rule as the single-TU path above -- luma per-mi, chroma + // every-second above cell. + let mut a = neighbours.around_mi(at, side); + let c = neighbours.around_mi_422_chroma(at, write_w, write_h); + a[1] = c[1]; + a[2] = c[2]; + a } else { neighbours.around_mi(at, side) }; @@ -35265,12 +35397,31 @@ fn decode_inter_block( // EVEN strip's mi origin and spans both strips, so its // above/left coefficient context is the pair's, not this // strip's row. + // lane-av1422ctxgather: at 4:2:2 (ss 1,0) a HORZ strip is + // its own chroma reference (`is_chroma_reference`'s + // `!(subsampling_y)` row clause) -- pair_mi is the strip + // itself and the context reads the strip's own 8x4, ONE + // luma-mi row tall, with the 4:2:2 above sampling + // ([`Neighbours::around_mi_422_chroma`]). The 4:2:0 pair + // merge keeps the (16, 8) span and the plain per-mi gather + // (as do 4:4:4 and every VERT shape). let around_c = match strip_chroma { - Some(s) if s.has_chroma => neighbours.around_mi_rect( - s.pair_mi, - if s.horz { 16 } else { 8 }, - if s.horz { 8 } else { 16 }, - ), + Some(s) if s.has_chroma => { + let (pw, ph) = if s.horz { + if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + (16, 4) + } else { + (16, 8) + } + } else { + (8, 16) + }; + if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + neighbours.around_mi_422_chroma(s.pair_mi, pw, ph) + } else { + neighbours.around_mi_rect(s.pair_mi, pw, ph) + } + } _ => around, }; let luma_tx_type; @@ -37023,7 +37174,24 @@ fn decode_inter_block( } } if let Some((s, u_state, v_state)) = pair_chroma { - let (pw, ph) = if s.horz { (16usize, 8usize) } else { (8, 16) }; + // lane-av1422ctxgather: at 4:2:2 (ss 1,0) a horz strip is its own + // chroma reference -- no pair merge ever happened, so the write + // covers the strip's own 8x4: ONE luma-mi left row (libaom's + // `av1_set_contexts` for the TX_8X4 at ss_y 0 stamps + // `tx_size_high_unit` = 1 cell). The 4:2:0 pair's two-row (16, 8) + // span would overwrite the NEXT row's leaf-stamped level state + // (measured: t422 frame 1, the strip at mi(8,4) zeroed + // left[9][1] under the mi(8,2) 8x8's level 5 before the mi(9,4) + // strip's own all_zero read it one ctx row low). + let (pw, ph) = if s.horz { + if ss_x(fctx) == 1 && ss_y(fctx) == 0 { + (16usize, 4usize) + } else { + (16usize, 8usize) + } + } else { + (8, 16) + }; let round_up_even = |n: usize| n.div_ceil(2) * 2; let (bound_h, bound_w) = ( round_up_even(neighbours.mi_rows), diff --git a/lanes/av1422ctxgather.report.md b/lanes/av1422ctxgather.report.md new file mode 100644 index 00000000..bae9f22f --- /dev/null +++ b/lanes/av1422ctxgather.report.md @@ -0,0 +1,89 @@ +# lane-av1422ctxgather — the 4:2:2 strip chroma context gather and the +# clobbering pair write fixed at source; 4:2:0/4:4:4 byte-identical; the +# 4:2:2 header refusal STAYS + +## Outcome + +1. **The clobber (the anchor's root cause).** `decode_inter_block`'s + `pair_chroma` write hardcoded the 4:2:0 pair span `(pw, ph) = (16, 8)` + for every horz strip. At 4:2:2 (ss 1,0) a horz 16x4 strip is its OWN + chroma reference (`is_chroma_reference`'s `!(subsampling_y)` row + clause) — no pair merge ever happened, `pair_mi` is the strip itself, + and the two-row span overwrote one row it does not own. Measured + (t422 frame 1, EC422WATCH probe, since removed): the inter strip at + mi(8,4) zeroed `left[9][1]` under the mi(8,2) 8x8 leaf's level 5 + before the mi(9,4) strip's own U `all_zero` read it one ctx row low + (ours base 0 + 7, oracle base 1 + 7 — the parent lane's anchor + facts, reproduced). The span is now `(16, 4)` at ss (1,0); 4:2:0 + keeps `(16, 8)`; VERT keeps `(8, 16)` in every format. +2. **The inter strip's chroma gather.** `decode_inter_block`'s + `around_c` gathered the horz strip's context with + `around_mi_rect(pair_mi, 16, 8)` — the pair span AND the plain + per-mi above sampling (one chroma 4-px column spans two luma mi + columns at ss_x 1, so every column's whole-unit dc sign is counted + twice). At ss (1,0) it now reads `(16, 4)` through + [`Neighbours::around_mi_422_chroma`]; the 4:2:0 pair merge keeps the + (16, 8) span and the per-mi gather, as do 4:4:4 and every VERT shape. +3. **The intra strip's chroma gather** (the charter's named site, + `decode_rect4_16_strip` ~15331): the else arm's + `around_mi_rect(pair_mi, pw, ph)` is routed through + [`around_mi_422_chroma`] at ss (1,0) — the same measured rule as the + other chroma gathers (10754/13774/15297/17862/18061). Shapes at other + subsamplings keep the original gather. +4. **Class sweep found one more instance, fixed:** + `read_inter_rect_chroma`'s chunked units (`multi` arm) gathered each + unit with `around_mi_rect(cu_mi, span_x, span_y)`; at ss (1,0) the + unit's above span covers `2*uw` luma mi columns and the per-mi gather + double-counts every column. Now routed through [`around_mi_422_chroma`] + at ss (1,0) only; the `else` (4:2:0/4:4:4) arm is the original + expression verbatim. +5. Untouched, byte-identical: the intra strip's own chroma write (its + pair is already `(16, 4)` at 4:2:2), `decode_rect4_16_intrabc`'s pair + write (intrabc counters are 0 on the pinned fixture and intrabc has + its own inventory discipline), the 4:2:0 group-tail chroma SKIP arm + (reserved for its owning lane), `stream.rs`, and the 4:2:2 header + refusal. The `EC_AV1_ALLOW_422_PROBE` bypass was applied to stream.rs + for the probe runs and reverted; `git status` names only decode.rs. + +## Verification + +- **The anchor, before/after (probed, EC422WATCH + EC_DCDUMP):** before, + `inter_pair` wrote `left[9][1] 5 -> 0` and the mi(9,4) strip's U gather + read `left=[None/0]` -> base 0; after, nothing writes row 9 between the + leaf's stamp and the gather, the gather reads `left=[Some(true)/5]` -> + base 1 = the oracle's row. First U divergence at the parent's anchor + (pre-all_zero rng 49672) is gone. +- **t422 inter ladder re-measured** (decode_probe + EC_AV1_{PREFILT, + POSTDEBLOCK,POSTCDEF}_DUMP vs the parent's oracle dumps, + /tmp/i422/ladder/oracle, our dumps /tmp/i422/av1422ctxgather/final): + frame 0 is **exact at all three stages (0 diffs per plane per frame)**. + Frame 1 pre-fix Y=23948 U=13513 V=13544 -> post-fix Y=1739 U=4346 + V=4974 (first Y diff moved from the anchor's ctx row to y=96 x=240; + first chroma diffs at chroma (0,44)/(2,44)). Frames 2-15 improved on + every plane (no frame regressed) but remain nonzero. +- **Frame exactness claimed ONLY where measured 0:** frame 0 at all + stages. Frames 1+ are NOT claimed. The residual is downstream of this + lane's class: frame 1's first Y diff sits at (96, 240) (mi(24,60)) and + the first U/V diffs at chroma (2,44)/(0,44) — neither is a strip + gather nor a pair write; attributing them is the next lane's first + diff. +- **4:2:0/4:4:4 identity:** all four edits are gated + `ss_x(fctx) == 1 && ss_y(fctx) == 0` with the non-4:2:2 arm the + original expression verbatim; the lossless 4:4:4 stream gates stay + green — `a_lossless_libaom_key_frame_decodes_sample_exact`, + `a_lossless_libaom_inter_frame_decodes_sample_exact`, + `a_real_aomenc_mixed_lossless_segment_frame_decodes_sample_exact`: + 3 passed, 0 failed. +- `cargo check -p ec-av1` (target dir `~/.cache/cargo-target-av1422ctxgather`): + **0 warnings, 0 errors**. +- Probes: the temporary EC422WATCH write-watch was removed before the + final build and commit; the final ladder was re-run on the clean tree + and matches the probed run exactly (the watch was eprintln-only). + +## State + +- Commit on lane-av1422ctxgather (no push): the four gated edits in + `crates/ec-av1/src/decode.rs` + this report. +- Next stop named for the owning lane: the frame-1 Y diff at mi(24,60) + and the chroma diffs at chroma (0,44)/(2,44) — re-run the stage ladder + and the EC_ISTEP/EC_COEFF pairing from there. diff --git a/lanes/av1422mi24.report.md b/lanes/av1422mi24.report.md new file mode 100644 index 00000000..c050af98 --- /dev/null +++ b/lanes/av1422mi24.report.md @@ -0,0 +1,106 @@ +# lane-av1422mi24 — the t422 inter ladder continued from mi(24,60): the +# square/rect block chroma context gathers routed through the 4:2:2 +# every-second-above-cell sampling; frame-1 entropy now in FULL rng lockstep +# and ALL frames' LUMA decodes exact; the residual is a chroma pixel-level +# class (entropy-identical), first site named below + +## Outcome + +1. **Reproduction at HEAD 95408ed3.** The ctxgather lane's named residual + reproduced exactly: frame 0 exact at prefilt/postdeb/postcdef; frame 1 + prefilt first diffs Y (96,240) = mi(24,60), U chroma (2,44), V (0,44). +2. **The mi(24,60) divergence localized (rng-anchored lockstep, + EC_TRACE_PART + EC_AV1_TRACE pairing vs the oracle's EC_PART).** 293 + partition reads matched rng-for-rng; the walk first misaligned at the + NEXT 16x16 read (mi(24,60) pre-read rng 52112 vs oracle 64776). Window + diff (EC_ISTEP / EC_COEFF / EC_COEFF_STEP) pinned the first divergent + symbol: the **U dc_sign read of the mi(24,56) 16x16 inter block** — ours + `dc_sign_cdf[0]`, oracle row 1. Every level read around it matched + rng-for-rng: the coefficient scan placement is CORRECT (the codebase's + row-major SCAN_8X16/SCAN_16X8 pair and libaom's column-major + default_scan_8x16/default_scan_16x8 enumerate identical (row, col) + orders; verified cell by cell against the oracle source). +3. **Root cause, class `per-mi chroma context gather` (the ctxgather + lane's own rule, three more sites).** At ss (1,0) one chroma 4-px + column spans TWO luma mi columns; the plain + [`Neighbours::around_mi_rect`]/[`around_mi`] walk samples the above + span per luma mi and counts every chroma column's whole-unit dc sign + twice, so `dc_sign_ctx`'s vote sum lands one sign row off. Three block + classes still gathered per-mi at ss (1,0): + * `decode_inter_block`'s block `around` — single-TU arm AND the + var-tx/mu arm (square blocks: the mi(24,56) 16x16; rect_tu strips: + 16x8 pieces), previously only the strip-pair `around_c` was routed; + * `decode_rect_split`'s `chroma_tiled` arm — the else branch kept the + plain walk for every non-(4,32) unit, so a 16x8 intra-in-inter + strip's (8, 8) chroma unit (mi(26,60), the frame-1 HORZ pair's second + piece) read its U dc_sign one row high; + * `decode_rect_split`'s unsplit single-TU chroma arm (line ~10863) + and `decode_intrabc_rect`'s two chroma gathers — same class, fixed + under the same ss (1,0) gate. The intrabc arms are UNREACHABLE on the + pinned fixture (`intrabc_hits: 0`): verified by gating only, not by a + 4:2:2-intrabc witness (per the intrabc inventory discipline the + owning lane should witness them). + Every edit is gated `ss_x == 1 && ss_y == 0` with the non-4:2:2 arm the + original expression verbatim. +4. **Diagnostic parity (Main's request): [`around_mi_422_chroma`] now + prints the same env-gated `EC_DCDUMP422` block `around_mi_rect` prints** + (sampled above cells), so a rerouted 4:2:2 chroma gather stays visible + under `EC_DCDUMP=1`. +5. **Oracle ground truth used:** the instrumented aomdec's `EC_DBGCTX` + chroma context dump (cells + the built binary's `dc_sign_contexts` + table, extracted from the binary: signum semantics {neg:1, 0:0, + pos:2}, matching our `dc_sign_ctx`). The src tree's table literal + differs from the built one; the binary is authoritative. + +## Verification + +- **Partition lockstep, frame 1, post-fix (decode_probe + + EC_TRACE_PART vs oracle EC_PART, 2-frame fixture):** 300/300 oracle + partition reads match rng-for-rng in walk order (ours consumes 4 extra + gathered `EC_PARTG` prints the oracle does not emit) — **no rng + mismatch anywhere in the frame**. +- **t422 inter ladder re-measured** (decode_probe + + EC_AV1_{PREFILT,POSTDEBLOCK,POSTCDEF}_DUMP vs the oracle stage dumps, + our dumps /tmp/i422/av1422mi24/*{prefilt,postdeb,postcdef}*8): + * frame 0: exact at all three stages; + * **LUMA: 0 diffs on EVERY frame 1–15 at prefilt AND postdeb** (frame 1 + was 2146 diffs pre-lane; frame 3 was 25163). Frame 15 postcdef shows + Y=5059 — a CDEF knock-on: CDEF decisions read the (still wrong) + chroma, not a luma defect (postdeb f15 Y=0); + * chroma: frame 1 U 4346 → 4175, V 4974 → 4636; frames 3–14 chroma + improved on every plane (e.g. f3 U 12610 → 4363); first U diff moved + to chroma (4,44). +- **Frame exactness claimed ONLY where measured 0:** frame 0 all stages; + frames 1–15 LUMA at prefilt/postdeb. Frames 1+ chroma are NOT claimed. +- **The residual, site named (next lane's first diff).** With entropy in + full lockstep (luma exact everywhere proves it), the remaining chroma + diffs are a PIXEL-level class, entropy-identical: first frame-1 diffs + U chroma (4,44) → luma (88,8) — the 8x8 inter leaf mi(0,22)'s chroma: + U rows 0..3 exact, rows 4..7 wrong; V col 44,45 rows 0..15. The oracle + reads NO U residual there (no `EC_COEFF plane=1` at chroma cell + (11,0)), so this is a chroma prediction/reconstruction defect for sub-8 + 4:2:2 leaves (`chroma422_sub8` / `sub8_inter_split` territory), not a + context-gather defect. CDEF-stage luma diffs on f15 are downstream of + it. +- **4:2:0/4:4:4 identity:** every edit is ss (1,0)-gated with the other + arm verbatim; the lossless gate battery stays green — 8 passed 0 failed + including `a_lossless_libaom_key_frame_decodes_sample_exact`, + `a_lossless_libaom_inter_frame_decodes_sample_exact`, + `a_real_aomenc_mixed_lossless_segment_frame_decodes_sample_exact`. +- `cargo check -p ec-av1` (target dir `~/.cache/cargo-target-av1422mi24`): + **0 warnings, 0 errors**. +- The `EC_AV1_ALLOW_422_PROBE` bypass was applied to stream.rs for the + probe runs and REVERTED; `git status` names only decode.rs. +- Charter note: the s2.obu mandelbrot re-run was DONE by Agent104 (still + panics at decode.rs:3709, empty pred slice — bigblock lane's defect); + dropped from this lane per Main. + +## State + +- Commit on lane-av1-422mi24 (no push): the ss (1,0) chroma-gather fixes + in `crates/ec-av1/src/decode.rs` + this report. +- Next stop named for the owning lane: the chroma pixel-level class — + first site the frame-1 8x8 inter leaf mi(0,22)'s chroma (U rows 4..7, + V rows 0..7, chroma cols 44..47), prediction/reconstruction for sub-8 + 4:2:2 leaves with entropy in lockstep; and the f15 postcdef CDEF + knock-on disappears with it.