edith_codecs
Clone
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
lane-ab32 r1 — the 32-level AB partitions were already decoded; what was missing was the gate
Charter premise: STALE (re-measured, not assumed)
The charter said ReelC's head stops at refusal_inventory.rs:44 "a 32x32 partition type this
decoder does not code (value=4)" = PARTITION_HORZ_A at 32x32, and that the four AB arms at
32x32 had to be written.
Both halves are false at main df5d630:
- All four INTRA arms exist (
crates/ec-av1/src/decode.rs, lane-part32 r1:PARTITION_HORZ_A~8972,HORZ_B~9047,VERT_A~9122,VERT_B~9197, each two 16x16 squares + one 32x16/16x32decode_block_rectstrip), and so do all four INTER twins (decode.rs32-level inter match, arms at +290/+678/+839/+1000 from 15011). The 32-level_ =>refusal now only covers values 8/9 (PARTITION_HORZ_4/VERT_4), which lane-tx64x16 owns (its 86226fe implements them). - ReelC's head does not reach that refusal:
EVIDENCE: reelchead.obu sha256 6eee19fdacec0630bfd64b1cbd8955151eee4992adc36743eb557455c9809245 | ffmpeg -t 0.4 -c:v copy -f obu + release decode_probe at df5d630 | REFUSED: unsupported: AV1 tile (a superblock-level 1:4 partition (PARTITION_HORZ_4/VERT_4 at 64x64, four 64x16/16x64 strips))reelc5.obu stops at the identical string. Both are lane-tx64x16 territory, not this lane's.
What WAS missing is the thing the charter's GATE section describes: nothing asserted the 32-level
AB arms ever fire. partab_hits is only SOFT-noted by the INTER AB gate (stream.rs ~7952: "zero
AB partitions fired this run ... sampling, not a regression"), and the four per-arm counters
lane-part32 added (intra_horz_a_hits .. intra_vert_b_hits) had NO consumer anywhere
(grep -rn intra_horz_a_hits crates/ec-av1/src = decode.rs only). Class
refusal-lifted-without-a-gate. That is what this round ships.
Files changed
crates/ec-av1/src/stream.rs— new gatea_real_aomenc_stream_with_a_32_level_ab_partition_decodes_pixel_exact(8-bit) and its 10-bit twina_real_aomenc_10bit_stream_with_a_32_level_ab_partition_decodes_pixel_exact; tool flags placed AFTER the base recipe (coordinator correction 2026-09-02: aomenc keeps the LAST occurrence of a repeated flag, not the first; nothing in these recipes is repeated, and reordering left every counter byte-identical -- see below); per-arm, per-attempt counter deltas summed only over attempts that decoded AND pixel-compared (classcounter-from-refused-stream); each ofHORZ_A_32/HORZ_B_32/VERT_A_32/VERT_B_32hard-asserted nonzero; Err tolerated only when the message contains "unsupported", and the four 32-level AB refusal strings (value=4..7) are explicitly FORBIDDEN.crates/ec-av1/src/stream.rsencode_10bit_gradients_seed— consumes and strips a--ec-fixture-noisepseudo-flag that addsnoise=alls=40:all_seed=<seed>to the lavfi source (explicit seed per COMMON). Needed because the smooth gradients fixture codes as PARTITION_NONE everywhere.crates/ec-av1/src/stream.rsten_bit_tool_gate— its Err arm tolerated ANY decode error as a "named refusal"; now asserts the message contains "unsupported" (COMMON rule), which every existing 10-bit gate still satisfies (suite totals below).
No decoder change: decode.rs is untouched this round.
Why the fixture carries noise (measured, not guessed)
First run: 16/16 attempts decoded pixel-exact, zero AB hits. The oracle says the encoder never wrote one — partition value histogram at BLOCK_32X32 (bsize=9) from the instrumented aomdec:
smooth gradients, cq45 : (this recipe, before noise) value=0/1/2 only
gradients+noise, cq16 : 33 value=0, 14 value=1, 17 value=2 <- still no AB
gradients+noise, cq45 : 4 value=0, 1 value=2, 28 value=3, 7 value=4, 6 value=5, 8 value=6, 10 value=7
EVIDENCE: /tmp/.../scratchpad/t.obu | aomenc (gate recipe) + EC_TRACE=1 aomdec | bsize=9 EC_PART_VAL values 4,5,6,7 present only with noise + cq-level=45
So the gate ships noise + cq-level=45; cq-level=16 would have been a vacuous gate.
Gate results
EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib a_real_aomenc_stream_with_a_32_level_ab_partition_decodes -- --nocapture
EVIDENCE: $HOME/.cache/ab32-suite.log | 16 seeds (LR_SEEDS 42..57), 256x256 key frame, --sb-size=64 --enable-ab-partitions=1 --enable-rect-partitions=1 --min-partition-size=16 --max-partition-size=32 | 16/16 attempts pixel-exact vs ffmpeg, HORZ_A_32=101 HORZ_B_32=118 VERT_A_32=71 VERT_B_32=80, 0 named refusals
EVIDENCE: $HOME/.cache/ab32-suite.log | same recipe at 10 bits through ten_bit_tool_gate (yuv420p10le, --bit-depth=10) | 16/16 attempts pixel-exact vs ffmpeg's 10-bit decode, HORZ_A_32=55 HORZ_B_32=50 VERT_A_32=46 VERT_B_32=45
Flag-ordering correction
The charter said "first repeated flag wins"; the coordinator corrected this mid-round to LAST
wins. The recipes were rewritten so the flags under test (--sb-size=64 --enable-rect-partitions=1 --enable-ab-partitions=1 --min-partition-size=16 --max-partition-size=32) come after the base recipe. No flag is repeated in either recipe, and
the counters are identical before and after the reorder (8-bit 101/118/71/80, 10-bit
55/50/46/45) -- the arrival proof is the counters themselves: all four AB arms fire, which only
happens if --enable-ab-partitions=1 reached aomenc, and every AB sub-block is 16x16, which
only happens under --min-partition-size=16 --max-partition-size=32.
Suite
EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -> $HOME/.cache/ab32-suite.log.
The full run was SIGTERMed by the environment near the end on BOTH attempts (the log ends
process didn't exit successfully: ... (signal: 15, SIGTERM) with the long real_clip_* /
altref* tests still running), so there is no final test result: line. Partial totals from the
log: 179 tests ... ok, 3 ignored (pre-existing: rect64q delta-q drift, rectsplit r3 SB strip,
perf probes), 1 FAILED:
decode::tests::nz_map_ctx_offset_tables_match_the_rect_rule—32x64 nz_map offset at display (row 0, col 2): left 6, right 11. PRE-EXISTING on maindf5d630and untouched by this diff (this round changesstream.rsonly; no table, no decoder path). It is the exact conflict the ledger already records: "rectsplit r4 domain test asserts table[col][row] ... 32x64 (row2,col0): base_ctx 6 vs table[0][2]=11 — the two conventions contradict".
Sibling gates, run individually and all green after the change:
superblock_level 2 passed 0 failed 1 ignored
ab_partition 6 passed 0 failed 0 ignored (includes both new gates)
split_transform 1 passed 0 failed 1 ignored
tiny_frame_size_sweep 1 passed 0 failed 0 ignored
refusal_inventory 3 passed 0 failed 0 ignored
gate_coverage 9 passed 0 failed 0 ignored (no coverage-list edit was needed)
Refusals
None lifted — none of this lane's four values was refused at df5d630. refusal_inventory.rs and
gate_coverage.rs are unchanged except where the suite required (see totals).
Residue
- deferred: the INTER 32-level AB arms are coded but still ungated per-arm — there are no
per-arm INTER counters (only the shared, soft-noted
partab_hits). Unblocked by adding four INTER counters next to the intra ones and a second recipe with alt-refs. accepted for r1: the charter's <30% rule does not hold here (new counters + a second multi-frame gate). - deferred: ReelC/reelc5 still stop at the 64-level 1:4 refusal — owned by lane-tx64x16.