forge
Explore
Log in

Don't you dare go Hollow

Commits

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

2026-08-30

diag(av1): EC_AV1_TRACE range-ladder inside decode_color_index_map + palette Y mode/size/colors (lane-palette r6)Ahmet Kaan Gümüş · f62adbf
diag(av1): EC_AV1_TRACE range-ladder inside decode_color_index_map + palette Y mode/size/colors (lane-palette r6)

Range-ladder bisect against aomdec's EC_TRACE_PALETTE rung (rungs 6/6b)
on the r3/r4 smptebars gate fixture: every symbol up through
read_palette_colors_y matches the oracle's ranges exactly
(partition_w32 rng, skip/y_mode/uv_mode, palette_y_mode, palette_y_size,
palette colours all bit-identical). The desync starts right after --
libaom's decode_color_map_tokens is NOT called inline from
read_palette_mode_info; it runs later, from parse_decode_block via
av1_visit_palette, after palette UV mode_info (mode/size/colors, which
this decoder does not read at all yet) and filter_intra. Our
decode_color_index_map is called immediately after the Y colours
instead, so it reads the color-index symbols against the wrong point in
the bitstream whenever a block is chroma-referenced with UV_DC_PRED
(this gate's block: bsize_ctx=4, uv_mode=0). Confirmed by patching a
throwaway EC_PRE_PALETTE/EC_PALETTE_Y_MODE/SIZE/COLORS print into the
oracle's decodemv.c (not committed, reverted after use) -- ranges
matched ours field-for-field through EC_PALETTE_Y_COLORS rng=39432, then
the oracle's own decode_color_map_tokens entry read rng=51752, proving
UV palette mode_info consumed real bits in between that this decoder
skips.

Adds an EC_AV1_TRACE-gated EC_PAL/EC_PAL_VAL print inside our own
decode_color_index_map (row/col/ctx/n/rng before, color_idx/rng after,
plus the map[0] uniform read) and TRACE prints around the Y palette
mode/size/colors reads, matching the oracle rung's field names so a
future round's bisect doesn't have to re-instrument. No behaviour
change: the palette_y_mode `&&` short-circuit (only read the symbol
when mode == DC_PRED) is preserved exactly.

Refusal strings: none added or removed -- the palette-Y refusal stays
in place; removing it needs the reorder fix (read/skip UV palette
mode_info in the right position, defer the Y+UV color-index-map reads
to after filter_intra) which is next round's job, not this one's.

Suite: EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -j4 -- 244
passed, 0 failed, 17 ignored (unchanged).
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.
fix(av1): three refusals claimed the encoder never writes what it writesAhmet Kaan Gümüş · 177de6a
fix(av1): three refusals claimed the encoder never writes what it writes

Measured, not reasoned: five default-settings aomenc streams through the
decoder, one command each. testsrc2 192x128 at --cpu-used=0 refuses with "a
partition type this encoder never writes" -- a claim about the world, disproved
by the stream that produced it. The same family sits at the 32x32 level for
both the intra and inter paths.

All three now say what this decoder does not code, which is the true and useful
statement:
  "a superblock-level partition type other than NONE or SPLIT (this decoder's
   intra tile path codes only those two at 64x64)"
  "a 32x32 partition type this decoder does not code (value={part32})"
  "an INTER 32x32 partition type this decoder does not code (value={part32})"

Finding those needed a fix to the inventory itself: its scanner stopped at
`unsupported(` and so never saw `unsupported(format!("..."))`. Two refusals were
invisible to it, one of them the INTER claim above. It steps through format!
now, and both are pinned.

Where a default-settings stream stops today, measured this run: palette (Y);
delta_q/delta_lf, twice; the inter path's non-SPLIT superblock partition; and
the intra path's, at cpu-used=0. Four of the five are owned by live lanes; the
superblock-level partition family is not, and is the next lane to arm.

Suite 243 passed / 0 failed.
fix(av1): palette-Y refuses by name instead of decoding to wrong pixelsAhmet Kaan Gümüş · 71d8f67
fix(av1): palette-Y refuses by name instead of decoding to wrong pixels

r3's gate proved a real palette-Y block reconstructs to pixels that
mismatch libaom despite every symbol read (colours, index-map wavefront,
context, CDF table) checked line-for-line correct -- and left the gate
SKIPping on that mismatch, which hid a real stream decoding to silently
wrong pixels from the whole suite.

decode.rs's palette_y_mode arm now returns a named refusal right after
decoding the colours/map (palette_hits still fires, so the read path
stays proven non-vacuous) instead of handing the wrong reconstruction to
the caller; all the landed reconstruction code stays in place, unreachable
until the pixel desync is found. The gate
(a_real_aomenc_stream_with_palette_y_refuses_by_name, renamed from
..._decodes_pixel_exact) now hard-asserts that refusal fires with
palette_hits > 0, instead of SKIPping on a mismatch.

