forge
Explore
Log in

Don't you dare go Hollow

Lane-palette2 r4 charter -- rect-strip palette on a clean base

Browse files at this commit

ddf6af5b4683a6a5f648334599700457320e7490Ahmet Kaan GümüşParent: d21774e
  • docs
    • lane-palette2 r4 charter -- rect-strip palette on a clean base
Show full message
docs(av1): lane-palette2 r4 charter -- rect-strip palette on a clean base
lanes/palette2-r4.charter.mdadded+52 -0
@@ -0,0 +1,52 @@
1+# lane-palette2 r4 — palette on a rectangular strip, from a clean base
2+
3+At main (8440024). **I reset this branch to main.** r3's in-flight edits are
4+preserved at tag `palette2-r3-wip` if you want to look, but they conflicted with
5+the u16 sample widen that has since landed, and they were mid-mechanical-edit
6+(threading `allow_intrabc` through four call sites) rather than hard-won
7+knowledge. Start fresh; re-doing that plumbing on top of the widen is cheaper
8+than untangling it.
9+
10+Read `lanes/palette2-r1.charter.md` for the lane's scope. Step 1 (UV palette) is
11+CLOSED and merged. This round is step 2:
12+
13+ "a HORZ/VERT intra strip in a screen-content frame
14+ (palette syntax is consumed for square blocks only)"
15+
16+`smptebars` and `rgbtestsrc` at plain default aomenc settings both stop exactly
17+there — that is measured, not assumed, so a real gate is easy to build.
18+
19+`palette_bsize_ctx` and the palette size/context derivation assume a square
20+block; libaom derives both from width AND height. Check what it actually does
21+for a rect block before adapting the square path. Two classes apply: a table
22+narrowed to a pinned row breaks when its indexing field moves
23+([[cdf-row-held-constant]]), and a neighbour context read from ONE cell is right
24+only under uniform block size — a strip needs a gathered span
25+([[context-read-from-one-cell]]).
26+
27+Note what a sibling lane just found in the same neighbourhood: libaom indexes
28+`av1_nz_map_ctx_offset` by the RAW, un-adjusted `tx_size`, and the 32x64/64x32
29+tables genuinely differ from the square one. If your rect-strip work touches a
30+size-indexed table, check whether libaom indexes it by the raw or the adjusted
31+size before assuming.
32+
33+Order: gate FIRST below `decode_stream`, hard-asserting the rect-strip palette
34+path fired; then the implementation; then lift the refusal and update
35+`refusal_inventory.rs` in the SAME commit. Declare every new refusal string you
36+add — `refusal_inventory`'s own test fails the build otherwise, and r3 left two
37+undeclared for me to clean up.
38+
39+Step 3 ("a palette block with a split luma transform", reached by `life`) only
40+if step 2 is committed green with budget to spare.
41+
42+## Budget discipline
43+75 turns, no reset on resume. At about turn 55, stop starting new work: commit
44+what is green and write your report.
45+
46+Hard rules: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-palette2`; foreground
47+`nice -n 19 cargo ... -j4`; every `cargo test` a timeout >= 600000 ms; ffmpeg
48+generates bounded with `-t`; `EC_AV1_REQUIRE_AOMENC=1`; aomenc
49+`--threads=1 --row-mt=0 --sb-size=64`. Oracle rung 12 is yours; the oracle is
50+SHARED, env-gated rungs only. Sibling worktrees have live agents — never build in
51+or edit them. Never push, never merge into main; I handle merges. End with
52+`lanes/palette2-r4.report.md`, VERDICT on line 1.