Lane-t900 r13 report -- 4K offsets exact, OBMC-blend residue localised
Browse files at this commit1afb820d69269153dbb2fa5388bb6eec8a7dee5bParent: aa6d526- docs
- lane-t900 r13 report -- 4K offsets exact, OBMC-blend residue localised
1 changed file +113 -0
- lanes/t900-r13.report.md +113 -0
lanes/t900-r13.report.mdadded+113 -0
| @@ -0,0 +1,113 @@ | |||
| 1 | +# lane-t900 r13 report -- the four 4K whole-frame desyncs were already cured by r12; the 1-3 B residue is inside the OBMC blend, not the base MC | ||
| 2 | + | ||
| 3 | +Tip `7a111b9d` on `lane-t900` (base main `2b65cb8e`; r12 tip `66d88cfe` was already | ||
| 4 | +a fast-forward of main, no merge needed this round). | ||
| 5 | + | ||
| 6 | +## STEP 0 -- suite | ||
| 7 | + | ||
| 8 | +`systemd-run --user --unit=t900-suite-r13-... cargo test -p ec-av1 --lib -j3` | ||
| 9 | +(EC_NOMEMGUARD=1 EC_AV1_REQUIRE_AOMENC=1, log `$HOME/.cache/t900-suite-r13.log`): | ||
| 10 | + | ||
| 11 | + test result: ok. 429 passed; 0 failed; 38 ignored; 0 measured; 0 filtered out | ||
| 12 | + | ||
| 13 | +No red from r11/r12. A confirmation run on the r13 tip is armed | ||
| 14 | +(`$HOME/.cache/t900-suite-r13b.log`); the one test whose code changed | ||
| 15 | +(`a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_reach_decode_pixel_exact`) | ||
| 16 | +was run alone on the r13 tree and passes -- see STEP 1. | ||
| 17 | + | ||
| 18 | +## STEP 1 -- witness for r12's mi-granular uv_mode grid (DONE, no new fixture) | ||
| 19 | + | ||
| 20 | +`decode_probe` now prints `uv_mode_grid_override`. Measured over the existing witnesses: | ||
| 21 | + | ||
| 22 | +| fixture | uv_mode_grid_override | | ||
| 23 | +|---|---| | ||
| 24 | +| `gm_small_side_witness.obu` | **138** | | ||
| 25 | +| `reelc_sb128_inter_witness.obu` | 24 | | ||
| 26 | +| `reelb_head_mvclamp_witness.obu` | 0 | | ||
| 27 | +| `reelb_arf_witness.obu` | 0 | | ||
| 28 | +| `reelb_intra14_witness.obu` | 0 | | ||
| 29 | +| `reelb_rect64_intra16x4_witness.obu` | 0 | | ||
| 30 | + | ||
| 31 | +So no new fixture was pinned (charter's fallback): the small-side GLOBALMV gate now | ||
| 32 | +hard-asserts the counter. | ||
| 33 | + | ||
| 34 | +EVIDENCE: $HOME/.cache/t900-uvgate.log | cargo test -p ec-av1 --lib small_side_globalmv -- --nocapture | `33 shown frames pixel-exact on every plane; gm_nontrans_small_side=1 tr_reach_longer_side=2295 uv_mode_grid_override=138`, `1 passed; 0 failed` | ||
| 35 | + | ||
| 36 | +## STEP 2 -- the four 4K offsets: ALL EXACT, the charter's premise was stale | ||
| 37 | + | ||
| 38 | +Every cut extracted twice, identical sha256 both times; both decoders compared with | ||
| 39 | +`EC_AV1_FINAL_DUMP` per decode-order frame (`~/.cache/t900-tmp/cmp13.sh`). | ||
| 40 | + | ||
| 41 | +| offset (10-bit 3840x1608 HDR film) | charter premise (pre-r12) | measured on r13 tip | | ||
| 42 | +|---|---|---| | ||
| 43 | +| 2700 s, 2 s | f73 first differing, 15.8 MB (whole frame) | **107 decode frames, 0 differing** | | ||
| 44 | +| 3000 s, 2 s | f43 first differing | **193 frames, 0 differing** | | ||
| 45 | +| 1500 s, 2 s | Golomb / own desync | **244 frames, 0 differing** | | ||
| 46 | +| 5400 s, 2 s | Golomb / own desync | **160 frames, 0 differing** | | ||
| 47 | + | ||
| 48 | +r12's chroma edge-filter fix (`uv_mode_grid`) cured all four; there was no frame-73 | ||
| 49 | +ladder to run. No EC_MODE ladder was needed and none was run. | ||
| 50 | + | ||
| 51 | +EVIDENCE: ~/.cache/t900-tmp/d_h2700, d_h3000, d_h1500, d_h5400 | cmp13.sh per offset (aomdec EC_AV1_FINAL_DUMP vs decode_probe, byte compare per decode frame) | 107/193/244/160 frames, 0 differing each | ||
| 52 | + | ||
| 53 | +## STEP 3 -- the 1-3 B bottom-edge residue: localised to the OBMC BLEND (open) | ||
| 54 | + | ||
| 55 | +10-bit 1920x792 cut at 900 s (`~/.cache/t900-tmp/cut_900.obu`, 267 decode frames): | ||
| 56 | +36 differing frames, first f41 (1 B), worst 13 B -- unchanged by r12. | ||
| 57 | + | ||
| 58 | +Sample census (final dump): every differing sample is CHROMA, in chroma rows 390-395 | ||
| 59 | +(the bottom 12 luma rows), and off by +-1 (rarely +-2). Luma is bit-exact everywhere. | ||
| 60 | + | ||
| 61 | +New rungs this round: | ||
| 62 | +* aomdec (private build, additive, env-gated): `EC_MCB="<plane>:<px>:<py>[:<frame>]"` in | ||
| 63 | + `dec_build_inter_predictors` prints the block whose plane-pixel span COVERS that pixel | ||
| 64 | + (frame counter `ec_t900_frame`, bumped where `EC_AV1_FINAL_DUMP` writes). | ||
| 65 | +* ours: `OUR_MCB` in `decode.rs` `obmc_blend`, same env spelling, prints the chroma | ||
| 66 | + prediction rows on entry and on exit of the blend. | ||
| 67 | + | ||
| 68 | +Frame 41, the block that owns the differing sample: chroma `mi_x=704 mi_y=768 bw=16 bh=16` | ||
| 69 | +(32x32 luma at mi(192,176), which OVERHANGS the frame bottom: mi_rows=198), `mm=1` (OBMC), | ||
| 70 | +`skip=1`, `mv0=(-4,14)`, ref0=5, `prew=960 preh=396`. | ||
| 71 | + | ||
| 72 | +* PRE-blend chroma prediction: **all 16 rows bit-identical** to aomdec. | ||
| 73 | +* Post-blend: our recon differs at exactly one sample, `U(353,395)` = row 11, col 1 | ||
| 74 | + (prefilter dump: aom 492, ours 493; the loop filter then spreads it to `U(354,395)` | ||
| 75 | + in the final dump). | ||
| 76 | +* Col 1 is inside the LEFT pass's overlap strip (8 chroma columns) and outside the ABOVE | ||
| 77 | + pass's (4 rows), and row 11 is the block's LAST valid chroma row -- so the residue is in | ||
| 78 | + the LEFT-pass OBMC neighbour prediction/blend of a bottom-overhanging block, NOT in the | ||
| 79 | + base motion compensation and NOT (r8's premise) a bottom-edge tap clamp of the block's | ||
| 80 | + own MC. | ||
| 81 | + | ||
| 82 | +EVIDENCE: ~/.cache/t900-tmp/aom_mcb41.txt, our_mcb41.txt, pf13/{aom,ours}.f41 | EC_MCB=1:354:395:41 on both decoders over c900_62.obu + EC_AV1_PREFILT_DUMP16 compare | 16/16 pre-blend rows identical; prefilter f41 diffs=1 at U(353,395) 492vs493 | ||
| 83 | + | ||
| 84 | +Dead end measured and recorded in the code (`decode.rs` obmc_blend): libaom's min-4 | ||
| 85 | +clamp (`dec_build_prediction_by_above_pred`: `clamp(block_size_high[bsize] >> (ss_y+1), 4, ...)`) | ||
| 86 | +sizes only the OBMC PREDICTION buffer -- the blend length stays the plain half | ||
| 87 | +(`build_obmc_inter_pred_above`: `overlap >> ss_y`). Flooring the chroma blend at 4 took | ||
| 88 | +cut_900 from 36 differing frames to 266 and the worst frame from 13 B to 11007 B; reverted. | ||
| 89 | + | ||
| 90 | +Also read and ruled out by source on both sides (no code change): `build_mc_border` / | ||
| 91 | +`update_extend_mc_border_params` clamp to `pre_buf->width/height` = `uv_crop_*` = 960x396, | ||
| 92 | +identical to our `true_width/true_height`; `clamp_mv_to_umv_border_sb` is result-equivalent | ||
| 93 | +to tap clamping wherever the geometry it is given is the block's own. | ||
| 94 | + | ||
| 95 | +Residue disposition: **deferred(next round)** -- the next rung is aomdec's `EC_MCB` with | ||
| 96 | +`obmc=1` (it already prints the neighbour prediction from the tmp buffer) against our | ||
| 97 | +`ec_obmc_trace`/`OUR_MCB` for the LEFT pass of that block: compare the neighbour list | ||
| 98 | +(position, span, mv, ref, filter) and then the tmp rows at row 11. | ||
| 99 | + | ||
| 100 | +## STEP 4 -- re-probe | ||
| 101 | + | ||
| 102 | +The four 4K offsets above are the re-probe (all exact). The 4K 10 s head was measured | ||
| 103 | +0 of 241 differing on this code in r12 and is unchanged here (no decode-path change this | ||
| 104 | +round -- the only non-comment edits are trace/gate code). The 1080p 0-10 s head re-probe | ||
| 105 | +and the census8 24-offset sweep are **deferred(turn cap)**. | ||
| 106 | + | ||
| 107 | +## Files changed | ||
| 108 | + | ||
| 109 | +* `crates/ec-av1/src/stream.rs` -- the small-side GLOBALMV gate asserts and reports | ||
| 110 | + `uv_mode_grid_override > 0` (witness for r12's fix). | ||
| 111 | +* `crates/ec-av1/examples/decode_probe.rs` -- prints `uv_mode_grid_override`. | ||
| 112 | +* `crates/ec-av1/src/decode.rs` -- `OUR_MCB` rung in `obmc_blend`; a comment recording the | ||
| 113 | + measured OBMC min-4 dead end. | ||