forge
Explore
Log in

Don't you dare go Hollow

Lane-tiles r4 charter -- lift the multi-tile refusal

Browse files at this commit

d1f3af8c04cfb39c7f28dc35fff3c813d42cad8aAhmet Kaan GümüşParent: ff1bf26
  • docs
    • lane-tiles r4 charter -- lift the multi-tile refusal
Show full message
docs(av1): lane-tiles r4 charter -- lift the multi-tile refusal
lanes/tiles-r4.charter.mdadded+47 -0
@@ -0,0 +1,47 @@
1+# lane-tiles r4 — lift the multi-tile refusal
2+
3+At 477f972. Read `lanes/tiles-r3.report.md`.
4+
5+## State
6+The per-tile loop works and is proven: gate
7+`a_real_aomenc_stream_with_two_tile_columns_decodes_pixel_exact` (stream.rs
8+~5484) decodes 20/20 pixel-exact with `tile_hits()` hard-asserted `> 1`, by
9+calling `decode_key_frame_tile_with_cdfs(&[tile0, tile1], ...)` directly and
10+bypassing the still-live refusal in `decode_stream`.
11+
12+Facts r3 paid for: `--sb-size=64` is required (this decoder hardcodes 64px
13+superblocks; aomenc's default 128px makes a 128x64 frame a single superblock
14+with nothing to split). `--loopfilter-control=0` is required *for now* because
15+deblocking crosses tile boundaries by spec default while `PlaneBuf`'s
16+`tile_x0`/`tile_y0` clip left/top reach only. And a trap that produced a FALSE
17+PASS: `Tile::offset` is relative to the slice handed to `parse_obu`, not
18+absolute — forgetting to add `obu_offset` back decoded flat all-skip DC garbage
19+that compared "equal" instead of erroring.
20+
21+## Your job
22+1. Read `loop_filter_across_tiles_enabled` in `ec-av1-syntax`'s header parse —
23+ grep it first, it may not be parsed at all. Real multi-tile streams reaching
24+ `decode_stream` get no `--loopfilter-control=0` escape hatch, so this
25+ question has to be answered before the refusal comes off.
26+2. Thread a real `tile_bufs: Vec<&[u8]>` through `decode_stream`'s key-frame AND
27+ inter-frame tile-decode call sites (both currently hardcode
28+ `&[tile_bytes]`), mirroring r3's `obu_offset`-corrected extraction.
29+3. Lift the `cols > 1 || rows > 1` refusal for the cases you can prove, and
30+ refuse the rest BY NAME with an accurate string. Re-run r3's gate through
31+ `decode_stream` itself, and drop `--loopfilter-control=0` from it once the
32+ crossing question is resolved to see whether it still holds. COMMIT.
33+4. Then tile rows, non-uniform spacing, inter frames (tile origin into
34+ `mvstack.rs`), several tile-group OBUs, and `context_update_tile_id != 0`.
35+ Also still open: a non-last tile column's right-edge reach bound is
36+ unimplemented (fine for 2 columns, wrong for 3+).
37+
38+Merge note: main is at 06d29ee with `gate_coverage.rs` and `refusal_inventory.rs`,
39+which pin the aomenc tools no gate exercises and every decode-path refusal
40+string — including the multi-tile refusal you are here to remove. Report every
41+refusal string you add, rename or remove, verbatim.
42+
43+Hard rules: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-tiles`; foreground
44+`nice -n 19 cargo ... -j4`; every `cargo test` a timeout >= 600000 ms. Sibling
45+worktrees have live agents — never build in or edit them. Never push, never
46+merge, never touch `main`. 75-turn cap, does not reset: COMMIT AT EVERY GREEN
47+STEP. End with `lanes/tiles-r4.report.md`, VERDICT on line 1.