forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on edca059640cdea81fb397fb4ef627c77ece64c1f

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
feat(av1): rect write-footprint plumbing; HORZ/VERT strips refuse by name pending rectangular mvstack (r2)Ahmet Kaan Gümüş · ebb03bd
feat(av1): rect write-footprint plumbing; HORZ/VERT strips refuse by name pending rectangular mvstack (r2)

Square-context strip decode desyncs (pin rect-flake-1.obu, frame 16 strip 2:
NEARMV picked a different DRL entry -- a 32x16 block's stack weights use
n4_h=4). Full strip decode kept in history (4782e57) for r2; free gate
recipe re-clamped, green 3/3; lib 220/0; 11 pins byte-exact. HORZ_B's top
strip carries the same latent corner-cut -- r2 scope.
feat(av1): port the DIFFWTD masked-compound blend (comp_group_idx==1), wedge still refusedAhmet Kaan Gümüş · ddb5bef
feat(av1): port the DIFFWTD masked-compound blend (comp_group_idx==1), wedge still refused

diffwtd_mask/blend_masked_compound in mc.rs, algebraically re-derived onto
this crate's unbiased predict_compound_intermediate domain (libaom's
round_offset bias cancels exactly in both the mask diff and the blend
weight sum, proven in the doc comments -- no offset bookkeeping needed).
Both comp_group_idx==1 decode.rs sites now build+apply the real blend for
COMPOUND_DIFFWTD; COMPOUND_WEDGE still refuses by name (wedge codebook out
of r2 scope per the charter's mergeable-partial fallback). Fixed a real
latent bug while wiring this in: compound_idx was read unconditionally,
missing libaom's comp_group_idx==0 outer gate (dead code before this round
since the masked path always errored earlier).

Gate a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact flipped
to hard assert (masked_compound_hits() > 0) with DIFFWTD refusals now
forbidden; hammered 8/8 green, zero pixel mismatches. Full ec-av1 lib
suite: 220 passed, 0 failed, 17 ignored.
test(av1): masked-compound gate zero-hit run soft-skips instead of failing the default suiteAhmet Kaan Gümüş · 7aa15de
test(av1): masked-compound gate zero-hit run soft-skips instead of failing the default suite

aomenc RD nondeterminism can leave a whole attempt window without a
comp_group_idx==1 block; that run proves nothing and must not flake the
suite. r2 flips this to a hard assert when the blend lands.
wip(av1): consume compound_type/wedge_idx/wedge_sign/mask_type on masked compound (comp_group_idx==1); blend still refusedAhmet Kaan Gümüş · 09ba66a
wip(av1): consume compound_type/wedge_idx/wedge_sign/mask_type on masked compound (comp_group_idx==1); blend still refused

lane-maskcomp r1. Syntax entropy-exact per libaom decodemv.c 1634-1656:
compound_type (COMPOUND_WEDGE/COMPOUND_DIFFWTD), then wedge_index+wedge_sign
or mask_type. New CDF tables (COMPOUND_TYPE, WEDGE_IDX) wired through the
4-site checklist (cdf.rs default, cdf_state.rs field/init/reset_counts).
Prediction (wedge/diffwtd mask blend) is NOT ported -- both refusal sites
still return Err, now after consuming the symbols and naming the blend as
the gap. New gate a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact
+ MASKED_COMPOUND_HITS proves the syntax fires without desyncing surrounding
blocks (pixel-exact matches every non-masked-compound attempt). All 11
existing pins + full ec-av1 --lib suite unaffected.
feat(av1): rect/ab free-partition gate; localize real coverage gapAhmet Kaan Gümüş · a3f46bc
feat(av1): rect/ab free-partition gate; localize real coverage gap

