forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 5591c0e1dfbc7e0137f2c8d4fb224bfcb05d01ba

2026-08-30

feat(av1): wire read_lr into both SB loops; narrow the whole-frame LR refusal to 'filters not applied'Ahmet Kaan Gümüş · dc215f7
feat(av1): wire read_lr into both SB loops; narrow the whole-frame LR refusal to 'filters not applied'

decode_key_frame_tile_with_cdfs/decode_inter_frame_tile_with_cdfs now take
&LoopRestorationParams and call crate::restoration::read_lr once per
superblock, before decode_partition, storing per-unit Wiener/SGR filters
into a per-plane RestorationGrid (never yet applied to pixels). Public
one-star wrappers pass &LoopRestorationParams::default() unchanged.
stream.rs threads header.loop_restoration through both call sites; the
refusal string is renamed to name the true remaining gap (pixel filters
not applied) now that the partition walk survives a real LR stream.
235 passed / 0 failed (232 baseline + 3 new subexp/recenter tests),
EC_AV1_REQUIRE_AOMENC=1.
feat(av1): msac-flavoured LR subexp/recenter port + Wiener/SGR read_lr_unit primitives (unwired)Ahmet Kaan Gümüş · 4c75e5c
feat(av1): msac-flavoured LR subexp/recenter port + Wiener/SGR read_lr_unit primitives (unwired)

Ports decode_subexp/decode_unsigned_subexp_with_ref/decode_signed_subexp_with_ref
to the msac SymbolDecoder (k is a per-tap parameter here, not global motion's
fixed 3), plus read_wiener_filter/read_sgrproj_filter and the SGR params table,
all from libaom decodeframe.c/restoration.c. Pinned via roundtrip against a
hand-written encode-side mirror (SymbolEncoder has no LR writer of its own).
Not yet called from decode.rs -- stream.rs's whole-frame refusal is unchanged.
wip(av1): loop restoration CDF tables (restore_wiener/sgrproj/switchable)Ahmet Kaan Gümüş · ed590d6
wip(av1): loop restoration CDF tables (restore_wiener/sgrproj/switchable)

libaom entropymode.c default_{wiener,sgrproj,switchable}_restore_cdf,
copied exactly. Wired into Cdfs struct, defaults, and counter reset
(reset1, unindexed like intrabc). Not read from the bitstream yet --
next step wires read_lr/read_lr_unit into the superblock walk.
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-fixdet': the gate fixtures were never reproducibleAhmet Kaan Gümüş · 0169a4e
Merge branch 'lane-fixdet': the gate fixtures were never reproducible

ffmpeg's `gradients` lavfi source ignores its `seed` for colour selection.
Hashing one identical command line five times gave five different fixtures, and
twenty gate sites built their input that way -- so those gates have never once
had a reproducible input, and a pin captured from such a run could not be
regenerated.

The encoder was not the variable: six aomenc runs over a fixed y4m produced
identical bytes. That isolation matters, because it corrects an earlier claim
of mine that pinning the encoder's threads had fixed the filter_intra gate. It
had not -- that gate still failed about one run in fifteen in isolation.

Freezing the colours would have made the source reproducible and quietly
destroyed the per-attempt content sampling these gates depend on to fire their
features, which is a class this repo has already been bitten by. Deriving the
colours FROM the seed keeps both: one helper now serves all twenty sites, with
a guard test asserting that one seed reproduces byte-identically and two seeds
differ.

Re-measured after the fix: the filter_intra gate passes 20/20 and 15/15 in two
independent sets of isolated runs, and the free-partition gate gives identical
counts across three runs where it previously moved. No gate failed consistently,
so this nondeterminism was not hiding a decoder defect.

An unknown number of past failures filed against aomenc attempt selection were
really the source changing underneath. That is a real phenomenon, which is what
made it a plausible cover story.

Full lib suite 232 passed / 0 failed.
docs(av1): lane-fixdet r1 reportAhmet Kaan Gümüş · b4bac81
docs(av1): lane-fixdet r1 report

VERDICT FIXED. filter_intra 14/15 -> 20/20; free-partition counts stable
byte-identical across 3 isolated runs; full suite 232/0. Confirmed the
one full-suite-vs-isolated count discrepancy is a shared static
AtomicUsize (RECT_PARTITION_HITS/PARTAB_HITS in decode.rs) racing across
tests in the same process, not residual fixture nondeterminism -- filed
as deferred, out of this lane's scope.
fix(av1): route all 20 gradients gate fixtures through seed-derived coloursAhmet Kaan Gümüş · 5967ddb
fix(av1): route all 20 gradients gate fixtures through seed-derived colours

