R1 handoff -- repro, trace, suspect order
Browse files at this commitd9bea4acc83aa1dc5cd3c1e2df4e4ad7fa113722Parent: bc895cb- docs
- r1 handoff -- repro, trace, suspect order
1 changed file +33 -0
- lanes/sb128c-r1.handoff.md +33 -0
lanes/sb128c-r1.handoff.mdadded+33 -0
| @@ -0,0 +1,33 @@ | ||
| 1 | +# lane-sb128c r1 -> r2 handoff | |
| 2 | + | |
| 3 | +Tip `31d4d68` on `lane-sb128c` (worktree `/home/user/Documents/Code/Rust/edith_codecs-sb128c`, | |
| 4 | +`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-sb128c`). Full detail: `lanes/sb128c-r1.report.md`. | |
| 5 | + | |
| 6 | +ONE open defect: the 128x128 inter PARTITION_NONE block desyncs. | |
| 7 | + | |
| 8 | +Repro (both files already exist, regenerate with the recipe in the report): | |
| 9 | +- stream `$HOME/.cache/sb128c-work/g8.obu` (256x256, 8 frames, `--sb-size=128 --cpu-used=0 | |
| 10 | + --max-partition-size=128 --min-partition-size=32 --cq-level=62 --enable-rect-partitions=0 | |
| 11 | + --enable-ab-partitions=0 --enable-1to4-partitions=0 --enable-palette=0 --enable-intrabc=0 | |
| 12 | + --enable-tx-size-search=0 --deltaq-mode=0 --limit=8`, gradients seed 61 + noise alls=6) | |
| 13 | +- `decode_probe g8.obu` -> refuses `a split intra strip whose transform unit is 32x64`, which the | |
| 14 | + encoder cannot have coded (rect partitions off) => our desync. | |
| 15 | +- `EC_AV1_TRACE=1 decode_probe g8.obu | grep partition_w128` -> 4 x `value=0` (NONE), 10 x `value=3`. | |
| 16 | +- `k1.obu` (same recipe, `--limit=1`) decodes OK, so the key frame's 128 path is fine; the defect is on | |
| 17 | + an inter frame. | |
| 18 | + | |
| 19 | +Method: instrumented aomdec `EC_TRACE_COEFF` vs our `EC_TRACE_COEFF`, compare msac RANGE element by | |
| 20 | +element (never `tell()`), starting at the FIRST inter-frame 128 NONE block. | |
| 21 | + | |
| 22 | +Suspect order (all untested): | |
| 23 | +1. `read_cdef` for a NONE 128 block on the INTER path (`CDEF_TRANSMITTED` reset + quadrant index). | |
| 24 | + The key path resets it and replicates `CDEF_IDX_GRID`; the inter path now does the same, unverified. | |
| 25 | +2. `maybe_read_delta_q` / delta_lf granularity at a 128 root on an inter frame. | |
| 26 | +3. mvstack with bw4 = bh4 = 32 (`has_top_right` at 128, tpl sample positions, `check_sb_border` | |
| 27 | + hardcodes 64 which the ledger says is correct at both sb sizes). | |
| 28 | +4. This round's own mu-chunk chroma interleave inside `decode_inter_block`: the `Some(3)` chroma | |
| 29 | + `txb_skip` offset row, the per-unit `record_mi_chroma`, and the chunk-completion test | |
| 30 | + (`(leaves[idx+1].0/16, leaves[idx+1].1/16) != chunk`). | |
| 31 | + | |
| 32 | +Un-`#[ignore]` `a_real_aomenc_inter_128x128_none_root_decodes_pixel_exact` (stream.rs) when green, and | |
| 33 | +re-run the siblings `128x128` + `refusal_inventory` + `gate_coverage` before claiming root cause. |