Also adds an EC_TRACE_PALETTE=1 rung to the aom-oracle instrumentation
(decode_color_map_tokens's per-pixel range + av1_read_uniform's map[0])
for the next round's range-ladder bisect, per charter job 2.

EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib: 235 passed, 0 failed,
17 ignored.
Merge branch 'lane-tiles': key frames with two tile columns decodeAhmet Kaan Gümüş · 5e92401
Merge branch 'lane-tiles': key frames with two tile columns decode

decode_key_frame_tile_with_cdfs takes tiles: &[&[u8]] and walks each tile with
its own msac and its own copy of the frame's CDFs; Neighbours and PlaneBuf carry
a tile origin so a block at a tile's left or top edge sees no neighbour there
even though decoded pixels sit at that address. decode_stream threads the real
tile buffers, and a 2-column key frame now decodes through decode_stream itself,
20/20 pixel-exact with the tile count hard-asserted > 1.

The blanket "more than one tile" refusal is replaced by four scoped ones -- inter
frames, tile rows, more than two columns, and loop filtering on -- so the cases
that are genuinely unimplemented say which one they are. refusal_inventory
records the swap.

Two facts the lane paid for: aomenc's default 128px superblock makes a 128x64
frame a single superblock, so any tile fixture needs --sb-size=64; and AV1 has
no loop_filter_across_tiles bit at all (unlike HEVC) -- deblocking crosses tile
boundaries unconditionally, so the loop-filter refusal is really the same
unimplemented right-edge reach bound as the 3-column one.

The lane also caught a false PASS in its own draft gate: Tile::offset is
relative to the slice parse_obu was handed, and without adding obu_offset back
the decoder read garbage that compared EQUAL as flat DC, rather than erroring.

Suite 242 passed / 0 failed.
Merge branch 'lane-realworld': the inter path stops assuming SPLITAhmet Kaan Gümüş · 0e15bcf
Merge branch 'lane-realworld': the inter path stops assuming SPLIT

decode_inter_frame_tile_with_cdfs read the superblock's part64 symbol and threw
it away (`let _ = part64;`), recursing as SPLIT regardless. A real non-SPLIT
part64 in an inter frame silently miscoded the whole superblock -- the one
failure mode this decoder does not tolerate. It now matches: SPLIT is still
inferred for the three straddle/forced-half cases, and any other real value
refuses by name before the quadrant recursion, with a hand-built PARTITION_HORZ
stream as the test.

refusal_inventory gained that string, as designed. The refusal describes what
this decoder does, not what an encoder emits, so it is a plain refusal and not
a capability claim.

delta_q/delta_lf is scoped but unstarted; lanes/realworld-r3.report.md carries
the verified default CDFs, the four call sites (the same four maybe_read_cdef_idx
uses), and the finding that base_q_idx is read at only 2 of ~90 sites, so a
thread-local running quantizer avoids threading a parameter through every block
signature. The DeltaLF-to-deblocker path still needs per-block MiGrid state.

Suite 240 passed / 0 failed.
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.
fix(av1): refuse non-SPLIT inter SB part64 by name instead of desyncingAhmet Kaan Gümüş · 6e8fc0b
fix(av1): refuse non-SPLIT inter SB part64 by name instead of desyncing