ffmpeg's `gradients` lavfi source ignores its own seed= for colour
selection -- measured, five identical command lines gave five different
fixtures. Add gradients_source(seed, w, h, tail) which derives c0..c3
from the seed with a plain integer hash (still passes seed= through too),
verified reproducible per-seed while keeping per-attempt variety across
seeds. All 20 stream.rs call sites now build their fixture through it.
Guard test gradients_source_is_reproducible_per_seed pins same-seed
byte-identical / different-seed differs.
feat(av1): trace the oracle's intra key-frame mode info tooAhmet Kaan Gümüş · c8e7f7e
feat(av1): trace the oracle's intra key-frame mode info too

The rect-strip desync could not be bisected because libaom's key-frame path had
no traced symbol at all between the partition read and the first coefficient
block -- EC_TRACE_MODE covered only decodemv.c's inter path. That gap is
exactly where the defect hides.

EC_TRACE_MODE now also wraps read_intra_frame_mode_info and prints the msac
range either side, with the decoded mode, uv_mode, skip and tx size. Same
wrapper-around-impl shape, same idempotence guard, still silent when unset --
verified emitting on a real stream and silent without the flag.
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.
Merge branch 'lane-gm2': the mv-stack's missing global-motion fallbackAhmet Kaan Gümüş · dd73232
Merge branch 'lane-gm2': the mv-stack's missing global-motion fallback

Root cause of the last global-motion refusal, and it was not in the warp path
at all. The single-ref mv-stack fell back to (0,0) when the neighbour scan came
up short, where libaom falls back to the querying block's own
gm_get_motion_vector for its ref frame. That is invisible whenever a live ref's
global motion is identity or translation -- the fallback value is (0,0) either
way -- and wrong the instant a ref carries real ROTZOOM and a block needs the
fallback, such as the first block of a frame, which has no neighbours.

r5 spent a round proving the refusal named a correlate: the failing pixel
belonged to a plain NEWMV block against GOLDEN that never enters the
global-warp branch, so "more than one active ROTZOOM slot" described the
configuration the defect showed in, not the defect. r6 then walked the
coefficient/mode range ladder the new oracle instrument made possible: the
range matched exactly either side of the block's mode info (34391 -> 46688 on
both sides), so consumption was bit-exact and the decoded mv still differed --
a construction bug, which is what it turned out to be.

The multi-slot refusal is gone. On this merge the interintra-wedge gate decodes
40 of 40 attempts pixel-exact with zero refusals; it was refusing 27 of 40 when
this batch started. Full lib suite 231 passed / 0 failed.

AFFINE global models stay refused -- unproven, not broken.
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.
fix(av1): mv-stack single-ref predictor falls back to global motion, not zeroAhmet Kaan Gümüş · 43e5d8c
fix(av1): mv-stack single-ref predictor falls back to global motion, not zero

Root cause of lane-gm r4/r5's "more than one concurrently active
ROTZOOM/AFFINE ref slot" refusal, found by range-laddering the r5 pin
against a new aomdec EC_TRACE_MODE instrument: libaom's
setup_ref_mv_list fills any mv_ref_list slot the neighbour scan left
short with gm_get_motion_vector for that block's own ref, not zero.
Our find_mv_stack_with_sign_bias used (0, 0) -- invisible whenever the
live ref's global motion is itself identity/translation, wrong the
moment it's a real ROTZOOM/AFFINE and a block's own stack (e.g. the
very first block of a frame, no neighbours) comes up short. Symbol
consumption was already bit-exact (rng matched aomdec before/after
mode info); only the predictor value was wrong.

Fixed at the fallback (nearest_mv/near_mv now default to gm_mv(gm,
ref_frame)); the r5/r6 pin decodes all 24 frames byte-exact through
the unmodified decode_stream. The multi-slot refusal that was masking
this is lifted (AFFINE-on-single-ref refusal stays). Wedge gate:
10/40 matches -> 33/40 (7 remaining refusals are all an unrelated
screen-content-tools capability gap).

Full ec-av1 --lib suite: 230/231 green (1 filter_intra gate flake,
confirmed non-regression by standalone rerun -- ok).
feat(av1): coefficient and mode-info range-ladder rungs for the oracleAhmet Kaan Gümüş · 3e41e62
feat(av1): coefficient and mode-info range-ladder rungs for the oracle

Two lanes stalled on the same missing instrument: the oracle's aomdec traced
only read_partition, so a desync inside a coefficient block or inside the
mv-stack/DRL/mv reads had no ladder to walk. Partition granularity is far too
coarse for either.

