forge
Explore
Log in

Don't you dare go Hollow

Lane-rect16 r1 charter -- HORZ/VERT arms below 16x16, the mandelbrot blocker

Browse files at this commit

e7bd50d29e4def607ea9f4d321f07a596671a296Ahmet Kaan GümüşParent: 0bdb5a0
  • docs
    • lane-rect16 r1 charter -- HORZ/VERT arms below 16x16, the mandelbrot blocker
Show full message
docs(av1): lane-rect16 r1 charter -- HORZ/VERT arms below 16x16, the mandelbrot blocker
lanes/rect16-r1.charter.mdadded+54 -0
@@ -0,0 +1,54 @@
1+# lane-rect16 r1 — rectangular partitions below 16x16
2+
3+Fresh lane off main (170a5a3).
4+
5+## Why this lane exists — measured
6+Plain default-settings aomenc over lavfi `mandelbrot`
7+(`--cpu-used=4 --end-usage=q --cq-level=32`, no `--enable-*` flags, 192x128)
8+refuses on frame 0 with **"a partition below 16x16 other than a clean split"**.
9+That refusal used to end "(this encoder never writes one)"; I reworded it on
10+main at e067e32 when this probe disproved it. Reproduce it yourself first —
11+`cargo run -p ec-av1 --example decode_probe -- <stream.obu>`, extracting with
12+`ffmpeg -i <ivf> -c:v copy -f obu` — so you are looking at a live failure, not
13+my sentence about one.
14+
15+## Scope
16+The HORZ/VERT arms at 8x8 and below: `PARTITION_HORZ`/`PARTITION_VERT` under a
17+16x16 parent, and whatever `decode_block` needs to code an 8x4/4x8 leaf. A
18+sibling lane (lane-sbpart) owns the same shape at 64x64 and is mid-bisect on a
19+luma mismatch there — **do not touch its worktree**, but do read
20+`git log`/`git show` for `decode_block_rect` and `decode_block_rect64` first:
21+the rectangular transform, scan and context machinery already exists, and this
22+may be a wiring job rather than a new primitive. If so, say that plainly instead
23+of building a second copy ([[square-only-transform-ceiling]]).
24+
25+Two classes to keep in view, both paid for by this repo:
26+- A rectangular scan's weight or step can use the CROSS axis; square candidates
27+ hide every axis swap, so sweep the transposed copy in the SAME round
28+ ([[scan-weights-cross-axis]]).
29+- A neighbour context read from ONE cell is right only under uniform block size;
30+ strips need a gathered span ([[context-read-from-one-cell]]).
31+
32+## Order
33+1. Reproduce the refusal, and identify the exact failing BLOCK — size, position,
34+ partition symbol — not just the frame's configuration. A refusal written from
35+ a mismatching frame's header names a correlate, not the defect
36+ ([[refusal-names-a-correlate]]).
37+2. Gate first, below `decode_stream`, hard-asserting the new partition arm fires.
38+3. Implement, bisecting any pixel mismatch with a range ladder against the
39+ oracle (compare msac RANGE, never `tell()`).
40+4. Lift the refusal and update `refusal_inventory.rs` in the same commit, only
41+ once the gate is pixel-exact.
42+
43+## Budget discipline
44+75 turns, and they do NOT reset if you are resumed. At about turn 55, stop
45+starting new work: commit what is green and write your report.
46+
47+Hard rules: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-rect16`; foreground
48+`nice -n 19 cargo ... -j4`; every `cargo test` a timeout >= 600000 ms; fixtures
49+through `gradients_source(seed, w, h, tail)` where synthetic will do; every
50+ffmpeg generate bounded with `-t`; `EC_AV1_REQUIRE_AOMENC=1`; aomenc
51+`--threads=1 --row-mt=0 --sb-size=64`. Oracle rungs 6, 7, 8, 8b are taken — take
52+10 (9 is spoken for); the oracle is SHARED, env-gated rungs only. Sibling
53+worktrees have live agents — never build in or edit them. Never push, never merge
54+into main. End with `lanes/rect16-r1.report.md`, VERDICT on line 1.