Lane-t900 r13 handoff
Browse files at this commit89542942c6dc2c585e8a5f7921be5b6f5b11a39aParent: 1afb820- docs
- lane-t900 r13 handoff
1 changed file +58 -0
- lanes/t900-r13.handoff.md +58 -0
lanes/t900-r13.handoff.mdadded+58 -0
| @@ -0,0 +1,58 @@ | |||
| 1 | +# lane-t900 r13 handoff -- start at the OBMC LEFT pass of a bottom-overhanging block | ||
| 2 | + | ||
| 3 | +Tip `f24c9807` on `lane-t900` (base main `2b65cb8e`). Full report: `lanes/t900-r13.report.md`. | ||
| 4 | + | ||
| 5 | +## Facts established this round (do not re-measure) | ||
| 6 | + | ||
| 7 | +1. The four 4K offsets the r13 charter listed as whole-frame desyncs (2700 f73, 3000 f43, | ||
| 8 | + 1500, 5400) are **byte-exact on this tip**: 107/193/244/160 decode frames, 0 differing. | ||
| 9 | + r12's `uv_mode_grid` fix cured them. Cuts (each hashed twice, identical): | ||
| 10 | + `~/.cache/t900-tmp/h{2700,3000,1500,5400}.obu`. Compare script `~/.cache/t900-tmp/cmp13.sh` | ||
| 11 | + (uses `$HOME/.cache/cargo-target-t900b` so it never shares a target dir with a suite). | ||
| 12 | +2. r12's fix now has a witness: `gm_small_side_witness.obu` fires `uv_mode_grid_override` | ||
| 13 | + 138 times and the gate hard-asserts it. `reelc_sb128_inter_witness` fires it 24; the four | ||
| 14 | + `reelb_*` witnesses fire 0. | ||
| 15 | +3. The 1-3 B residue on the 1080p 900 s cut (36 frames, first 41, worst 13) is | ||
| 16 | + **inside the OBMC blend, not the base MC**. On frame 41 the chroma block | ||
| 17 | + `mi_x=704 mi_y=768 bw=16 bh=16` (32x32 luma at mi(192,176), overhanging the bottom: | ||
| 18 | + mi_rows=198), `mm=1 skip=1 mv0=(-4,14) ref0=5`: | ||
| 19 | + * pre-blend chroma prediction = aomdec's, all 16 rows; | ||
| 20 | + * after the blend our prefilter recon differs at exactly one sample, row 11 col 1 | ||
| 21 | + (`U(353,395)`, aom 492 ours 493), which lies in the LEFT pass's 8-column strip and | ||
| 22 | + below the ABOVE pass's 4-row strip. | ||
| 23 | + So: LEFT-pass neighbour prediction or its blend, at the block's last valid chroma row. | ||
| 24 | +4. Dead end (measured, reverted, recorded in a comment at the site): flooring the chroma | ||
| 25 | + OBMC blend length at 4 (libaom's `clamp(..., 4, ...)`) -- that clamp sizes the PREDICTION | ||
| 26 | + buffer only; the blend length is `overlap >> ss`. 36 differing frames -> 266, worst 13 B | ||
| 27 | + -> 11007 B. | ||
| 28 | +5. Ruled out by reading both sources: `build_mc_border`/`update_extend_mc_border_params` | ||
| 29 | + clamp to `uv_crop_width/height` (960x396) = our `true_width/true_height`; | ||
| 30 | + `clamp_mv_to_umv_border_sb` is result-equivalent to tap clamping. | ||
| 31 | + | ||
| 32 | +## Rungs available (both additive and env-gated) | ||
| 33 | + | ||
| 34 | +* aomdec private build (`~/.cache/aom-oracle/src/av1/decoder/decodeframe.c`, rebuilt with | ||
| 35 | + `ninja -C ~/.cache/aom-oracle/build aomdec`): `EC_MCB="<plane>:<px>:<py>[:<frame>]"` prints | ||
| 36 | + every `dec_build_inter_predictors` call whose plane-pixel span covers that pixel -- | ||
| 37 | + including the `obmc=1` neighbour predictions (their rows come from the tmp buffer) -- | ||
| 38 | + with `f=` (decode-order frame, counter `ec_t900_frame`), bw/bh, mode, `mm`, skip, mv0, | ||
| 39 | + refs, interp, `prew/preh/stride`. | ||
| 40 | +* ours: `OUR_MCB` in `decode.rs::obmc_blend`, same env spelling, chroma rows before and | ||
| 41 | + after the blend; `EC_OBMC` (pre-existing) prints the neighbour list on both decoders. | ||
| 42 | +* Cut with frame 41 near the end: `~/.cache/t900-tmp/c900_62.obu` | ||
| 43 | + (`python3 ~/.cache/reelckf-work/trunc.py cut_900.obu 62 c900_62.obu`). | ||
| 44 | + | ||
| 45 | +## Next step (chartered) | ||
| 46 | + | ||
| 47 | +`EC_MCB=1:353:395:41` on aomdec over `c900_62.obu` and read the `obmc=1` entries for | ||
| 48 | +`mi_x=704`: compare each LEFT-pass neighbour (position, span, mv, ref, filter -- `EC_OBMC` | ||
| 49 | +on both) and then the tmp rows at row 11 against ours. Our left pass sizes are | ||
| 50 | +`(bw, bh, oy) = (overlap_left, span4*4, off4*4)` with chroma `(overlap_left/2, bh/2, oy/2)` | ||
| 51 | +(`decode.rs` ~19585); libaom's are `bh = (mi_step*MI_SIZE) >> ss_y` and blend width | ||
| 52 | +`overlap >> ss_x` -- check what libaom does with `mi_step` when the neighbour span runs | ||
| 53 | +past `mi_rows` at the frame bottom. | ||
| 54 | + | ||
| 55 | +## Owed | ||
| 56 | + | ||
| 57 | +* 1080p 0-10 s head re-probe (was 78 differing, first 86 -- unmeasured since r11). | ||
| 58 | +* census8's 24 not-exact 4K offsets (run8.sh) re-probe. | ||