Lane-realworld r5 report
Browse files at this commit3922e0a722fe4a4fadfa0d23f9dc4b9898d65bfeParent: 46e63c7- docs
- lane-realworld r5 report
1 changed file +103 -0
- lanes/realworld-r5.report.md +103 -0
lanes/realworld-r5.report.mdadded+103 -0
| @@ -0,0 +1,103 @@ | |||
| 1 | +# lane-realworld r5 report | ||
| 2 | + | ||
| 3 | +VERDICT: Job 1 (get dbfd67c green) DONE, committed (70372d1, c185755). | ||
| 4 | +Job 2 (delta_q/delta_lf) both halves now read and applied, committed | ||
| 5 | +(70372d1 for delta_q's compile-completion, a830d87 for delta_lf's new | ||
| 6 | +deblocker path). Job 2's gate (charter step 4, a real aomenc stream with | ||
| 7 | +`--deltaq-mode=`/`--aq-mode` proving live firing) is UNSTARTED -- next | ||
| 8 | +lever, see below. | ||
| 9 | + | ||
| 10 | +## Job 1 -- dbfd67c green (70372d1, c185755) | ||
| 11 | +r4 had wired `delta: DeltaParams` all the way through | ||
| 12 | +`decode_key_frame_tile_with_cdfs` (including its 2 stream.rs call sites, | ||
| 13 | +its own tile-loop `DELTA_Q_PRESENT`/`DELTA_Q_RES`/`CURRENT_Q_IDX` reset) | ||
| 14 | +but never touched `decode_inter_frame_tile_with_cdfs`'s own signature -- | ||
| 15 | +its one public wrapper (`decode_inter_frame_tile`) was already passing | ||
| 16 | +`DeltaParams::default()` as an extra, unaccepted argument. Added the | ||
| 17 | +`delta: DeltaParams` param to `decode_inter_frame_tile_with_cdfs`, the | ||
| 18 | +matching `DELTA_Q_PRESENT`/`DELTA_Q_RES`/`CURRENT_Q_IDX` reset at its own | ||
| 19 | +single-tile entry point (mirroring the key-frame per-tile reset), and | ||
| 20 | +`header.delta` at stream.rs's inter-frame call site plus its test-only | ||
| 21 | +key-frame call site (stream.rs:6179, a `#[cfg(test)]` path r4 missed). | ||
| 22 | +Narrowed the whole-frame refusal from `q_present || lf_present` to | ||
| 23 | +`lf_present` alone (delta_q was already genuinely read on both frame | ||
| 24 | +types once this compiled), and updated `refusal_inventory.rs`'s | ||
| 25 | +`REFUSALS` list to the narrowed string. `EC_AV1_REQUIRE_AOMENC=1 cargo | ||
| 26 | +test -p ec-av1 --lib -j4`: **242 passed, 0 failed, 17 ignored** (r3's | ||
| 27 | +234/0/17 plus lane-tiles/lane-realworld merges already on `main` before | ||
| 28 | +this worktree branched). | ||
| 29 | + | ||
| 30 | +## Job 2 -- delta_lf's new deblocker path (a830d87) | ||
| 31 | +Exactly the piece r3 flagged as needing a real design pass, not a narrow | ||
| 32 | +substitution: | ||
| 33 | + | ||
| 34 | +- `CURRENT_DELTA_LF: Cell<[i32; 4]>` (spec `DeltaLF[FRAME_LF_COUNT]`), | ||
| 35 | + reset to `[0; 4]` at the top of every tile in both | ||
| 36 | + `decode_key_frame_tile_with_cdfs` and `decode_inter_frame_tile_with_cdfs` | ||
| 37 | + (mirroring `CURRENT_Q_IDX`'s own per-tile reset), plus | ||
| 38 | + `DELTA_LF_PRESENT`/`DELTA_LF_RES`/`DELTA_LF_MULTI` set from | ||
| 39 | + `header.delta` the same way `DELTA_Q_PRESENT`/`DELTA_Q_RES` already were. | ||
| 40 | +- `maybe_read_delta_lf` (decode.rs, next to `maybe_read_delta_q`): same | ||
| 41 | + 4-symbol-CDF-then-Golomb-tail-then-sign shape, called right after | ||
| 42 | + `maybe_read_delta_q` at all 4 existing block-decode call sites (spec | ||
| 43 | + order `delta_q -> delta_lf`). Loops over 4 planes/directions when | ||
| 44 | + `delta_lf_multi` (reading `cdfs.delta_lf_multi[i]`, r4's already-wired | ||
| 45 | + CDF), or reads once into index 0 against `cdfs.delta_lf` otherwise. | ||
| 46 | + `DELTA_LF_HITS`/`delta_lf_hits()` mirror `DELTA_Q_HITS` for a future | ||
| 47 | + gate's firing count. | ||
| 48 | +- New `Neighbours::delta_lf_grid: Vec<[i8; 4]>` field, snapshotted per | ||
| 49 | + 4x4-mi block in `fill_lf_grid_rect` (the one function every existing | ||
| 50 | + `fill_lf_grid`/`fill_lf_grid_rect` call site already routes through, so | ||
| 51 | + no call-site changes needed) -- `!delta_lf_multi` mode broadcasts | ||
| 52 | + `DeltaLF[0]` into all 4 slots at write time, so `lf_level`'s reader | ||
| 53 | + never needs to know which mode produced the value, matching | ||
| 54 | + `ref_grid`'s existing snapshot pattern exactly. | ||
| 55 | +- `lf_level` takes a new `delta_lf: i32` param, applied to the base level | ||
| 56 | + (`clamp(0, 63)`) *before* the existing `ref_deltas`/`mode_deltas` | ||
| 57 | + scaling and regardless of `lf.delta_enabled` (spec 7.14.4: that flag | ||
| 58 | + only gates the ref/mode terms, not `DeltaLF`). `edge_params` looks up | ||
| 59 | + `delta_lf_grid` at both the current and previous mi position via a new | ||
| 60 | + `plane_idx/dir -> FRAME_LF_COUNT` index map (`0`/`1` for Y | ||
| 61 | + vertical/horizontal, `2`/`3` for U/V), the same two-position lookup | ||
| 62 | + pattern it already uses for `ref_grid`. | ||
| 63 | +- Removed the stream.rs `delta_lf_present` refusal entirely (both halves | ||
| 64 | + of Job 2 are now read and applied). `refusal_inventory.rs`'s `REFUSALS` | ||
| 65 | + list: removed `"a frame with delta_lf_present set (this decoder never | ||
| 66 | + applies per-superblock loop-filter deltas)"`, no replacement string. | ||
| 67 | + | ||
| 68 | +`EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -j4`: **242 passed, 0 | ||
| 69 | +failed, 17 ignored** -- unchanged from Job 1's number, because no | ||
| 70 | +existing fixture sets `delta_lf_present`. This means the new deblocker | ||
| 71 | +path is **code-verified against the spec/libaom read shape**, not yet | ||
| 72 | +gate-proven against a real aomenc stream that actually exercises it. | ||
| 73 | + | ||
| 74 | +## Refusal strings changed this lane (verbatim) | ||
| 75 | +- Removed: `"a frame with delta_q_present or delta_lf_present set (this | ||
| 76 | + decoder never reads the per-superblock delta symbols)"`. | ||
| 77 | +- Added then removed within this same lane (never landed on `main`): | ||
| 78 | + `"a frame with delta_lf_present set (this decoder never applies | ||
| 79 | + per-superblock loop-filter deltas)"` -- present after commit 70372d1, | ||
| 80 | + removed by commit a830d87. Net effect for merge purposes: the old | ||
| 81 | + combined refusal is gone, no new refusal string replaces it. | ||
| 82 | + | ||
| 83 | +## Next lever -- charter step 4, the gate | ||
| 84 | +Not started this round (turn budget spent on Jobs 1-2's design/wiring). | ||
| 85 | +Needed: a real aomenc stream with `--deltaq-mode=1` or `--aq-mode=1` | ||
| 86 | +(reliably sets `delta_q_present`) plus a recipe that also sets | ||
| 87 | +`delta_lf_present`/`delta_lf_multi` (aomenc's `--deltaq-mode` alone may | ||
| 88 | +not set `lf_present` -- needs checking against aomenc's own CLI, not | ||
| 89 | +assumed), gradients source through `gradients_source`, `--threads=1 | ||
| 90 | +--row-mt=0 --sb-size=64`, MORE THAN ONE SUPERBLOCK (128x64+), and a | ||
| 91 | +hard-asserted `delta_q_hits()`/`delta_lf_hits()` firing count in an | ||
| 92 | +attempt loop (never a printed SKIP on decode error, per the charter's | ||
| 93 | +class reminder). `DELTA_Q_HITS`/`DELTA_LF_HITS`/`delta_q_hits()`/ | ||
| 94 | +`delta_lf_hits()` are already in place from this round's work, ready for | ||
| 95 | +that gate to call. | ||
| 96 | + | ||
| 97 | +## Merge note | ||
| 98 | +`gate_coverage.rs`/`refusal_inventory.rs` guards this worktree doesn't | ||
| 99 | +carry: `refusal_inventory.rs`'s own `REFUSALS` list was already updated | ||
| 100 | +in this worktree (main-tracked file), so the merge just needs the diff | ||
| 101 | +as-is -- no separate main-only edit required for the refusal list itself. | ||
| 102 | +`gate_coverage.rs` (main-only) will need the eventual gate test's name | ||
| 103 | +added when Job 2's gate lands. | ||