R4 handoff -- frame 1 is entropy AND prediction exact
Browse files at this commit8fc2d7eca3f1516e0e51b658c65676d1b19851d7Parent: 99d520f- docs
- r4 handoff -- frame 1 is entropy AND prediction exact
- the residual band is decode frame 2, x=96..127
1 changed file +30 -25
- lanes/mergefix-r4.handoff.md +30 -25
lanes/mergefix-r4.handoff.mdmodified+30 -25
| @@ -1,32 +1,37 @@ | |||
| 1 | # lane-mergefix r4 handoff | 1 | # lane-mergefix r4 handoff |
| 2 | 2 | ||
| 3 | -Tip: lane-mergefix (this commit). Only change is the `EC_LFPARAMS` debug rung. | 3 | +Tip: lane-mergefix 6bc2c8b (loop filter skip/pu_edge suppression + `blk_org_grid`). |
| 4 | +Read `lanes/mergefix-r4.report.md`. | ||
| 4 | 5 | ||
| 5 | -## Do not re-hunt: frame 1 is NOT a compound-prediction defect | 6 | +## Do not re-hunt: decode-order frame 1 is NOT a compound-prediction defect |
| 6 | -Frame 1 pre-filter reconstruction is BIT-EXACT vs the oracle (0 px). The rung that showed | 7 | +Its pre-filter reconstruction is BIT-EXACT vs the oracle (0 px, both before and after |
| 7 | -it: our `EC_AV1_PREFILT_DUMP16` (cropped 192x68, u16 LE) vs aomdec `EC_AV1_PREFILT_DUMP` | 8 | +this round's fix). The r3 charter's "3376 px starting at row 0 col 64 = a 32x32 compound |
| 8 | -(cropped 192x68, u8). First differing prediction sample: NONE — there is none. | 9 | +skip block" was reading the GATE's frame numbering: the pixel gate compares SHOWN frames, |
| 9 | -The divergence appears at the POSTDEBLOCK rung: aomdec's `EC_AV1_POSTDEBLOCK_DUMP` is the | 10 | +so its "frame 1" is DECODE-order frame 2. |
| 10 | -mi-ALIGNED buffer (192x72 luma, 20736 bytes total), ours is the crop; crop to 68 rows | ||
| 11 | -before comparing or you will read garbage. Frame 1 postdeblock: 7244 differing px, first | ||
| 12 | -at row 0 col 0. Against the shared pre-filter picture libaom changes 718 px, we change | ||
| 13 | -7345 — we filter 6753 px libaom leaves alone. | ||
| 14 | 11 | ||
| 15 | -## r5 job | 12 | +## First differing prediction sample, and the rung that showed it |
| 16 | -1. Port spec 7.14.2 / libaom `set_lpf_parameters` suppression into `edge_params` | 13 | +Decode-order frame 2, pre-filter (rung: ours `EC_AV1_PREFILT_DUMP16` cropped 192x68 u16 LE |
| 17 | - (decode.rs ~13276, whose comment states the now-false invariant): | 14 | +vs aomdec `EC_AV1_PREFILT_DUMP` cropped 192x68 u8): |
| 18 | - filter only when `(curr_level || pv_lvl) && (!pv_skip || !curr_skipped || pu_edge)`, | 15 | +`row 0 col 97: ours 42, aomdec 8` (col 96 MATCHES). All 1306 differing px lie in the |
| 19 | - `curr_skipped = skip_txfm && is_inter`. | 16 | +single 32-px column band x=96..127, rows 0..63 -- one 32-wide block column. Frames 0 and 1 |
| 20 | -2. Check the inter/var-tx LF TU grid: `EC_TXGRID_TRACE=1` shows all of frame 1's | 17 | +are 0 px at this rung. That band is the whole remaining straddling-gate failure. |
| 21 | - `mi_row=16` publishing `w_mi=2 h_mi=2 tx_px=8` 8x8 TUs; libaom gives a skip-inter block | 18 | + |
| 22 | - one whole-block `max_txsize_rect_lookup` TU. | 19 | +## Second, smaller residue (open) |
| 23 | -Levels are ruled out: `EC_LFPARAMS=1` (new) prints frame 1 as | 20 | +Decode frame 1 post-deblock is 177 px off ON THE SHIPPED TREE, all in rows 61-67 |
| 24 | -`level=[20,16,20,26] sharpness=0 delta_enabled=true delta_update=false | 21 | +(bottom straddling band), cols 130-191: 143 px we filter that libaom leaves alone, 15 the |
| 25 | -ref_deltas=[1,0,0,0,-1,0,-1,-1] mode_deltas=[0,0]`; max |delta| vs pre-filter is 10 in | 22 | +other way -- a y=64 horizontal-edge decision in the partial last mi row. Numbers this |
| 26 | -BOTH decoders, so it is edge COUNT, not edge strength. | 23 | +round: 7244 (before the fix) -> 255 (suppression without `pu_edge`) -> 177 (shipped). |
| 24 | + | ||
| 25 | +## Rung gotchas (cost this round two runs) | ||
| 26 | +- aomdec `EC_AV1_PREFILT_DUMP16`/`POSTDEBLOCK_DUMP16` SEGFAULT on an 8-bit stream; use the | ||
| 27 | + 8-bit rungs there. | ||
| 28 | +- aomdec `EC_AV1_POSTDEBLOCK_DUMP` writes the mi-ALIGNED buffer (192x72 luma, 20736 bytes | ||
| 29 | + total) while its `EC_AV1_PREFILT_DUMP` writes the crop (192x68, 19584): crop before diffing. | ||
| 30 | +- New rung `EC_LFPARAMS=1` prints the frame's loop filter params; frame 1 is | ||
| 31 | + `level=[20,16,20,26] delta_enabled=true delta_update=false ref_deltas=[1,0,0,0,-1,0,-1,-1]`, | ||
| 32 | + so levels are NOT the defect. | ||
| 27 | 33 | ||
| 28 | ## Environment | 34 | ## Environment |
| 29 | Stream `~/.cache/mergefix-tmp/str61.obu` md5 a14892ed0ba88b6ad2b566e251ea2d33 (`mkstr.sh`); | 35 | Stream `~/.cache/mergefix-tmp/str61.obu` md5 a14892ed0ba88b6ad2b566e251ea2d33 (`mkstr.sh`); |
| 30 | -instrumented oracle `~/.cache/mergefix-tmp/aom-build/aomdec`. Note `EC_AV1_PREFILT_DUMP16` | 36 | +oracle `~/.cache/mergefix-tmp/aom-build/aomdec`; artifacts `~/.cache/mergefix-tmp/r4_*`; |
| 31 | -SEGFAULTS on this 8-bit stream in aomdec — use the 8-bit rung there. | 37 | +gate logs `$HOME/.cache/mergefix-r4-gates.log`, `$HOME/.cache/mergefix-r4-sib.log`. |
| 32 | -Artifacts: `~/.cache/mergefix-tmp/r4_{pre,ours,aom,apd}.f*`, `r4_lfgrid.txt`. | ||