decode_inter_frame_tile_with_cdfs read part64 then `let _ = part64;`,
blindly recursing every superblock as SPLIT. A real non-SPLIT part64 in
an inter frame would silently desync rather than refuse. Now the value
is kept (SPLIT is still inferred for the forced-half/straddle cases,
matching the intra tile's own three-way write) and any other value
returns a named unsupported() error before the quadrant recursion runs.

New refusal string: "an inter SB-level partition type other than SPLIT
(this decoder's inter tile path only recurses a superblock as SPLIT)".

Test: a_non_split_inter_sb_partition_refuses_by_name_instead_of_desyncing
hand-writes a PARTITION_HORZ part64 symbol and asserts the named error
comes back instead of garbage decode.
feat(av1): palette-Y reconstruction (colour cache, delta colours, wavefront index map, prediction wiring)Ahmet Kaan Gümüş · c2f121e
feat(av1): palette-Y reconstruction (colour cache, delta colours, wavefront index map, prediction wiring)

Types in report sections 3-6: Neighbours above/left_palette_size/colors +
record_palette_y + palette_ctx_and_cache (av1_get_palette_mode_ctx +
av1_get_palette_cache, SB-row-boundary above-null rule); read_palette_colors_y
(cache-accept bits + delta-coded remainder + merge_colors), read_uniform,
palette_color_index_context (weighted neighbour score + selection sort +
hash lookup table), decode_color_index_map (wavefront diagonal scan).
read_intra_mode gains a `palette: Option<(ctx, cache)>` param: Some at
decode_block's key-frame path (real decode), None at decode_leaf8 (old
refuse-unconditionally behaviour preserved bit-for-bit). Palette prediction
reaches PlaneBuf::reconstruct through a PALETTE_PRED thread-local (the
existing ENABLE_EDGE_FILTER idiom). A palette block under a split luma
transform refuses by name (untested against a real stream this round).
palette_uv_mode still refuses (UV reconstruction is stage 2) but its context
is now the block's own real just-decided Y palette use.

Refusal strings changed:
- REMOVED: "a block that actually uses a palette (Y) -- reconstruction is
  out of scope" from decode_block's key-frame path (still present,
  unreachable-changed, at decode_leaf8's excluded call site).
- ADDED: "a palette block with a split luma transform (round 1)".
- UNCHANGED (still present): the UV palette refusal string, verbatim.

cargo check -p ec-av1 --tests: clean. Full suite not run this round (turn
budget) -- next round's first job.
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.
feat(av1): directional/smooth/paeth chroma in inter-frame intra blocksAhmet Kaan Gümüş · c3a0a18
feat(av1): directional/smooth/paeth chroma in inter-frame intra blocks

decode_inter_block's intra-in-inter branch refused any non-DC/CFL uv_mode
and never computed angle_delta_uv (charter step 4 sibling to the r1/r3
keyframe fix). Mirror read_intra_mode's own already-proven pattern:
uv_predict_mode (CFL predicts as DC), angle_delta_uv read for directional
uv_mode, smooth_neighbor_uv from the chroma neighbour's own uv_mode, and
SMOOTH_UV_HITS/DIRECTIONAL_UV_HITS counted same as the keyframe path.
Full lib suite green (234/0/17 ignored) after the change -- no dedicated
gate proves an inter-frame intra block with this uv_mode actually fires
through a real aomenc stream yet (deferred, see report).
wip(av1): lane-tiles r2 per-tile decode in progress, committed at the 75-turn capAhmet Kaan Gümüş · 6416aca
wip(av1): lane-tiles r2 per-tile decode in progress, committed at the 75-turn cap

Staged by the agent, committed verbatim by the orchestrator so it survives the
cap; state unverified by me.
wip(av1): lane-chroma r3 smooth-intra gate green path + chroma work, committed at the 75-turn capAhmet Kaan Gümüş · f4a11cd
wip(av1): lane-chroma r3 smooth-intra gate green path + chroma work, committed at the 75-turn cap

Committed verbatim by the orchestrator so the work survives the cap; state
unverified by me.
fix(av1): thread smooth_neighbor into intra edge filter strength (luma)Ahmet Kaan Gümüş · f3c639d
fix(av1): thread smooth_neighbor into intra edge filter strength (luma)

reconstruct()/reconstruct_rect()/read_plane() hardcoded smooth_neighbor=false
(spec get_intra_edge_filter_type / libaom get_filt_type), so a directional
block's edge-filter strength bucket was wrong whenever its above/left
neighbour used SMOOTH_PRED..=SMOOTH_H_PRED. Threaded a real per-block check
(is_smooth_mode over Neighbours::above_mode/left_mode) through decode_block,
decode_block_rect and decode_leaf8 (the key-frame intra call sites); the
inter-frame intra-in-inter paths (decode_inter_block/decode_inter_block8)
keep smooth_neighbor=false unchanged for now (out of this lane's scope,
matches r1's own note that path is a separate gap). Chroma stays false
(exact) until the smooth/paeth uv_mode refusal is lifted in a later round.
New SMOOTH_LUMA_HITS thread-local counter for the gate.

232/232 ec-av1 --lib passing (baseline unchanged).
wip(av1): tile-boundary availability groundwork for multi-tile decodeAhmet Kaan Gümüş · 4057dda
wip(av1): tile-boundary availability groundwork for multi-tile decode

Neighbours carries its own tile origin (tile_row0_mi/tile_col0_mi,
default 0) plus start_tile() (spec decode_tile's clear_above_context
over the tile's own column span). Every availability check that used
to compare against literal 0 (skip_txfm_ctx, tx_size_context,
tx_size_context_rect, decode_inter_block/decode_inter_block8's
has_above/has_left) now compares against the tile origin instead --
a no-op today (origin stays 0, single tile per frame), but the actual
per-tile hook the full lane-tiles wiring needs.

Refusal at stream.rs:292 (frame with >1 tile) is UNCHANGED -- this
commit does not yet drive start_tile(), split the superblock walk
per tile, give each tile its own entropy decoder/CDF copy, or clip
PlaneBuf's intra-prediction pixel reach to the tile (edges/edges_rect
still read x>0/y>0). Removing the refusal before those land would
desync silently, which the charter forbids.

cargo test -p ec-av1 --lib: 232 passed, 0 failed (baseline unchanged).
wip(av1): lane-realworld cdef_idx + delta q/lf, uncommitted at the 75-turn capAhmet Kaan Gümüş · 7fc9065
wip(av1): lane-realworld cdef_idx + delta q/lf, uncommitted at the 75-turn cap

Committed verbatim by the orchestrator so the work survives the cap; state
unverified (suite not run on this tree by me).
style(av1): thread-local hit counters take line comments, not doc commentsAhmet Kaan Gümüş · 7895d2a
style(av1): thread-local hit counters take line comments, not doc comments

The atomics->thread_local conversion (3cfbe37) left the 28 counter doc
comments attached to a macro invocation, which rustdoc does not document:
28 unused_doc_comments warnings. Comments kept verbatim, /// -> //, and the
five that still claimed 'across every call in the process' now say 'on the
current thread' -- the counters stopped being process-global in that commit.
Merge branch 'lane-rectwire2': rect coefficient decode lands, pixel-exactAhmet Kaan Gümüş · 94033af
Merge branch 'lane-rectwire2': rect coefficient decode lands, pixel-exact

The desync that held this lane for three rounds was an extra symbol, not a
wrong table. decode_block_rect read the tx-depth symbol unconditionally, where
both square paths gate their read_tx_size on `tx_select`. That symbol exists
only under TX_MODE_SELECT, and several gate recipes pass
--enable-tx-size-search=0, so the encoder wrote none and the decoder consumed
one that was never there -- desyncing the tile from that point, which is why
both 32x16 strips of the pinned quadrant were wrong from their first pixel.

r4's own range ladder had already named it without recognising it: the oracle's
range was unchanged across its whole block, 58692 either side, while ours moved
58692 -> 43570. Equal ranges either side of a symbol mean the symbol was never
consumed -- a cheaper conclusion than a near-certain CDF, and it needed no
further instrumentation. r4 read it as a wrong CDF row and refused to land on
an unconfirmed suspect, which was the right call on the evidence it had.

Free-partition gate: 15 pixel-exact matches of 40 with zero mismatches and
rect_coeff_hits=38, against 11 matches and rect_coeff_hits=0 under the
refuse-by-name posture. The firing count is a hard assert again.

Full lib suite 232 passed / 0 failed.
fix(av1): gate the rect strip's tx-depth read on tx_selectAhmet Kaan Gümüş · 8a896ab
fix(av1): gate the rect strip's tx-depth read on tx_select

The tx-depth symbol exists only under TX_MODE_SELECT. Both square paths gate
their read_tx_size on `tx_select`; decode_block_rect read it unconditionally.
Several gate recipes pass --enable-tx-size-search=0, so the encoder wrote no
such symbol and the decoder consumed one that was never there, desyncing the
tile from that point -- which is why both 32x16 strips of the pinned quadrant
came out wrong from their very first pixel.

r4's own range ladder had already named it without realising: the oracle's
range was UNCHANGED across its whole block (58692 either side) while ours moved
58692 -> 43570. Equal ranges either side of a symbol mean the symbol was never
consumed. r4 read it as a wrong CDF row and refused to land on an unconfirmed
suspect, which was right on the evidence it had.

With the read gated, the real coefficient decode is pixel-exact: the
free-partition gate reports rect_coeff_hits=38 and 15 pixel-exact matches of 40
with zero mismatches, where the refuse-by-name posture gave 11 matches and
rect_coeff_hits=0. The hard assert on the firing count is restored.

Full lib suite 231 passed / 0 failed in this worktree.
fix(av1): make the gate hit-counters thread-local so a delta is the test's ownAhmet Kaan Gümüş · 5c21ffa
fix(av1): make the gate hit-counters thread-local so a delta is the test's own

The firing counters were process-global atomics and cargo runs tests in
parallel threads, so a gate's `hits() > before` delta could be satisfied by a
SIBLING gate's increments -- the gate would pass without its own feature ever
firing, which is the vacuous-gate failure this batch has already fixed twice by
other means. Eleven gates took that delta without holding the counter lock.

Measured before the fix: the free-partition gate reported rect_partition_hits=9
and partab_hits=2 alone, and 18 and 4 inside the full suite. Same stream, same
decode, double the count -- the difference was other tests.

Serializing those eleven on the existing lock fixed the correctness and took
the suite from 67 s to over 600 s, because it serializes every slow aomenc gate
against every other. Thread-local counters give the same isolation with no
serialization at all: the decoder runs single-threaded, so each test thread's
counts are inherently its own, and the added locks come back out.

After: the same gate reports 9 and 2 in both contexts. Full lib suite 232
passed / 0 failed in 67 s.
Merge branch 'lane-rectwire': rect coefficient infrastructure, decode still refusedAhmet Kaan Gümüş · 7e312c0
Merge branch 'lane-rectwire': rect coefficient infrastructure, decode still refused

Three rounds, landing on a refusal rather than a decode, which is the correct
outcome for what was proven.

r1 did the recon and deliberately did not land code with the budget it had left
-- the right call for a coefficient-decode edit, where the failure mode is a
silent desync. Its recon narrowed the job sharply: decode_block_rect is called
from only four sites at fixed size pairs, get_txsize_entropy_ctx reduces to
txsize_sqr_up_map so most TxbSet fields reuse the square ones, and the only
genuinely new pieces are two eob CDF table sets.

r2 landed the wiring: those two CDF sets at all four sites, the four literal
scan tables (verified byte-for-byte, and confirmed NOT reproducible from the
square zigzag formula generalized -- the transcription was necessary, not
lazy), the rect context helpers, and a real non-skip decode path.

r3 triaged the mismatch r2 reported honestly rather than shipped. It is a real
deterministic desync, not an attempt-selection flake: 93.5% of the frame's
luma mismatches concentrate in the one PARTITION_HORZ quadrant, and both 32x16
strips are wrong from their first pixel. All three of r2's own suspects were
cleared against libaom source. So the non-skip branch refuses by name again and
the decode logic stays in the file, unreachable, for the round that isolates
the divergence. The gate's RECT_COEFF_HITS assert is downgraded to a note,
since it is now zero by construction -- a hard assert that cannot fire is the
vacuous-gate trap this batch already fixed once.

Full lib suite 231 passed / 0 failed; the free-partition gate is green with
zero mismatches.
fix(av1): revert rect coeff decode to refuse-by-name -- desync found, not isolatedAhmet Kaan Gümüş · 3bebc9d
fix(av1): revert rect coeff decode to refuse-by-name -- desync found, not isolated

lane-rectwire r3: pinned stream rectwire-flake-1.obu (seed 55) reproduces
deterministically and shows a genuine desync in r2's real (non-skip)
32x16/16x32 coefficient decode (93.5% of frame-0 luma mismatches land
inside the one HORZ-split quadrant, both strips ~100% wrong from their
first pixel). r2's three named suspects (base_ctx_rect offsets, chroma
skip-ctx formula, dc_sign_ctx index) all cross-checked byte-for-byte
against real libaom source and cleared. Range-ladder bisection stalled on
the intra key-frame path having no traced symbol between partition and
first coefficient in the oracle; next round's first move is patching that
into aomdec. Reverted decode_block_rect's non-skip branch to refuse by
name (r1 behavior); RECT_COEFF_HITS gate assert downgraded back to a
SOFT-NOTE. Free-partition gate green (29 refusals incl. 3 new named ones,
11 matches, 0 desyncs), full lib suite 231/0.
feat(av1): thread allow_screen_content_tools palette consumption into inter-frame intra sub-blocksAhmet Kaan Gümüş · ad21245
feat(av1): thread allow_screen_content_tools palette consumption into inter-frame intra sub-blocks

decode_inter_block/decode_inter_block8's intra-sub-block branches (libaom's
read_intra_block_mode_info) now read the same PALETTE_Y_MODE/PALETTE_UV_MODE
symbols read_intra_mode already consumes for key frames, gated by the same
av1_allow_palette bsize check, reusing the palette_bsize_ctx(side)/0-ctx
corner-cut. Confirmed against decodemv.c: read_intra_block_mode_info has NO
use_intrabc call at all (intra-frame-only symbol, av1_read_mode_info
dispatches on frame_is_intra_only) -- narrowed charter's intrabc scope for
this path accordingly. Removed stream.rs:169's remaining
frame_type != Key && allow_screen_content_tools whole-frame refusal now that
both key and non-key intra paths consume the syntax. 231/0 lib suite
unchanged (bit clear on every existing stream -> inert).
Merge branch 'lane-gm': non-IDENTITY global motion decodes through the warp pathAhmet Kaan Gümüş · 384a874
Merge branch 'lane-gm': non-IDENTITY global motion decodes through the warp path

