Lane-tiles r7 report
Browse files at this commit51836370d94f3bc10dc9e938e413304bf72d709fParent: cd5068f- docs
- lane-tiles r7 report
1 changed file +91 -0
- lanes/tiles-r7.report.md +91 -0
lanes/tiles-r7.report.mdadded+91 -0
| @@ -0,0 +1,91 @@ | ||
| 1 | +VERDICT: PARTIAL -- green, stage 1 (order) + stage 2 landed, stage 3 not started (turn budget). | |
| 2 | + | |
| 3 | +## Stage 1 -- gated r6's inter tile-loop lift | |
| 4 | +Added `a_real_aomenc_stream_with_two_tile_columns_and_an_inter_frame_decodes_pixel_exact` | |
| 5 | +(`crates/ec-av1/src/stream.rs`): `--sb-size=64`, `--tile-columns=1` (2 | |
| 6 | +columns), `--loopfilter-control=0`, `--limit=2 --kf-max-dist=1000` so frame 1 | |
| 7 | +is a genuine inter frame, `gradients_source`'s default `speed=0.01` rotation | |
| 8 | +gives real motion so the tile-bounded MV stack (`MiGrid::set_tile_bounds`) | |
| 9 | +actually has work to do across the boundary. Confirms via a header parse that | |
| 10 | +aomenc really produced a >1-tile-column inter frame (not a collapsed/kf | |
| 11 | +fallback) before trusting a match. 20/20 pixel-exact vs ffmpeg, 0 named | |
| 12 | +refusals, hard `tile_hits > frames` assert. | |
| 13 | + | |
| 14 | +Building this gate found `decode_inter_frame_tile_with_cdfs`'s per-tile loop | |
| 15 | +(r6, commit 8899fc1) never incremented `TILE_HITS` -- only the key-frame loop | |
| 16 | +did (`decode.rs:4928`). Without the fix the gate's own tile-count assert | |
| 17 | +would have been vacuously blind on the inter path (it failed first-run: | |
| 18 | +"tile_hits delta was 2, expected > 2" -- both hits were from frame 0's key | |
| 19 | +tiles, frame 1 contributed zero visible signal despite decoding correctly). | |
| 20 | +Fixed by adding the same `TILE_HITS.with(|c| c.set(c.get() + 1));` call at | |
| 21 | +the equivalent point in the inter loop (`decode.rs:9814`, right after | |
| 22 | +`grid.set_tile_bounds`). Re-ran: 20/20 pixel-exact, `tile_hits` counted | |
| 23 | +correctly. | |
| 24 | + | |
| 25 | +Committed bd1c01f. | |
| 26 | + | |
| 27 | +## Stage 2 -- lifted >2-columns and multi-tile-loop-filter refusals | |
| 28 | +Charter order: re-run the key-frame 2-column gate | |
| 29 | +(`a_real_aomenc_stream_with_two_tile_columns_decodes_pixel_exact`) with | |
| 30 | +`--loopfilter-control=0` removed. Did so: 20/20 pixel-exact, confirming | |
| 31 | +`PlaneBuf`'s `tile_x1`/`tile_y1` clamps (real values at every call site since | |
| 32 | +r6) already make real deblocking across a tile boundary correct. Made this | |
| 33 | +permanent (flag removed for real, not just the trial run) and updated the | |
| 34 | +gate's doc comment. | |
| 35 | + | |
| 36 | +That gate's own known-gap note said this only proves the boundary-is-also- | |
| 37 | +the-frame-edge case (2 columns, tile 1 = right edge), so also added | |
| 38 | +`a_real_aomenc_stream_with_four_tile_columns_decodes_pixel_exact` | |
| 39 | +(`--tile-columns=2` -> `TileCols=4`, 256x64 = four 64px superblocks, loop | |
| 40 | +filter ON, no bypass of the flag): proves an *interior* tile boundary and the | |
| 41 | +`>2 columns` case in one shot. 20/20 pixel-exact, 0 refusals. | |
| 42 | + | |
| 43 | +With both proven, lifted the `cols > 2` and `cols > 1 && loop_filter_on` | |
| 44 | +refusals from `decode_stream` (`crates/ec-av1/src/stream.rs`) -- they were, | |
| 45 | +per r5's note, the same underlying `PlaneBuf` reach-bound gap, now closed on | |
| 46 | +both fronts. Updated `refusal_inventory.rs`'s pinned list to match (both | |
| 47 | +strings removed). Tile *rows* stay refused (`tile_info.rows > 1`) -- | |
| 48 | +unproven, untouched. | |
| 49 | + | |
| 50 | +Lifted refusals (verbatim, removed from `stream.rs` and | |
| 51 | +`refusal_inventory.rs`'s pinned list): | |
| 52 | +- "a frame with more than two tile columns (a non-last column's right-edge reach bound past column 0 is unimplemented)" | |
| 53 | +- "a multi-tile frame with loop filtering enabled (deblocking crosses tile boundaries by spec default; PlaneBuf's tile origin does not clip a non-last column's right-edge reach)" | |
| 54 | + | |
| 55 | +Committed 325e8e7. | |
| 56 | + | |
| 57 | +## Stage 3 -- NOT STARTED | |
| 58 | +Tile rows, non-uniform tile spacing, several tile-group OBUs per frame, and | |
| 59 | +`context_update_tile_id != 0` on a non-tile-0 stream: none attempted this | |
| 60 | +round (turn budget). The `tile_info.rows > 1` refusal is untouched and still | |
| 61 | +guards tile rows correctly (no false claim made about it). | |
| 62 | +deferred: tile-row gate + lift, non-uniform tile spacing, multi-tile-group | |
| 63 | +OBU handling, `context_update_tile_id != 0` proof -- unblocks with a fresh | |
| 64 | +turn budget; recipe likely `--tile-rows=1` mirroring this round's | |
| 65 | +`--tile-columns` approach, gated the same way (bypass gate first, then | |
| 66 | +`decode_stream`-level gate, then lift). | |
| 67 | + | |
| 68 | +## Files changed | |
| 69 | +- `crates/ec-av1/src/decode.rs` -- `TILE_HITS` increment added to the inter | |
| 70 | + per-tile loop (was silently missing, made the stage-1 gate's own assert | |
| 71 | + meaningless until fixed) | |
| 72 | +- `crates/ec-av1/src/stream.rs` -- 3 new gates (inter+2-col, | |
| 73 | + 4-col+loopfilter-on, plus doc updates on the 2 pre-existing gates), the | |
| 74 | + `cols > 2` and multi-tile-loop-filter refusals removed from | |
| 75 | + `decode_stream`, `loop_filter_on` local removed (now unused) | |
| 76 | +- `crates/ec-av1/src/refusal_inventory.rs` -- 2 pinned strings removed to | |
| 77 | + match | |
| 78 | + | |
| 79 | +## Commits | |
| 80 | +- bd1c01f test(av1): gate r6's inter tile-loop lift -- real >1-tile-column INTER stream | |
| 81 | +- 325e8e7 feat(av1): lift >2-tile-column and multi-tile-loop-filter refusals | |
| 82 | + | |
| 83 | +Both `cargo check -p ec-av1 --tests` clean and the scoped subset | |
| 84 | +(`tile mvstack refusal_inventory gate_coverage`, `EC_AV1_REQUIRE_AOMENC=1`) | |
| 85 | +green: 78/0 after stage 2 (was 77/0 after stage 1). `refusal_inventory`'s own | |
| 86 | +"capability_claims_are_declared_not_scattered" and | |
| 87 | +"the_decode_path_refuses_exactly_the_listed_cases" tests both pass, so the | |
| 88 | +pinned-list edits match the live refusal set exactly. | |
| 89 | + | |
| 90 | +Never pushed, never merged, never touched main, worked only inside | |
| 91 | +edith_codecs-tiles. |