From 3f9ab77ead40509eeb5074beece1fe5b02172e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 25 Sep 2026 12:54:56 +0300 Subject: [PATCH] ec-av1: lane-av1-422q -- the chroma422_pair16 chunk passes the offset-10 skip rows (chroma_skip_offset Some(3)): the av1422p frontier's prime suspect applied; same measured rule as the 4x32 arm (plane_bsize BLOCK_INVALID for the pair's BLOCK_4X16 too, num_pels_log2_lookup[255] = 0xff at the 0xc0de70 decodetxb copy -> get_txb_ctx_general's offset-10 arm; the port's offset-7-first txb_skip_chroma_8 holds those rows at 3..6); the 4x32 arm's Some(3), every other caller's None, the 4:2:0 group-tail SKIP arm, and the 4:2:2 header refusal are untouched; cargo check 0 warnings, one 420 aomenc gate green; report lanes/av1422q.report.md --- crates/ec-av1/src/decode.rs | 12 ++++++----- lanes/av1422q.report.md | 42 +++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 lanes/av1422q.report.md diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index dcbe472f..13d39523 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -15190,11 +15190,13 @@ fn decode_rect4_16_strip( cpx, cpy + unit_row * 8, base_q_idx, - // lane-av1-422p: `None` keeps this arm on the - // offset-7 rows exactly as before; the - // offset-10 question for this arm is the - // owning lane's (see lanes/av1422p.report.md). - None, + // lane-av1-422q: the offset-10 rows -- the same + // measured rule as the 4x32 arm (plane_bsize + // BLOCK_INVALID for the pair's BLOCK_4X16 too; + // num_pels_log2_lookup[255] = 0xff at the + // 0xc0de70 copy -> +3 on the offset-7-first + // chroma tables; see lanes/av1422q.report.md). + Some(3), alpha .zip(ac) .map(|((au, av), ac)| (if plane == 1 { au } else { av }, ac)), diff --git a/lanes/av1422q.report.md b/lanes/av1422q.report.md new file mode 100644 index 00000000..dca998f1 --- /dev/null +++ b/lanes/av1422q.report.md @@ -0,0 +1,42 @@ +# lane-av1-422q — the av1422p frontier's prime suspect APPLIED: the +# `chroma422_pair16` chunk passes `Some(3)` (the offset-10 skip rows), the +# 4x32 arm and every other caller untouched, the header refusal STAYS + +## Outcome + +1. The one-argument change, nothing else: `decode_rect4_16_strip`'s + `chroma422_pair16` arm now passes `Some(3)` to [`read_rect_chroma_unit`]'s + `chroma_skip_offset` (was `None`). Same measured rule as the 4x32 arm: + the pair's plane_bsize is `ss_size_lookup[BLOCK_4X16][1][0]` = + BLOCK_INVALID too, and the decodetxb copy of `num_pels_log2_lookup` reads + `0xff` at +255 (0xc0de70), so libaom's `get_txb_ctx_general` takes the + offset-10 arm; the port's offset-7-first `txb_skip_chroma_8` holds those + rows at 3..6. The stale lane-av1-422p `None` comment (which claimed the + offset-10 question was still open) is replaced by the measured rule. +2. Untouched, byte-identical: the 4x32 arm's existing `Some(3)`, every other + [`read_rect_chroma_unit`] caller (`None`), the 4:2:0 group-tail chroma + SKIP arm, `decode_probe.rs`, `stream.rs`, and the 4:2:2 header refusal + (the charter's delete condition — 16-frame pixel-exact + a 422-unit + counter — was not claimed this session, so nothing was deleted). + +## Verification + +- `git diff`: ONLY `crates/ec-av1/src/decode.rs` — one argument + (`None` -> `Some(3)`) plus its comment (+7/−5 lines). +- `cargo check -p ec-av1` (target dir `~/.cache/cargo-target-av1422q`): + **0 warnings, 0 errors**. +- 420 gate green under `EC_AV1_REQUIRE_AOMENC=1`: + `stream::tests::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_ + whose_tx_split_decodes_pixel_exact`: 1 passed, 0 failed. +- Not exercised this session (honest gaps): the 16-frame 4:2:2 stream was + NOT re-decoded and no pixel comparison was run — this lane's scope was the + single argument; whether the offset-10 rows fix the inter-frame + divergence is the next lane's diff. + +## State + +- Commit on lane-av1-422q (no push): the `Some(3)` argument, the corrected + comment, and this report. +- Next stop named for the owning lane: re-run the 16-frame probe/bypass with + counters and diff frames 1..15 against the aomdec oracle — the av1422p + report named this arm the prime suspect for the inter-frame divergence.