Four rounds. The first three ported the syntax correctly -- gm_get_motion_vector,
the mvstack neighbour substitution, the is_global_mv_block vs
is_nontrans_global_motion split -- and the wedge gate still mismatched, because
every check that compared mv VALUES passed. A range ladder settled it: our msac
range and the instrumented aomdec's were both 38664 at the offending block, so
entropy was in sync and the defect was prediction-side. libaom's allow_warp has
a global_warp_allowed branch that predicts every is_global_mv_block block with
the full per-pixel affine warp, independent of motion_mode; this decoder only
ever warped for local WARPED_CAUSAL and fell back to translational MC on the
block-centre mv -- a centre-point approximation whose error grows with distance
from the centre, which is exactly the error shape that was observed.

r4 implements that path, reusing the existing warp_affine and shear machinery
rather than writing a second one. The seed-43 pin's frame 1 luma, the divergence
r3 root-caused, now matches, as do frames 0-13. The blanket "any non-IDENTITY
global motion" refusal is replaced by two named ones: AFFINE models, and more
than one concurrently active ROTZOOM/AFFINE ref slot -- the latter is a real
residue r4 localized but did not root-cause, and refusing it beats guessing.

Also fixed en route: gm_get_motion_vector was missing the -1 on both block-centre
offsets that libaom's block_center_x/y apply.