New gate lets aomenc pick a free partition instead of every prior gate's
pinned min=max=32. Finding: charter's "extended partitions landed" premise
was wrong -- decode_frame's inter-tile match only handles NONE/SPLIT/HORZ_B;
HORZ/VERT/HORZ_A/VERT_A/VERT_B/HORZ_4/VERT_4 all correctly refuse (no silent
miscoding). Empirically swept 3 recipes (120 aomenc attempts); no decode
defect found, only a genuine 7-of-10-partition-type coverage gap plus an
aomenc-side --enable-1to4-partitions=0 quirk (doesn't suppress VERT_4).
Diversity counter added but its assertion shipped soft, not a hard panic,
since PARTITION_HORZ_B never fires for this fixture regardless of clamp
(confirmed against the already-green warp gate too). ec-av1 lib 219/0.

Details in lanes/rectgate-r1.report.md.
feat(av1): decode non-wedge interintra prediction; fix warp-sample interintra exclusion; reset switchable_interp CDF counterAhmet Kaan Gümüş · a5a10f4
feat(av1): decode non-wedge interintra prediction; fix warp-sample interintra exclusion; reset switchable_interp CDF counter

- interintra syntax (flag -> 4-ary mode -> wedge flag, wedge==1 stays a
  named refusal) + non-wedge smooth blend (II_DC/V/H/SMOOTH, ii_weights1d,
  all planes) on the 16/32 single-ref path and the 8x8 leaf
- interintra blocks record ref_frame1 = INTRA_FRAME(0) in the mi grid so
  find_samples/num_proj_ref exclude them (libaom av1_findSamples requires
  ref_frame[1] == NONE_FRAME); mvstack ref-diff scan guards rf1 > 0
- ii-flake-9: switchable_interp was the one Cdfs field missing from
  reset_counts -- unreset counter saturated past 15 reads and slowed the
  adaptation rate to >>5 while libaom (per-frame counter reset,
  av1_reset_cdf_symbol_counters) stays >>4; rows drifted a few counts and
  the gate flaked on read-dense streams. Field-list audit: no other gap.
- new gate a_real_aomenc_stream_with_interintra_decodes_pixel_exact
  (interintra refusals forbidden, hits counter asserted); pinned-stream
  test extended to 11 fixtures (ii-flake-1..9)

Evidence: 11/11 pins byte-exact; interintra gate 12/12 hammer clean
(hits 11-22 per run); warp gate 3/3; ec-av1 lib 218 passed / 0 failed.
chore(av1): interintra r1 charterAhmet Kaan Gümüş · 1f0e385Browse files
Merge branch 'lane-warp': WARPED_CAUSAL decode lands; interp-read suppression (warp + skip_mode), mvstack entry clamping, extended inter partitionsAhmet Kaan Gümüş · d45c7f8
Merge branch 'lane-warp': WARPED_CAUSAL decode lands; interp-read suppression (warp + skip_mode), mvstack entry clamping, extended inter partitions

Warp leaves the named-refusal list: av1_findSamples/num_proj_ref, 3-symbol
motion_mode, affine projection + filter, and av1_is_interp_needed's
conditional-read contract are ported. Three pinned aomenc streams decode
24/24 byte-exact; warp gate flipped to must-decode (10/10 sweeps clean);
ec-av1 lib 217/0; workspace gate 148/148. Root-cause chain and verification
in lanes/warp-r5*.report.md + lanes/warp-verify.report.md.
fix(av1): clamp every mvstack entry, not just the derived nearest/near pairAhmet Kaan Gümüş · 569067b
fix(av1): clamp every mvstack entry, not just the derived nearest/near pair

libaom av1_find_mv_refs clamps each stack entry after the build; the NEWMV
predictor is the DRL-selected ENTRY, so a left neighbour coded past the
frame edge (col 520 in pinned warp-flake-5.obu) predicted unclamped where
libaom used 384 -- an mv drift with IDENTICAL entropy (same diff symbols,
range ladder exact at every partition read) surfacing as +-1 warp rounding
crumbs in a hidden altref, inherited by shown frames (V-plane assert).
Both builders (single + compound). All three warp pins green.

class: value-equal narrowing drift (neighbour-votes-all-its-fields family);
localization = part-read range ladder exact -> prediction-side, then
EC_MV pred diff vs patched aomdec.
fix(av1): suppress the interp-filter read for skip_mode compound blocksAhmet Kaan Gümüş · 497de2d
fix(av1): suppress the interp-filter read for skip_mode compound blocks

Same conditional-read contract as the WARPED_CAUSAL fix one commit back:
av1_is_interp_needed==0 for skip_mode, libaom derives Regular. Our compound
path read 1-2 switchable_interp symbols on every skip_mode block; range
ladder on pinned warp-flake-7.obu decode-16 diverged inside its B01
skip_mode block (part-read rng 45276 exact, next part 46380 vs 44416).
Fixes pinned warp-flake-7 (frame 15 luma); original warp pin stays green.
Also: part32_pre range trace under EC_AV1_TRACE (inert).

class: symbol-consumption-gap (conditional-read side).
feat(av1): flip the warp gate to must-decode; r5e reportAhmet Kaan Gümüş · 8d5c79f
feat(av1): flip the warp gate to must-decode; r5e report

refuses-or-matches -> warp refusals forbidden, matched>0 and
warp_selected_hits>0 required (non-warp capability refusals still skip).
KNOWN: cross-run encoder non-determinism observed (warp_selected_hits
156/103 across identical-seed sweeps) and one run caught a seed-66
frame-13 mismatch -- flake hunt with EC_AV1_GATE_DUMP in flight; a caught
stream becomes the next pin.
fix(av1): suppress the interp-filter read for WARPED_CAUSAL blocksAhmet Kaan Gümüş · de81760
fix(av1): suppress the interp-filter read for WARPED_CAUSAL blocks

warp r5e ROOT CAUSE of the pinned mismatch chain (r3-r5e): libaom's
av1_is_interp_needed derives the filter (Regular) instead of reading
switchable_interp symbols when motion_mode == WARPED_CAUSAL -- keyed on the
SYMBOL value, not projection validity. Our single-ref path only suppressed
for GLOBALMV, so a warped block consumed 1-2 extra symbols and every read
after it drifted: the hidden no-show altref (decode-order 13, display 23)
desynced at its last 32x32 (phantom HORZ_B partition value=5 where libaom
reads NONE), corrupting the stored ALTREF; shown frames 13+ then inherited
the garbage through zero-mv skip compound copies -- the pin's 'frame 13
luma' failure (class gate-blind-to-hidden-frames, exactly).

Localized with libaom examples/inspect ground truth (display frame 13 quad
(1,1) = 32x32 NEAREST_NEARESTMV zero-mv skip; hidden altref = four 32x32s
incl. NEWMV WARPED_CAUSAL skip at mi(8,0)) vs our EC_AV1_TRACE: B00/B01/B10
symbol-exact, divergence at B11's partition_w32.

EVIDENCE: pinned_warp_stream_decodes_pixel_exact 24/24 pixel-exact vs
ffmpeg, green twice, warp_selected_hits 0->1; ec-av1 lib suite 217 passed
0 failed.

class: symbol-consumption-gap (conditional-read side: a symbol READ that the
reference DERIVES is the same drift as an unread bit).
chore(av1): warp r5c charterAhmet Kaan Gümüş · 714fd00Browse files
wip(av1): warp r5b UNVERIFIED trial -- HORZ_B bottom-leaf coords to mi convention (r32*2+1)Ahmet Kaan Gümüş · e7c9731
wip(av1): warp r5b UNVERIFIED trial -- HORZ_B bottom-leaf coords to mi convention (r32*2+1)

Behavior-neutral on the pin (frames 1-12 pass before and after; frame-13 fail
is intra-walk, untouched). r5b flash builder capped out before verifying and
misreported the worktree clean; committed by orchestrator, adjudication owed.
wip(av1): warp r5 -- extended inter partitions (HORZ_B/VERT_A/VERT_B) implemented; pin refusal GONE, decodes 24/24, frame-13 luma mismatch remains (intra path, quadrant (1,1), unrelated to warp)Ahmet Kaan Gümüş · d57b460
wip(av1): warp r5 -- extended inter partitions (HORZ_B/VERT_A/VERT_B) implemented; pin refusal GONE, decodes 24/24, frame-13 luma mismatch remains (intra path, quadrant (1,1), unrelated to warp)

flash builder round, HANDOFF at tool cap; determination: refusal was case (b),
the pinned aomenc stream really uses extended partition types. Frames 1-2 (the
only frames with warp blocks) PASS. charter lanes/warp-r5.charter.md.
wip(av1): EC_WARP_DEBUG sample dump -- MAJOR REFRAME, mismatch predates warpAhmet Kaan Gümüş · 3a8a953
wip(av1): EC_WARP_DEBUG sample dump -- MAJOR REFRAME, mismatch predates warp

lane-warp round 4, budget-capped stop.

DECISIVE INSTRUMENT (r3's planned next move): added EC_WARP_DEBUG-gated
printf at libaom's av1_find_projection call site (decodemv.c ~1546/1637,
local /tmp/libaom-src checkout, not this repo) dumping mi_row/mi_col,
findSamples' pts/pts_inref, and the resulting wmmat/alpha/beta/gamma/delta;
matching EC_WARP_DEBUG eprintln added here (decode.rs ~5579, in the leaf16
WARPED_CAUSAL arm) dumping our own find_samples/find_projection output at
the same call site. Rebuilt aomdec (decoder-debug preset), ran both sides
on the pinned warp-mismatch.obu fixture.

RESULT: the warp math itself is NOT provably at fault this round -- the
sample coordinates and even the resulting wmmat matched in shape (x/y
sample values identical: pts=(120,-136) both sides), consistent with r3's
line-audit finding warp.rs's arithmetic faithful.

MAJOR REFRAME: cross-referencing libaom's unconditional EC_TRACE
(decodemv.c:1717, fires every inter block, no env gate) against our own
EC_AV1_TRACE (decode.rs:5655, leaf16 only) for the WHOLE 24-frame stream
shows only two real (non-degenerate-skip) content frames exist in decode
order: frame index 1 (ref=LAST_FRAME) and a much later frame (ref=
GOLDEN_FRAME, where WARP_SELECTED_HITS actually fires). ffprobe confirms
this stream has NO reordering (pict_type P for all 23 inter frames, no
hidden altref) -- decode order IS display order, so "frame 1" in the
pinned test's mismatch report is the LAST_FRAME frame, NOT the GOLDEN/warp
frame several frames later. The warp block (mi_row=8,mi_col=0 in libaom's
real stream, motion_mode=2) fires on a frame that is never even reached
by the time the test's assert_eq fails at i=1.

Concretely, on frame index 1 (LAST_FRAME, all four 32x32 leaves):
  libaom: (0,0) skip=0 NEARESTMV mv=(0,0); (0,8) skip=1 NEARESTMV mv=(0,0)
    motion_mode=0 (SIMPLE_TRANSLATION, overlappable=1); (8,0) skip=1
    NEARESTMV mv=(0,0); (8,8) skip=1 NEWMV mv=(-32,0) motion_mode=1 (OBMC)
  ours:   (0,0) skip=0 mv=(0,0) is_new_mv=false [MATCHES]; (0,8) skip=1
    mv=(0,0) is_new_mv=false motion_mode_eligible=1 obmc_selected=1
    [DIVERGES -- we select OBMC, libaom does not]; (8,0) skip=0 mv=(24,0)
    is_new_mv=true [DIVERGES]; (8,8) skip=1 mv=(2,-2) ref=4 [DIVERGES,
    even ref_frame differs]

(0,0) matches on skip/mv/is_new_mv (mv=(0,0) is a trivial integer-pel
copy, so an interp-filter bug there is structurally inert regardless).
r3's ASCII diff mask ("small-magnitude errors, diagonal band, upper-left
half") is consistent with (0,0)'s own RESIDUAL/coefficient decode being
subtly off (skip=0, so real coefficients are coded) rather than any
motion-mode/OBMC/warp symbol bug -- a wrong coefficient desyncs the tile
exactly where we see it: (0,8)'s OBMC symbol reads a different value
than libaom's not because obmc_cdf/context is wrong, but because the bit
reader is already at the wrong position by the time it gets there.

NEXT ROUND'S FIRST MOVE: stop auditing warp.rs -- the fixture's frame-1
mismatch is provably upstream of any warp code. Verify (0,0)'s residual
path first: dump libaom's coefficient levels for this exact leaf (add an
EC_WARP_DEBUG-style printf in decodetxb.c/reconinter around the (0,0)
32x32 block's dequant+inverse-transform) vs our own dequant_and_inverse_
typed's existing EC_AV1_TRACE dequant printout (decode.rs ~1704,
"TRACE dequant plane=... levels=... residual=..."), same block. If levels
differ, it's a coefficient-context/EOB bug; if levels match but residual
differs, it's the inverse-transform/rounding chain. Once (0,0) round-trips
exactly, re-run the pinned test -- the warp block many frames later may
turn out to already be correct, or a fresh independent bug once the tile
is back in sync that far downstream.

