ec-av1: lane-av1-422r -- remeasure after the q Some(3): first remaining diff is still frame 0 plane U (0,23) ours=50 vs oracle=49, first of the 4491-sample decode_rect_split own-chroma keyframe gap (luma byte-exact, counts byte-identical to pre-fix), frames 1..8 diverge from (0,0) so the offset did NOT fix the inter walk, and the walk now panics at frame 9 in read_coeffs_rect (rect coeff scratch 36x36 < the 422 TX_32X64 chroma unit 36x68); stopped per charter (not one index), header refusal stays, report lanes/av1422r.report.md
Browse files at this commit410f9c861197cf6296ab317535057c45a01cfc39Parent: 3f9ab771 changed file +76 -0
- lanes/av1422r.report.md +76 -0
lanes/av1422r.report.mdadded+76 -0
| @@ -0,0 +1,76 @@ | |||
| 1 | +# lane-av1-422r — REMEASURE after the q `Some(3)`: the first remaining diff is | ||
| 2 | +# STILL frame 0 plane U (0, 23) ours=50 vs oracle=49 — first of the 4491-sample | ||
| 3 | +# `decode_rect_split` own-chroma keyframe gap, NOT one wrong index — the | ||
| 4 | +# inter-frame divergence PERSISTS (frames 1..8 differ from (0,0)), and the walk | ||
| 5 | +# now PANICS at frame 9 in [`read_coeffs_rect`] (rect coeff scratch 36×36 < | ||
| 6 | +# the 4:2:2 TX_32X64 chroma unit's 36×68). Stopped and named per charter. | ||
| 7 | + | ||
| 8 | +## Outcome | ||
| 9 | + | ||
| 10 | +1. Remeasured the pinned fixture (sha256 `d3fa4beeb1309033e4a03f5ae5c431c8fa | ||
| 11 | + 8386ba1ada088684710423c7938129`) at 03be6bad against | ||
| 12 | + `$HOME/.cache/aom-oracle/build/aomdec --rawvideo` (16 frames, i422), probe | ||
| 13 | + dump `EC_PROBE_OUT16`, local `EC_AV1_ALLOW_422_PROBE` bypass, reverted | ||
| 14 | + byte-identical after (`git status` clean before the report commit). Do not | ||
| 15 | + trust the p-report diff numbers blindly: re-derived per-frame per-plane | ||
| 16 | + first diffs from the raw dumps this session. | ||
| 17 | +2. **The first remaining diff: frame 0, plane U, row 0, col 23, ours=50, | ||
| 18 | + oracle=49.** Frame 0 luma is byte-exact; frame 0 carries 4491 U + 4888 V | ||
| 19 | + diffs — the counts are byte-IDENTICAL to the pre-fix p-report measurement, | ||
| 20 | + as expected: frame 0 is the keyframe and the pair16/4x32 arms never run | ||
| 21 | + there. The class is [`decode_rect_split`]'s own-chroma gap (the live | ||
| 22 | + `EC_RECTCHROMA_GAP luma=16x8 tx=8x8 chroma=8x8` diagnostics). 4491 samples | ||
| 23 | + is not one wrong index → charter step 3: STOP and name the function: | ||
| 24 | + **`decode_rect_split`** (own-chroma reconstruction at ss(1,0)). | ||
| 25 | +3. **The offset suspect is refuted for the inter-frame divergence**: frames | ||
| 26 | + 1..8 diverge from sample (0,0) in all three planes (frame 1: Y (0,0) | ||
| 27 | + ours=78 oracle=80, U (0,0) 230 vs 87, V (0,0) 165 vs 245; plane totals | ||
| 28 | + over 9 frames Y=258976, U=125891, V=124050). The q lane's `Some(3)` did | ||
| 29 | + not sync the inter walk. Note the U/V frame-1 offsets are consistent with | ||
| 30 | + MC inheritance of the already-wrong frame-0 chroma; the Y divergence | ||
| 31 | + (frame 0 Y exact) is a separate inter-path question that cannot be | ||
| 32 | + localized while chroma inherits the frame-0 gap. | ||
| 33 | +4. **New hard stop, frame 9**: `read_coeffs_rect` panics | ||
| 34 | + `rect coeff scratch w=32 h=64 n=2448` (decode.rs:7129, panic at :7195). | ||
| 35 | + The scratch bound `n <= 36*36` covers ≤32×32 units; a 64×64 luma block at | ||
| 36 | + ss(1,0) has plane_bsize `ss_size_lookup[BLOCK_64X64][1][0]` = BLOCK_32X64 | ||
| 37 | + (NOT invalid — unlike the p/q chunks), `max_txsize_rect_lookup` reads | ||
| 38 | + TX_32X64, and (32+4)×(64+4) = 2448 exceeds the bound. Frames 9..15 are | ||
| 39 | + unmeasurable until this is lifted. This shape never fired pre-fix because | ||
| 40 | + the unsynced walk never reached it. | ||
| 41 | +5. 4 u16 samples out of 8-bit range across frames 0..8 (the p report's | ||
| 42 | + unclipped-output class, still unattributed; was 2+6 over 16 frames). | ||
| 43 | + | ||
| 44 | +## Decision | ||
| 45 | + | ||
| 46 | +- First diff is a 4491-sample class → no one-index fix exists; stopped per | ||
| 47 | + charter. Functions named: [`decode_rect_split`] (owns the first diff) and | ||
| 48 | + [`read_coeffs_rect`] (scratch capacity, blocks frames 9+). | ||
| 49 | +- Header refusal STAYS: delete condition unmet (not pixel-exact — frame 0 | ||
| 50 | + alone carries 9379 chroma diffs; no full-stream proof possible with the | ||
| 51 | + frame-9 panic). `stream.rs` untouched; the bypass was local-only and is | ||
| 52 | + not in the commit. | ||
| 53 | + | ||
| 54 | +## Verification | ||
| 55 | + | ||
| 56 | +- Ours: 9 complete frames dumped before the panic (147456 B/frame u16); | ||
| 57 | + oracle: 16 frames i422. Stride-checked comparison (u16 elements vs bytes — | ||
| 58 | + the first compare script had a byte/element stride bug; frame 0's numbers | ||
| 59 | + were unaffected and frames 1..8 were re-derived at the correct stride). | ||
| 60 | +- `cargo check -p ec-av1` (target `~/.cache/cargo-target-av1422r`): 0 | ||
| 61 | + warnings, 0 errors. | ||
| 62 | +- 420 gate green under `EC_AV1_REQUIRE_AOMENC=1`: | ||
| 63 | + `stream::tests::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_ | ||
| 64 | + whose_tx_split_decodes_pixel_exact`: 1 passed, 0 failed. | ||
| 65 | +- `git status` clean after bypass revert; this commit carries ONLY this | ||
| 66 | + report. | ||
| 67 | + | ||
| 68 | +## State | ||
| 69 | + | ||
| 70 | +- Commit on lane-av1-422r (no push): this report, nothing else. | ||
| 71 | +- Next stop named for the owning lane: lift [`read_coeffs_rect`]'s scratch | ||
| 72 | + bound for TX_32X64 (36×68 levels — likely a heap fallback like | ||
| 73 | + [`read_coeffs`]'s, or a 68-row stack tier), re-run the 16-frame remeasure, | ||
| 74 | + THEN take the frame 1 luma (0,0) inter divergence with frame-0 chroma | ||
| 75 | + inheritance accounted for; [`decode_rect_split`]'s own-chroma gap remains | ||
| 76 | + the owner of the literal first diff. | ||