Full lib suite 231 passed / 0 failed. The wedge gate's match count is 11-16 of 40
across runs -- it selects a different aomenc attempt each run, so single-run
counts from any one round are not comparable.
feat(av1): global-warp prediction for single-ref GLOBALMV (allow_warp's global_warp_allowed branch)Ahmet Kaan Gümüş · eed6f8c
feat(av1): global-warp prediction for single-ref GLOBALMV (allow_warp's global_warp_allowed branch)

Wires global_motion[ref] into crate::warp::global_warp_params (reuses
find_projection's get_shear_params, no second warp implementation) for
every single-ref is_global_mv_block, gated independent of motion_mode
matching libaom's allow_warp exactly (local WARPED_CAUSAL short-circuits
first, else-if global). Pin gm-seed43.obu: frame 1 luma mismatch (r3's
root cause) now MATCH; frames 0-13 all match. Frame 14+ hits a NEW,
narrower, distinct shape (two ref slots concurrently ROTZOOM) -- refused
by name rather than guess-fixed. stream.rs's whole-frame refusal narrowed
from "any non-IDENTITY global motion" to two named remaining gaps: AFFINE
models, and more-than-one concurrently active ROTZOOM/AFFINE ref slot.
Wedge gate: 27/40->30/40 other-capability refusals (10 matches, wii_hits=4),
full lib suite 227/0 unchanged.
Merge branch 'lane-screen': consume palette/intrabc syntax on key framesAhmet Kaan Gümüş · 31f684b
Merge branch 'lane-screen': consume palette/intrabc syntax on key frames

Screen-content key frames decode now. The decoder does not reconstruct a
palette -- it consumes the syntax so the arithmetic decoder stays in sync, and
a block that genuinely uses palette or intrabc refuses by name. The whole-frame
refusal is narrowed rather than removed: decode_inter_block's intra-sub-block
branches have no palette wiring at all, so inter frames with the bit set keep
refusing until a follow-up lane threads the same two flags there.

Two integration points this merge had to settle:

Rect intra strips (lane-intradisp) do not consume palette syntax -- the square
reader's palette_bsize_ctx is keyed on a single side -- so a strip in a
screen-content frame would skip symbols the encoder wrote and desync. It
refuses by name instead.

The filter_intra gate was eaten by the old whole-frame refusal and skipped for
its whole life; now that it runs, it turned out not to pin --threads=1 the way
every sibling gate does, and a multi-threaded aomenc is not deterministic, so
each run encoded a different stream and the gate flaked against whichever
features that run happened to pick. Pinned, plus EC_FI_SEED/EC_FI_CQ hooks so
the recipe can be searched without a rebuild. It fired in 6 consecutive runs
and in 14 of 15 points of a (cq, seed) sweep; the one failure was a real
"use_filter_intra never fired" assert at cq=60, not a mismatch.

Full lib suite 224 passed / 0 failed, twice.
fix(av1): derive the key-frame skip context; refuse a split-transform rect stripAhmet Kaan Gümüş · 0b6be16
fix(av1): derive the key-frame skip context; refuse a split-transform rect strip

Two defects an adversarial source review found in the intra HORZ/VERT strip
merge, both confirmed against libaom.

The key-frame intra path read `skip` from `cdfs.skip[0]` unconditionally, while
av1_get_skip_txfm_context (pred_common.h:175-181) is above_skip + left_skip.
That was latent -- key frames rarely skip -- but the rect strips are skip-only,
so every strip this decoder accepts guarantees a skip=1 neighbour, and the
second strip of a HORZ pair would have read the wrong CDF row and desynced the
rest of the tile. Fixed at all three intra call sites, not just the rect one:
the defect is the class, and the pre-existing square site is now load-bearing.
The context comes off the mi skip grid, which every path already fills, with an
absent neighbour contributing 0 the way an absent above_mi/left_mi does.

Second, tx_depth was read and then ignored: the predictor ran over the whole
strip regardless, where libaom predicts per transform unit with each unit
taking its edges from the previous unit's reconstruction. That is a silent
pixel mismatch, and it violates this change's own skip-only contract, so a
split transform now refuses by name until the per-TU loop is ported.

Full lib suite 224 passed / 0 failed -- the skip-context fix is inert for every
existing stream, as it must be.
feat(av1): thread allow_screen_content_tools/allow_intrabc through decode_key_frame_tile[_with_cdfs]; narrow whole-frame refusal to non-key framesAhmet Kaan Gümüş · 818f85d
feat(av1): thread allow_screen_content_tools/allow_intrabc through decode_key_frame_tile[_with_cdfs]; narrow whole-frame refusal to non-key frames

decode_block/decode_leaf8/read_intra_mode already consumed palette/intrabc
syntax on key frames (prior builder). This wires the two bools the rest of
the way: through decode_key_frame_tile_with_cdfs and the public
decode_key_frame_tile wrapper, stream.rs's real production call
(header.allow_screen_content_tools/allow_intrabc), and the 7 test call
sites (false, false -- none of those fixtures use screen content tools).

Narrows stream.rs:169's whole-frame refusal to
`frame_type != Key && allow_screen_content_tools`: decode_inter_block/
decode_inter_block8's intra-sub-block branches have no palette/intrabc
wiring at all, so removing the refusal for inter frames would desync them
silently.
feat(av1): gm r2 -- non-IDENTITY global motion decode compilesAhmet Kaan Gümüş · 9018cff
feat(av1): gm r2 -- non-IDENTITY global motion decode compiles

Threads frame_header.global_motion through decode_inter_frame_tile_with_cdfs
to every decode_inter_block call site (stream.rs + both decode.rs wrappers +
leaf8's compile-only NO_GM_MV/((0,0),(0,0)) stub, gm-inert by design).

Single-ref path: is_global_mv_block (blockd.h:421-429, mode > TRANSLATION,
IDENTITY excluded) and is_nontrans_global_motion (reconinter.h:420-425,
model != TRANSLATION, IDENTITY counts) computed as separate locals, not
unified. is_global_mv_block gates motion_mode_eligible (implicit
SIMPLE_TRANSLATION under free mv, spec motion_mode_allowed) and
MiInfo::is_global_mv0; gm_nontrans gates the interp-filter suppress arg
(av1_is_interp_needed).
Merge branch 'lane-intradisp': intra HORZ/VERT strip dispatch (skip-only)Ahmet Kaan Gümüş · 0a532b3
Merge branch 'lane-intradisp': intra HORZ/VERT strip dispatch (skip-only)

32x16 and 16x32 intra strips now read every symbol the spec requires -- skip,
y_mode, angle_delta, uv_mode, cfl_alphas, filter_intra, tx_depth -- so the
arithmetic decoder stays in sync, and reconstruct pixels when the block is
skipped. A non-skip strip, and a strip that selects filter_intra, each refuse
by name.

The ceiling is not this dispatch: chroma on these bsizes gets a genuinely
rectangular TX_16X8 / TX_8X16 out of av1_get_max_uv_txsize with no square
escape, and transform.rs has no rectangular transform at all. lane-recttx
builds that primitive.

Full lib suite 224 passed / 0 failed on the merge. The free-partition gate is
flaky by construction (aomenc attempt selection): three runs gave 32/35/33
refusals and 8/5/7 pixel-exact of 40, no clean directional move, reported as
such rather than as a win.
wip(av1): palette/intrabc syntax consumption (in progress, threading not finished)Ahmet Kaan Gümüş · b46f7d8
wip(av1): palette/intrabc syntax consumption (in progress, threading not finished)

Committed by the orchestrator: the builder hit its turn cap mid-threading.
wip(av1): gm r2 -- compound mvstack gm threading, GLOBALMV real mv, interp two-predicate split (does not compile yet)Ahmet Kaan Gümüş · 5417eab
wip(av1): gm r2 -- compound mvstack gm threading, GLOBALMV real mv, interp two-predicate split (does not compile yet)

Committed by the orchestrator: the builder wrote ~9 edits deep and hit its turn
cap before it could commit. Known-incomplete, recorded verbatim so it survives.
wip(av1): intra HORZ/VERT strip dispatch (skip-only), recovered from stashAhmet Kaan Gümüş · 770cfc0
wip(av1): intra HORZ/VERT strip dispatch (skip-only), recovered from stash

Builder hit its turn cap with the whole implementation sitting in a stash;
committed verbatim as recovered so it cannot be lost. Gate ladder, report and
scope-down rationale still owed.
fix(av1): bound the 8x8-OBMC gate's ffmpeg source with -t; correct a false refusal claimAhmet Kaan Gümüş · 90aeec8
fix(av1): bound the 8x8-OBMC gate's ffmpeg source with -t; correct a false refusal claim

The gate's EC_AV1_OBMC8_SOURCE override lets a caller supply a lavfi source
that carries no `duration=` of its own; `testsrc2` is endless, so the y4m pipe
never closed and the gate hung to its 300 s timeout. `-t` is the bound that
holds for every source. Third instance of the class (mandelbrot `end_pts`
twice before): bound the trim inside ffmpeg on decode, bound the duration with
`-t` on generate.

With the bound in place the gate runs 80 attempts in 7 s and shows why it has
never fired one 8x8 OBMC block: decode.rs refuses every inter partition below
16x16. Its message claimed "this encoder never writes one", which the run
disproves -- reworded to name the real gap.
wip(av1): mvstack global-motion substitution plumbing (inert: NO_GM_MV, all flags false)Ahmet Kaan Gümüş · 149fd7a
wip(av1): mvstack global-motion substitution plumbing (inert: NO_GM_MV, all flags false)

MiInfo gains is_global_mv0/1 (all ctors false), GmMvTable threaded through the
single-ref scans, and the TPL zero_mv_ctx comparison now measures against gm_mv
instead of zero (mvref_common.c:369-370). decode.rs still passes NO_GM_MV, so
behaviour is unchanged until the wiring lands.
fix(av1): inter frames' intra blocks inherited a stale enable_intra_edge_filterAhmet Kaan Gümüş · d1585d0
fix(av1): inter frames' intra blocks inherited a stale enable_intra_edge_filter

ENABLE_EDGE_FILTER is a thread-local set only by decode_key_frame_tile_with_cdfs;
decode_inter_frame_tile never set it, so an inter frame's intra blocks read
whatever the last key frame decoded on that thread left behind. Within one
stream that is inert (its own key frame sets it first), but it makes decode
impure across streams sharing a thread -- a real contamination path, and the
shape that produces a suite-only flake.

decode_stream now sets it from the sequence header for every stream, covering
inter frames. Also teaches build-aom-oracle.sh to reconfigure a build tree that
was configured under a different path instead of failing to regenerate.
feat(av1): widen intra::predict/Edges to rect (bw != bh)Ahmet Kaan Gümüş · 24d69ed
feat(av1): widen intra::predict/Edges to rect (bw != bh)

Predictor + Edges::build now take (bw, bh) instead of one side: DC's
dc_predictor_rect multiply-shift divide (derived, not tabulated, per
libaom's own comment -- AV1's only rect ratios 1:2/1:4 leave d==3/5),
smooth's separate width/height weight rows, and the directional walk's
bw+bh reach with cross-axis edge-filter/upsample extensions (above
extends by bh, left by bw -- reconintra.c's txwpx/txhpx swap). Also
fixes a latent bug this widening surfaced: intra_edge_filter_strength
was missing the blk_wh<=12 branch, unreachable for any square side sum
but live for e.g. a 4x8 block.

All 21 call sites still pass (side, side); full lib suite green
(223/223) proves square behaviour is bit-identical. Tile dispatch
still refuses rect/AB partitions -- next lane's job.

2026-08-29

2026-08-28

fix(av1): overlappable_left steps by the neighbour's heightAhmet Kaan Gümüş · f1a6012
fix(av1): overlappable_left steps by the neighbour's height

The OBMC left-column walk stepped by MiInfo.size (width); a 32x16 left
strip swallowed the strip below it and its band blended the wrong
neighbour prediction (rect-flake-3, +-2 in the second strip's band).
Class sweep: all other grid walks step by the matching axis. Pin added;
lib 221/0.
fix(av1): mvstack scan weight inc mins by the candidate's cross axisAhmet Kaan Gümüş · d6cb150
fix(av1): mvstack scan weight inc mins by the candidate's cross axis

libaom's scan_row_mbmi mins inc by mi_size_high (candidate height), scan_col
by width; ours used the scan's own axis at all 4 sites (single + compound).
Square candidates hide it; a 32x16 strip above tied weights, reordering DRL
entry 1 and suppressing the -5 extended row scan. rect-flake-2 byte-exact,
pin added to the default list; lib 220/0.
fix(av1): rect-flake-1 byte-exact -- MiInfo size_h, rect warp samples/projection dims, OBMC per-pass overlap, deblock tx-height gridAhmet Kaan Gümüş · 8e2b541
fix(av1): rect-flake-1 byte-exact -- MiInfo size_h, rect warp samples/projection dims, OBMC per-pass overlap, deblock tx-height grid

Three prediction-side root causes after the CDF rows: (1) neighbour records
carry true height (size_h) so a rect strip donates warp samples at ITS
center and col scans step/weight by height; find_projection gets the
strip's true dims -- wmmat now matches aomdec exactly. (2) obmc_blend:
per-pass neighbour caps (width-log2 above, height-log2 left) and overlaps
(bh/2 above, bw/2 left). (3) tx_h_grid: deblock horizontal edges gate by
transform HEIGHT; the single-scalar grid deblocked the strip seam wrong
(1-px chroma drift).
fix(av1): motion_mode/obmc CDFs gain BLOCK_16X32/32X16 rows; rect strips index their own bsize rowAhmet Kaan Gümüş · ab0445e
fix(av1): motion_mode/obmc CDFs gain BLOCK_16X32/32X16 rows; rect strips index their own bsize row

rect-flake-1 strip 1's motion_mode read diverged on the square-class row;
with the true rows the whole HORZ block is entropy-exact (range ladder
exact everywhere) -- residual pixel diff is prediction-side (warp).
feat(av1): wire the COMPOUND_WEDGE blend (comp_group_idx==1, compound_type==0); gate fires wedge live (mandelbrot diagonal content, dist-wtd-comp=0), 20/20 pixel-exact, 475 wedge hitsAhmet Kaan Gümüş · 2803580
feat(av1): wire the COMPOUND_WEDGE blend (comp_group_idx==1, compound_type==0); gate fires wedge live (mandelbrot diagonal content, dist-wtd-comp=0), 20/20 pixel-exact, 475 wedge hits