EC_TRACE_COEFF=1 wraps av1_read_coeffs_txb and prints the msac range before and
after every coefficient block, keyed by plane/row/col/tx_size. EC_TRACE_MODE=1
wraps read_inter_block_mode_info and prints the range either side of a block's
mode info, with the resulting mode, both refs and mv0.

Same wrapper-around-impl shape as the existing partition rung, same idempotence
guard, and both are env-gated: an uninstrumented run emits nothing, verified.

Building the instrument is the first subtask, not the excuse.
Merge branch 'lane-screen2': palette syntax on inter-frame intra sub-blocksAhmet Kaan Gümüş · a447d85
Merge branch 'lane-screen2': palette syntax on inter-frame intra sub-blocks

Inter frames with allow_screen_content_tools decode now, and the whole-frame
refusal is gone entirely rather than narrowed. The AB-partition gate refused 6
of 40 attempts on that string; it refuses none.

The round corrected a scope assumption worth recording: libaom's
read_intra_block_mode_info -- the inter-frame intra reader -- has no
use_intrabc call at all. intrabc is intra-frame-only by spec dispatch, since
av1_read_mode_info branches on frame_is_intra_only, so this path needed palette
wiring only.

Genuine palette or intrabc use still refuses by name at any frame type, as do
rect intra strips in screen-content frames.

Full lib suite 231 passed / 0 failed.
docs(av1): lane-gm r5 -- localize (not fix) frame14 multi-slot-rotzoom mismatchAhmet Kaan Gümüş · 42d6aa0
docs(av1): lane-gm r5 -- localize (not fix) frame14 multi-slot-rotzoom mismatch

Recaptured the lost r4 pin (seed 43, frame 14, row0/col18, determinism-verified
2x). Proved the mismatched pixel comes from a plain NEWMV/GOLDEN translational
block that never enters the new global-warp code path at all (only 7 blocks in
the whole 24-frame stream ever do, and mi=(0,0) isn't one of them) -- ruling out
CDEF/LR/deblock/hidden-frame amplification along the way. Root cause still open:
likely a per-frame mv-stack/NEWMV-predictor value that should vary per ref but
doesn't when GOLDEN+BWDREF are both concurrently ROTZOOM. Range-ladder step needs
an aomdec decodemv.c EC_TRACE patch not built this round. Refusal unchanged.
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).
docs(av1): rectwire r1 report -- design worked out, not landedAhmet Kaan Gümüş · 46dcc37
docs(av1): rectwire r1 report -- design worked out, not landed

Scan-table transpose, rect eob-context reduction, and the two missing
eob_pt CDF table sets (512-luma, 128-chroma) all cross-checked against
real libaom source with byte-level verification. Not implemented this
round: threading base_q_idx through decode_block_rect's four call
sites plus a real coefficient-decode desync risk was more edit-and-
verify surface than the remaining turn budget could safely absorb.
Full wiring plan + exact CDF values in lanes/rectwire-r1.report.md for
the next round.
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.
docs(av1): lane-gm round 4 reportAhmet Kaan Gümüş · da24637Browse files
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-recttx': rectangular inverse transforms, all 14 sizes pinnedAhmet Kaan Gümüş · f4ec6fe
Merge branch 'lane-recttx': rectangular inverse transforms, all 14 sizes pinned

The inverse transform path is (w, h) now, with the old side-taking entry points
as thin wrappers so no call site moved. The rect scale round2(c * 2896, 12)
fires only when |log2w - log2h| == 1, and row_shift_wh carries all 19 sizes
from libaom's av1_inv_txfm_shift_ls.

Every one of the 14 rectangular sizes is pinned by checksum against the real
libaom 1D kernels, probed with an asymmetric coefficient block so an axis swap
cannot hide -- the failure this work was most likely to ship. The square path
is proven bit-identical by value, not merely by a green suite.

This is the primitive, not the feature: decode.rs is untouched, and using it
still needs rect scan order, rect eob context, and max_txsize_rect_lookup
threading. Those three are what stand between this and lifting the refusal of
inter partitions below 16x16, and the intra strips' skip-only restriction.

Full lib suite 226 passed / 0 failed.
docs(av1): lane-recttx r1 report (all 14 rect sizes pinned; decode.rs wiring still owed)Ahmet Kaan Gümüş · 494492d
docs(av1): lane-recttx r1 report (all 14 rect sizes pinned; decode.rs wiring still owed)
fix(av1): gm_get_motion_vector block-centre -1 offset; root-cause seed-43 wedge mismatch to missing global-warp prediction path (not fixed)Ahmet Kaan Gümüş · 75017f1
fix(av1): gm_get_motion_vector block-centre -1 offset; root-cause seed-43 wedge mismatch to missing global-warp prediction path (not fixed)