Gate/test changes this round: none (only the env-gated debug eprintln in
leaf16's WARPED_CAUSAL arm, dead code on any non-diagnostic run). cargo
check -p ec-av1 --lib clean.

tmpfs: 65% at session start (not yet re-measured this round).
wip(av1): warp fixture found + decisive pinned mismatch -- COMPILING WIPAhmet Kaan Gümüş · fefaafb
wip(av1): warp fixture found + decisive pinned mismatch -- COMPILING WIP

lane-warp round 3, budget-capped stop.

Resolved r2's puzzle first: leaf8 (decode_inter_block8) STILL refuses
motion_mode==2 unconditionally (decode.rs ~6558) -- confirmed by direct
read, not inferred. The gate's fixture partition is forced to 32x32
(--min/max-partition-size=32), so leaf8 (an 8x8 leaf) is structurally
unreachable on that content; the puzzle's (a) was a red herring. The real
reason the warp gate reported "40 named refusals, 0 matches" is a
never-fired-instrument shape from a DIFFERENT angle: every one of the 40
attempts happens to *also* hit some other real, unrelated named refusal
(allow_screen_content_tools, partition-below-16x16, partition-type-never-
written, interintra, directional-chroma) before or regardless of whether
warp fires -- confirmed by instrumenting the gate to print every refusal
string and WARP_SELECTED_HITS (leaf16's counter): even the charter's own
--auto-alt-ref=1 --lag-in-frames=16 --enable-fwd-kf=0
--enable-ref-frame-mvs=0 recipe (already present in the gate, unlike r2's
guess) still gets swamped by aomenc's `gradients` synthetic content
tripping screen-content-tools detection at cpu-used=0. Widening the sweep
(new EC_WARP_GATE_ATTEMPTS env override, default 40) to 200 seeds found
warp firing 14-75 times per run (leaf16 exercised for real) but never
once producing a clean pixel-exact pass across two separate 200-seed
runs -- same seed set gave DIFFERENT refusal shapes on each rerun
(matches the documented aomenc-RD-nondeterminism class:
parallel-flake-is-attempt-selection), so the fixture itself isn't
reproducible by seed alone.

DECISIVE FIND: seed 49 (this run) decoded WITHOUT hitting any other named
refusal, warp fired exactly once (WARP_SELECTED_HITS 0->1), and frame 1
luma mismatched ffmpeg -- a real, isolated warp_affine/find_projection
bug, not a confound. Stream pinned to
$SP/warp-mismatch.obu (621 bytes, 64x64, 24 frames) and a new
`pinned_warp_stream_decodes_pixel_exact` #[ignore]d test added
(stream.rs) that re-decodes it deterministically (no aomenc/ffmpeg
re-encode) and dumps an ASCII diff mask on mismatch.

Diff shape: small-magnitude ('o', delta<4) errors spread across roughly
the frame's upper-left half in a diagonal band, not a sharply-bounded
single-block region of gross error -- consistent with a subtle
coefficient/rounding bug in the warp path rather than a wrong-block/
desync bug. Spent the rest of the round auditing warp.rs's math line by
line against av1/common/warped_motion.c and mvref_common.c: confirmed
FAITHFUL (no bug found yet) in find_affine_int's LS_MV_MAX inner-loop
gate, LS_SQUARE/LS_PRODUCT1/LS_PRODUCT2 shift constants (LS_MAT_DOWN_BITS
=2, >>4 matches), get_mult_shift_diag/ndiag (confirmed we use the
USE_LIMITED_PREC_MULT=0 -- i.e. simple Px*iDet + ROUND_POWER_OF_TWO_
SIGNED_64 -- branch, matching libaom's actual compiled path, not the
unused resolve_multiplier_64 branch), get_shear_params/av1_get_shear_
params (alpha/beta/gamma/delta derivation, WARP_PARAM_REDUCE_BITS
rounding, is_affine_shear_allowed bound), av1_warp_affine_c's whole
horizontal+vertical two-pass loop (offset_bits, reduce_bits, sx4/sy4
alpha/beta/gamma/delta stepping, tap-offset formula, final clip_pixel
formula) all transcribed correctly, and the DIV_LUT table's first ~20
entries spot-checked byte-identical.

NOT YET CHECKED / next round's first move: record_sample's row_offset/
col_offset sign conventions and find_samples' above/left/TL/TR traversal
order against av1_find_warp_samples in mvref_common.c (only structurally
skimmed, not line-audited) -- since every arithmetic primitive downstream
now checks out clean, a wrong *input sample* (wrong neighbour MV/position
recorded) is the next most likely place for a small-but-real numeric
error to originate. Also worth trying: print our own wmmat/alpha/beta/
gamma/delta for this pinned block and compare against libaom's
find_affine_int by adding a debug printf at the av1_find_projection call
site in decodemv.c (~1624) and rebuilding aomdec -- would immediately
localize the bug to sample-gathering vs. estimation vs. filtering without
more manual line-diffing.

Gate/test changes this round (stream.rs): EC_WARP_GATE_ATTEMPTS env
override on the refuse-or-match gate's seed count; dump-on-mismatch via
EC_AV1_GATE_DUMP added to that gate (previously missing); new pinned
`pinned_warp_stream_decodes_pixel_exact` test with ASCII diff-mask
eprintln on failure. cargo check -p ec-av1 --lib and --tests both clean,
0 errors/warnings-of-note (only pre-existing missing-doc lint noise).
Gate itself NOT flipped to require pixel-exact yet -- still legally
refuses-or-matches, correctly reflecting that warp is not yet proven
correct.

tmpfs at session start: 65% (11G/16G), not a blocker this round.
wip(av1): affine warp estimation + filter ported, wired into leaf16 -- COMPILING WIPAhmet Kaan Gümüş · efe3e65
wip(av1): affine warp estimation + filter ported, wired into leaf16 -- COMPILING WIP

lane-warp round 2, budget-capped stop. Step 0 (verify r1's alphabet-
selection change) ran clean first: warp/obmc(x2)/deblocking gates all
green on e886150 before touching anything -- no desync from r1's
num_proj_ref-gated 3-symbol motion_mode_cdf read.

Ported this round (new module crates/ec-av1/src/warp.rs):
- av1_findSamples in full: decode.rs's num_proj_ref (count-only) replaced
  by find_samples, which now also records each sample's own (pts1, pts2)
  1/8-pel coordinates (record_samples, mvref_common.c) -- num_proj_ref is
  now find_samples(..).len(), a pure refactor kept bit-identical (verified:
  both OBMC gates + the warp refuse-or-match gate still green after it).
- av1_selectSamples: MV-diff threshold filter (thresh = clamp(max(bw,bh),
  16, 112)), run only when num_proj_ref > 1, matching decodemv.c's own
  gate.
- find_affine_int + av1_get_shear_params -> find_projection: the full
  least-squares affine fit (LS_SQUARE/LS_PRODUCT1/LS_PRODUCT2, the 64-bit
  divisor-resolution div_lut, get_mult_shift_diag/ndiag) plus the shear
  decomposition/validity check (alpha/beta/gamma/delta, WARP_PARAM_REDUCE_
  BITS, is_affine_shear_allowed). Returns None on a singular fit or
  non-representable shear -- both spec fallback cases collapse to "use the
  block's own translational MV" at the call site, matching libaom's own
  wm_params.invalid handling (reconinter.c allow_warp: global warp is
  never the fallback here since this decoder's global motion is always
  IDENTITY).
- av1_warp_affine_c: the 8x8-tile, two-pass 8-tap affine filter
  (av1_warped_filter, 193 rows, transcribed verbatim from warped_motion.c),
  8-bit non-compound only (this decoder's warp arm only ever reaches a
  single-ref, non-skip-mode block, so conv_params->is_compound is always
  false on this path -- the compound/highbd branches are dropped).

Wired into decode_inter_block (the 16x16+ leaf) only: motion_mode == 2
no longer refuses by name. It computes samples via find_samples +
select_samples, calls find_projection, and when Some(params) overrides
the block's already-computed translational-MV prediction (pred_y/u/v)
with warp_affine's own output (luma subsampling 0/0, chroma 1/1, 4:2:0)
before the OBMC blend check (mutually exclusive with motion_mode==1).
When find_projection returns None, the existing translational-MV
prediction is left untouched -- exactly the spec's own invalid-warp
fallback.

NOT ported/wired this round (steps 5-6 remaining):
- decode_inter_block8 (the 8x8 leaf): STILL refuses motion_mode == 2 by
  name unconditionally -- warp.rs's functions are leaf16-only so far.
- The a_real_aomenc_stream_with_warped_motion_refuses_or_matches gate
  (stream.rs ~3255, "gradients" lavfi content, default aomenc flags) still
  reads "40 named refusals, 0 pixel-exact matches out of 40" after this
  round's wiring -- unchanged from before. NOT diagnosed within budget
  whether that's because (a) the gate's own content/encoder flags never
  actually reach a WARPED_CAUSAL-coded block on this decoder's supported
  path (matches the documented never-fired-gate class: gradients content +
  default flags is a different recipe from the charter's own
  --auto-alt-ref=1 --lag-in-frames=16 --enable-fwd-kf=0
  --enable-ref-frame-mvs=0), or (b) it does reach one and either
  find_projection legitimately returns None every time (falls back to
  translational, no visible difference), or hits some OTHER named refusal
  first (interintra, screen-content-tools, sub-16 partition -- all seen in
  the OBMC gate's own refusal list on identical content). WARP_SELECTED_HITS
  was not read back this round to disambiguate -- next round's first move.
- Gate itself not flipped to require pixel-exact + no self-pin added
  (step 6) -- premature until the above is diagnosed with real fire
  evidence.

cargo check -p ec-av1 --lib: clean, 0 errors. Verified green this round:
both OBMC gates (a_real_aomenc_stream_with_obmc_decodes_pixel_exact +
_obmc_8x8), a_real_aomenc_stream_with_warped_motion_refuses_or_matches
(still legally refuse-or-match, unchanged pass/fail shape). Deblocking
gate verified green at step 0 before any edit this round (unaffected by
this round's changes -- warp.rs is dead code on that path).

NEXT: read WARP_SELECTED_HITS after a run against the charter's own
aomenc flags (--auto-alt-ref=1 --lag-in-frames=16 --enable-fwd-kf=0
--enable-ref-frame-mvs=0, dims mult of 64) to get a real fire count
before touching leaf8 or the gate; wire decode_inter_block8 the same way
find_samples/select_samples/find_projection/warp_affine already support
(the bw4/bw/bh plumbing is generic, only the call site inside
decode_inter_block8's own motion_mode match needs the same three-call
sequence copied over).
wip(av1): WARPED_CAUSAL motion_mode alphabet + num_proj_ref -- COMPILING WIPAhmet Kaan Gümüş · bd6939d
wip(av1): WARPED_CAUSAL motion_mode alphabet + num_proj_ref -- COMPILING WIP

lane-warp round 1, budget-capped stop. Ported:
- cdf.rs/cdf_state.rs: MOTION_MODE 3-symbol CDF (default_motion_mode_cdf's
  square rows, spec 9.4), threaded into CdfState with reset/default wiring.
- decode.rs has_top_right + num_proj_ref: av1_findSamples reduced to its
  COUNT only (no pts/pts_inref) -- exactly what motion_mode_allowed needs
  to pick the 3-symbol motion_mode_cdf over the 2-symbol obmc_cdf
  (num_proj_ref >= 1 under allow_warped_motion). record_samples' actual
  sample coordinates are NOT ported (not needed for the alphabet choice).
- Wired into both decode_inter_block (16x16+) and decode_inter_block8: the
  old "any allow_warped_motion=1 eligible block refuses" is gone. Now: read
  the correct alphabet, OBMC arm unchanged, WARPED_CAUSAL arm (motion_mode
  == 2) still refuses by name (WARP_SELECTED_HITS counts it) since
  av1_find_projection (least-squares warp param estimation), the shear
  validity check, and the affine warp filter (warped_motion.c, spec
  7.11.3.3-.8) are NOT ported this round -- steps 2-4 of the r1 charter.

DYING WORDS -- exactly what's done/remaining against the charter's 6 steps:
1. DONE: 3-symbol motion_mode_cdf read + num_proj_ref-based eligibility
   (count only, both leaves).
2. PARTIAL: av1_findSamples' sample COUNT ported (has_top_right +
   num_proj_ref); record_samples (actual pts/pts_inref coordinates) and
   av1_selectSamples are NOT ported -- needed for step 3.
3. NOT STARTED: av1_find_projection/find_affine_int (warp parameter LS
   estimation) + av1_get_shear_params (shear validity).
4. NOT STARTED: av1_warp_affine_c (the 8x8-tile affine filter itself,
   warped_filter table, two-stage rounding chain).
5. NOT STARTED: wiring the warp filter into prediction (luma+chroma) at
   either leaf -- WARPED_CAUSAL still returns Err(unsupported(..)) instead.
6. NOT STARTED: flipping the a_real_aomenc_stream_with_warped_motion_
   refuses_or_matches gate to pixel-exact-required, or adding self-pin.
   NOT RUN this round either (budget) -- existing gate (refuse-or-match)
   should still pass unmodified since named refusals are still legal
   outcomes, but this was not verified live before the budget cap hit.

cargo check -p ec-av1 --lib --tests: clean, 0 errors (only pre-existing
missing-doc warnings). No test run this round -- budget spent on the port
itself, not verification. NEXT: verify the gate still green, then port
av1_findSamples' sample coordinates (needed for step 3 regardless of
whether find_projection lands the same round).