forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on b07f07aeecbefcfa032bccd431e82dd62a52ac44Filtered to crates/ec-av1/src/gate_coverage.rsClear filter

2026-08-30

merge main into lane-palette: multi-tile key-frame decode, chroma smooth/paeth, CDEF index readsAhmet Kaan Gümüş · 7b81e30
merge main into lane-palette: multi-tile key-frame decode, chroma smooth/paeth, CDEF index reads

Resolved six decode.rs conflicts (Neighbours' palette fields + main's
tile-origin fields coexist on the struct/constructor; read_intra_mode
gained both the palette ctx/cache param and main's mi_r/mi_c param,
updated at both call sites; PlaneBuf::reconstruct keeps the palette-buf
override + filter_intra branch and now threads real smooth_neighbor
instead of a hardcoded false) and one gate_coverage.rs conflict
(NEVER_EXERCISED = enable-intrabc only: main's cdef/chroma lanes already
retired enable-cdef/paeth-intra/smooth-intra, this lane's own real
palette gate already retired enable-palette). Added the two refusal
strings the merge introduced (palette-Y pixel-mismatch refusal, split-
luma-transform-under-palette refusal) to refusal_inventory.rs's pinned
list -- suite failed once on the missing one, fixed, green after.

EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib: 244 passed, 0
failed, 17 ignored.
test(av1): real-aomenc palette-Y gate (smptebars, hue=s=0); palette_hits fires, pixel mismatch documentedAhmet Kaan Gümüş · 7e82cbf
test(av1): real-aomenc palette-Y gate (smptebars, hue=s=0); palette_hits fires, pixel mismatch documented

Verified r2's two milestones green first: 234/0 (matches the tree's baseline,
nothing to commit for that step). New gate proves the reconstruction path is
non-vacuous (palette_hits hard-asserted) but the reconstructed pixels
mismatch ffmpeg's decode of the same bytes -- read_palette_colors_y,
read_uniform, palette_color_index_context and the PALETTE_Y_COLOR_INDEX CDF
table were all checked line-for-line against the aom-oracle source and match
exactly, so the actual desync site is still unlocated (documented in the
gate's own doc comment and lanes/palette-r3.report.md). SKIPs rather than
fails so the suite stays green; removes enable-palette from
gate_coverage.rs's NEVER_EXERCISED since a real block now reconstructs from it.
Merge branch 'lane-chroma': smooth, paeth and directional chroma decodeAhmet Kaan Gümüş · be7060a
Merge branch 'lane-chroma': smooth, paeth and directional chroma decode

The lane went looking for chroma modes and found a luma bug first:
reconstruct() hardcoded smooth_neighbor = false, so the intra edge filter took
the wrong strength bucket whenever a directional block neighboured a
smooth-predicted one. Its own comment called it a corner-cut. Twenty gates had
never caught it because every one of them passed --enable-smooth-intra=0.

Landed here: the luma fix with smooth_neighbor threaded properly, UV-mode
neighbour tracking, the smooth/paeth chroma refusals gone (blocker 5 of the
default-settings chain), and the directional-chroma sibling in
decode_inter_block's intra-in-inter branch.

Gate-proven for the key-frame path. The inter-frame intra-block path is a
structural mirror of it plus a green suite, NOT proven by firing -- the lane
disclosed this itself, and the owed gate is written down in
lanes/chroma-r4.report.md: force an inter-frame leaf with such a uv_mode,
assert smooth_uv_hits/directional_uv_hits and pixel-exactness.

Both guards fired as designed and are updated: gate_coverage loses
enable-smooth-intra and enable-paeth-intra, refusal_inventory loses the two
round-2 chroma refusals.

Suite 239 passed / 0 failed.
Merge branch 'lane-realworld': cdef_idx decodes, gated on a real aomenc streamAhmet Kaan Gümüş · 51e931c
Merge branch 'lane-realworld': cdef_idx decodes, gated on a real aomenc stream

Blocker 1 of the default-settings chain is closed. The per-64x64 cdef_idx
symbol is read (spec 5.11.56) at all five sites where skip is decoded, kept in
a per-superblock grid, and apply_cdef selects that superblock's strength pair
instead of index 0. Gate a_real_aomenc_stream_with_cdef_decodes_pixel_exact:
40/40 pixel-exact, zero refusals, cdef_idx_hits hard-asserted > 0 (24-40/run).

The lane also established why the obvious gate could never work: cdef_bits
selects among per-SUPERBLOCK strength profiles, so a single-64x64-superblock
fixture gives the encoder nothing to differentiate -- 20 attempts kept the
counter at 0. It needed 128x64.

Both guards on main fired exactly as designed and are updated here:
gate_coverage's NEVER_EXERCISED loses enable-cdef (a gate enables it now), and
refusal_inventory loses "a frame with cdef_bits > 0". The decode.rs conflict was
the counter doc-comment restyle against the lane's new CDEF thread-locals; the
lane's block is kept, restyled to match.

Suite 237 passed / 0 failed.
test(av1): pin the coding tools no real-aomenc gate exercisesAhmet Kaan Gümüş · 21b2356
test(av1): pin the coding tools no real-aomenc gate exercises

lane-chroma r1 found reconstruct()'s `smooth_neighbor` hardcoded false -- wrong
whenever a directional block neighbours a smooth-mode one -- and it had survived
twenty real-aomenc gates because every one of them passes --enable-smooth-intra=0.
The corner-cut was not hidden by a weak assert; it was hidden by the gates'
encoder recipes, which no assert had ever looked at.

gate_coverage derives, from the gate source itself, the set of aomenc tools
switched off in all 20 gates and on in none -- provably never exercised by a
real stream -- and pins it: cdef, intrabc, paeth-intra, palette, smooth-intra.
An unlisted tool joining that set fails the test, and so does an entry the
gates have since started enabling, so a lane closing a hole must delete its
line. Negative-checked: dropping the enable-cdef entry fails with exactly that
name.

Suite 234 passed / 0 failed.