Root-caused lane-gm r2's interintra-wedge gate mismatch (seed 43, frame 1
luma) via a pinned/self-decoded-twice reproduction and a msac range-ladder
comparison against a patched aomdec: entropy is in sync at the divergent
block (rng=38664 both sides), and this decoder's gm_get_motion_vector
computes the spec-correct mv once block_center_x/y's missing "- 1" is
fixed (found by diffing against the real oracle's mv.h). The remaining
gap is real but unfixed this round: libaom predicts every
is_global_mv_block (ROTZOOM/AFFINE GLOBALMV, >=8x8) with the full
per-pixel affine global-motion warp (reconinter.c's allow_warp /
global_warp_allowed), independent of motion_mode; this decoder only
builds a warp prediction for local WARPED_CAUSAL and falls back to
translational MC for every other GLOBALMV block. Whole-frame
global_motion != IDENTITY refusal in stream.rs stays in place.
Merge branch 'lane-altref2': the ALTREF2 gate fires and hard-assertsAhmet Kaan Gümüş · c08245b
Merge branch 'lane-altref2': the ALTREF2 gate fires and hard-asserts

The gate had passed its whole life without once exercising ALTREF2 -- 86
attempts, zero firings -- because 16 frames is a single mini-GOP, room for
BWDREF and never a second pyramid level. The flags were already right; the clip
was too short. At 64 frames ALTREF2 fires 3-4 times per run, and the silent
skip-on-never-fired is replaced by an assert, so the gate now fails rather than
lies when the feature stops appearing. The search table in the report records
that the gf-pyramid-height knobs add nothing measurable once the clip is long
enough, so nobody repeats it.

Full lib suite 224 passed / 0 failed.
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): altref2 gate -- 64-frame clip makes ALTREF2 actually fire (was 16, 86/86 zero-firings), hard-assert the hit count; search table + filter-intra status in reportAhmet Kaan Gümüş · bb31348
fix(av1): altref2 gate -- 64-frame clip makes ALTREF2 actually fire (was 16, 86/86 zero-firings), hard-assert the hit count; search table + filter-intra status in report
wip(av1): rectangular inverse transform + libaom dump harness (in progress)Ahmet Kaan Gümüş · 1a9fc2c
wip(av1): rectangular inverse transform + libaom dump harness (in progress)

Committed by the orchestrator: the builder hit its turn cap mid-verification.
docs(av1): gm r2 reportAhmet Kaan Gümüş · b1aa80bBrowse files
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.
docs(av1): gm r2 -- record step-8 narrowing attempt + its pixel-mismatch reversalAhmet Kaan Gümüş · 1e8e3e2
docs(av1): gm r2 -- record step-8 narrowing attempt + its pixel-mismatch reversal

Removing the whole-frame IDENTITY-only refusal decoded AB/free-partition
gates clean (0 global-motion refusals, both green) but exposed a real
mismatch on a_real_aomenc_stream_with_interintra_wedge_decodes_pixel_exact
seed 43 frame 1 luma (EC_WEDGE_GATE_ATTEMPTS=20 EC_AV1_REQUIRE_AOMENC=1).
Reverted the narrowing rather than ship a wrong decode; refusal stays until
that seed is captured/self-pinned and root-caused next round.
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.
test(av1): gm r2 -- add NO_GM_MV to mvstack's own compound test call sitesAhmet Kaan Gümüş · aad87a1
test(av1): gm r2 -- add NO_GM_MV to mvstack's own compound test call sites

Compile fix only, matches decode.rs leaf8's stub. golden3/golden4/scratch_*
pinned-test failures observed this round are pre-existing env-only gaps
(hardcoded path to a different session's scratchpad, or need EC_AV1_PIN set
manually) unrelated to gm; real pinned gates (golden7, warp) pass green.
fix(av1): pin streams to the durable fixtures dir, not a reaped scratchpadAhmet Kaan Gümüş · ae78393
fix(av1): pin streams to the durable fixtures dir, not a reaped scratchpad

Three sites addressed a session scratchpad that tmpfs has since reclaimed.
Two pinned-mismatch tests could only fail on the read, so pinned_golden4 --
whose bytes do still exist under fixtures/ -- had been dead rather than
passing, and it decodes pixel-exact now that it can find them. golden3's bytes
are genuinely gone; it now skips by name and says how to re-capture.

Worse, the cdf-forwarding gate's unconditional mismatch pin wrote to that same
dead path with .expect(), so a real mismatch would have aborted on the write
instead of reporting itself. It now writes to fixtures/ and warns rather than
panicking, leaving the pixel assert to be the thing that fails.

Same class as the reaped-oracle failure that silently voided 20 gates: an
instrument parked in a session-scoped directory stops being an instrument.
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).