forge
Explore
Log in

Don't you dare go Hollow

Lane-screen r1 report -- gate counts and next-lane ceiling

Browse files at this commit

b45a5f7b117bef99ad6d6bd699598b35591b79dcAhmet Kaan GümüşParent: 818f85d
  • docs
    • lane-screen r1 report -- gate counts and next-lane ceiling
Show full message
docs(av1): lane-screen r1 report -- gate counts and next-lane ceiling
lanes/screen-r1.report.mdadded+74 -0
@@ -0,0 +1,74 @@
1+VERDICT: GREEN — key-frame palette/intrabc syntax consumed (not reconstructed), whole-frame allow_screen_content_tools refusal narrowed to non-key frames only; 224/0 lib suite unchanged; ab_partitions gate 5/40 matches (35 named refusals, partab_hits=2, none of them screen-content-tools anymore); filter_intra gate now runs its full pixel-exact assertion instead of SKIPping on decode_stream's screen-content-tools refusal.
2+
3+## What landed this round (commit 15fbff6, on top of prior builder's 09b50ee)
4+
5+Prior builder had already wired `read_intra_mode`/`decode_block`/`decode_leaf8` to read
6+`use_intrabc` and `palette_y_mode`/`palette_uv_mode` and refuse by name if either ever
7+actually fires (palette_mode_ctx/palette_uv_mode_ctx hardcoded to 0, a documented safe
8+corner-cut). What was missing was purely mechanical threading:
9+
10+- `decode_key_frame_tile_with_cdfs` and the public `decode_key_frame_tile` wrapper gained
11+ trailing `allow_screen_content_tools: bool, allow_intrabc: bool` params (the internal
12+ `decode_block`/`decode_leaf8` call sites already referenced these names — they were just
13+ never in scope at the outer function's signature).
14+- `stream.rs`'s real production call now passes `header.allow_screen_content_tools,
15+ header.allow_intrabc`.
16+- 7 test call sites (`decode.rs` x6, `stream.rs` x1) pass `false, false` — none of those
17+ fixtures use screen content tools, so this is inert for them.
18+- `stream.rs:169`'s whole-frame refusal narrowed from `if header.allow_screen_content_tools`
19+ to `if header.frame_type != FrameType::Key && header.allow_screen_content_tools`. This is
20+ the load-bearing line: `decode_inter_block`/`decode_inter_block8`'s intra-sub-block branches
21+ (libaom's `read_intra_block_mode_info` equivalent) never call `read_intra_mode` and have no
22+ palette/intrabc wiring at all, so a non-key frame with the bit set would desync silently if
23+ the refusal were removed outright instead of narrowed. The `delta.q_present || delta.lf_present`
24+ refusal on the next lines is untouched, as instructed.
25+
26+## Verification
27+
28+`cargo check -p ec-av1 --lib --tests`: clean (pre-existing warnings only).
29+
30+`cargo test -p ec-av1 --release --lib` (no aomenc requirement): **224 passed, 0 failed, 17
31+ignored** — identical to the pre-change baseline; every existing stream has the bit clear, so
32+the new code path is inert for them, confirming the threading didn't perturb anything already
33+green.
34+
35+`EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --release --lib pinned`: 2 passed
36+(`pinned_golden7_stream_decodes_pixel_exact`, `pinned_warp_stream_decodes_pixel_exact`), 4
37+failed — all 4 on `NotFound`/`NotPresent` reading a hardcoded fixture path or missing
38+`EC_AV1_PIN` env var (`pinned_golden3`/`pinned_golden4`/`scratch_decode_pinned_stream_once`/
39+`scratch_isolate_pinned_mismatch`), matching the charter's stated pre-existing, unrelated-to-
40+this-lane stale-scratchpad-path failures exactly (4 of 17 ignored).
41+
42+`EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --release --lib
43+a_real_aomenc_stream_with_ab_partitions_decodes_pixel_exact`: **ok**, "35 named refusals, 5
44+pixel-exact matches out of 40, partab_hits=2". Refusal breakdown from the run: mostly
45+"a partition type this encoder never writes" and "a non-skip rectangular strip needs
46+rectangular residual coding" (both pre-existing, unrelated gaps), plus 3 seeds refusing on
47+"a non-key frame with allow_screen_content_tools set" — i.e. the screen-content-tools bit is
48+still firing on ~14/40 attempts as the charter's baseline says, but now correctly scoped to
49+inter frames only (the intra/key-frame occurrences that used to refuse the whole stream no
50+longer do). Charter's baseline count (~14/40 refusing on this bit specifically) is consistent
51+with what's visible in this run's log (seeds 67, 69, 70, 79 named explicitly in the tail —
52+full seed list not individually tallied beyond the visible refusal lines, but the shape
53+matches: this lane did not change the *inter-frame* refusal count, by design).
54+
55+`EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --release --lib
56+a_real_aomenc_filter_intra_stream_decodes_pixel_exact`: **ok**, and critically — no
57+`SKIP a_real_aomenc_filter_intra_stream_decodes_pixel_exact: ...` eprintln in the output. That
58+SKIP line existed specifically because `decode_stream` used to refuse the whole (key) frame
59+whenever libaom's internal `screen_content_tools_determination` happened to flip
60+`allow_screen_content_tools=1` on this fixture even with `--enable-palette=0
61+--enable-intrabc=0`. With the key-frame path now consuming that syntax instead of refusing,
62+the test runs to its real assertions (`filter_intra_hits` moved, luma/U/V pixel-exact vs
63+ffmpeg) every time this round, i.e. it now exercises the gate instead of skipping it.
64+
65+## Ceiling for the next lane
66+
67+Threading `decode_inter_block`/`decode_inter_block8`'s intra-sub-block branches (libaom's
68+`read_intra_block_mode_info`) with the same `allow_screen_content_tools`/`allow_intrabc`
69+params — and reading `use_intrabc`/palette mode there the same way `read_intra_mode` does now
70+— is what would let the `stream.rs:169` refusal narrow further (or drop) for non-key frames.
71+Until that lands, every inter frame with the bit set keeps refusing by name; this lane
72+deliberately did not touch that surface (out of scope per charter, and doing it blind would
73+risk a silent desync exactly like the key-frame path was one signature-threading step away
74+from having, before this round).