forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 00c1b3ff2d80d84fef71bb6208110dedbbd95fc4

2026-09-01

Merge branch 'lane-hbdinter': 10-bit loop restoration (SGR box sums scaled by bd-8, wiener clamp at the bd bound), combine_compound two-step rounding; 10-bit inter+LR gate (verifier PASS, 271/0/23); restoration leaves NEVER_EXERCISED_10BITAhmet Kaan Gümüş · b933555
Merge branch 'lane-hbdinter': 10-bit loop restoration (SGR box sums scaled by bd-8, wiener clamp at the bd bound), combine_compound two-step rounding; 10-bit inter+LR gate (verifier PASS, 271/0/23); restoration leaves NEVER_EXERCISED_10BIT

Also drops enable-dist-wtd-comp and enable-global-motion from
NEVER_EXERCISED_10BIT: lane-cwarp's 10-bit compound global-warp gate passes
=1 for both, so never_exercised_10bit_matches_the_gate_recipes was already
failing at 9c35ecc. gate_coverage is green again after this commit.

Conflict resolutions: warp.rs took main's (cwarp warp_inner/warp_affine_compound
is a superset of hbdinter's const BD -> bit_depth()); mc.rs kept hbdinter's
single (bd-8) diffwtd_mask round plus its combine_compound two-step and
inter_pred_hits counter; stream.rs kept main's encode_10bit_gradients helper
and cwarp gates plus hbdinter's a_real_aomenc_10bit_inter_sequence gate.
merge lane-inter8 ae69b25 into lane-gmaffineAhmet Kaan Gümüş · cadfff7
merge lane-inter8 ae69b25 into lane-gmaffine

Conflict resolution (both sides kept, duplicates unified):
- obmc chroma-above skip: lane-inter8's explicit BLOCK_4X4/4X8/8X4 match list
  (correct for 8x32/32x8, where lane-gmaffine's `w>=16 && h>=16` would have
  skipped chroma libaom blends).
- OBMC neighbour filter: read from lane-inter8's now mi-granular
  `Neighbours::above_filter/left_filter`; lane-gmaffine's duplicate
  `MiGrid::filters` per-mi record (plus `grid_or_slot`) deleted as the same
  field recorded twice.
- `decode_inter_block8`: one `global_motion` param (lane-gmaffine's) plus
  lane-inter8's `sign_bias_table`/`tpl_frame`; single `gm_table` build at the
  top; returns `(.., leaf_filter_syms, leaf_refs)`.
- the leaf's temporal-mv `cur_offset_0` keys on the leaf's OWN reference
  (lane-inter8 hardcoded LAST because it refused every other ref).
- per-leaf `record_inter_rect_mi` stamp keeps lane-gmaffine's REAL filter
  symbols instead of the `[3, 3]` intra sentinel; the coarse whole-16x16
  `record_inter` and its last_filter/last_ref bookkeeping are gone.
- the interior 16x16 SPLIT branch is lane-inter8's restructure (part16 read
  once, one shared leaf loop); refusal strings follow it.
fix(av1): refuse bit_depth 12 in decode_stream -- twelve_bit parsed fine but warp REDUCE_BITS_HORIZ is a hard 3 (libaom needs 5 at bd 12), MC round_0/round_1 and wiener rounding change, CDEF/film grain ungated: a 12-bit stream decoded silently wrong; refusal + inventory entry + reachability testAhmet Kaan Gümüş · efb4f45
fix(av1): refuse bit_depth 12 in decode_stream -- twelve_bit parsed fine but warp REDUCE_BITS_HORIZ is a hard 3 (libaom needs 5 at bd 12), MC round_0/round_1 and wiener rounding change, CDEF/film grain ungated: a 12-bit stream decoded silently wrong; refusal + inventory entry + reachability test
fix(av1): a warp-capable frame under a scaled reference read the 3-symbol motion_mode_cdf where libaom reads the 2-symbol obmc_cdfAhmet Kaan Gümüş · cd8ea46
fix(av1): a warp-capable frame under a scaled reference read the 3-symbol motion_mode_cdf where libaom reads the 2-symbol obmc_cdf

libaom motion_mode_allowed (blockd.h:1484) drops WARPED_CAUSAL eligibility when
av1_is_scaled(block_ref_scale_factors[0]), so a superres block reads obmc_cdf.
We read motion_mode_cdf: the decoded value stayed SIMPLE_TRANSLATION, so nothing
errored -- the stream decoded "OK: 24 frames" with quietly wrong pixels from the
diverged coder state (frame 1: 1342 luma pixels off, growing to |d|=18 by frame
23). The existing warp refusal could not see it (warp_params is None there).

Gate: the superres gate now runs --enable-warped-motion=1 by DEFAULT and
hard-asserts scaled_warp_suppressed_hits() > 0 -- 12/12 pixel-exact, 25 blocks
took the obmc_cdf arm only because of this fix. decode_probe gains EC_PROBE_OUT
(raw yuv420p dump), the instrument that located it. Sibling site in
decode_inter_block8 is unreachable (refused earlier) and carries a note.
fix(av1): eob_pt CDF kept no TX_CLASS_HORIZ/VERT row above 8x8 -- a V_DCT 16x16 var-tx leaf read the 2D table and desyncedAhmet Kaan Gümüş · 5ec0940
fix(av1): eob_pt CDF kept no TX_CLASS_HORIZ/VERT row above 8x8 -- a V_DCT 16x16 var-tx leaf read the 2D table and desynced

libaom picks eob_multi_ctx = (tx_class == TX_CLASS_2D) ? 0 : 1 at EVERY
eob_pt table size (decodetxb.c:200); this crate carried the class-1 sibling
only for 4x4 and 8x8 luma. TxMode::Select made the hole reachable: a 32x32
inter block's var-tx leaf is a 16x16 luma TU, whose inter tx set
EXT_TX_SET_DTT9_IDTX_1DDCT is the only 16x16 set holding V_DCT/H_DCT.

Adds eob_pt_256_luma_class1 and the three chroma siblings (an inter block's
chroma TU inherits its luma unit's tx_type, so 1D classes reach chroma too),
their defaults from av1_default_eob_multi{256,64,16}_cdfs[q][plane][1], and
their per-frame counter resets. 32-point and larger need none (DCT_IDTX /
DCTONLY hold no 1D type).

Found by msac range ladder vs instrumented aomdec on r1's failing seed-43
stream: first divergent element is the eob of the 16x16 leaf at mi (4,8),
ref eob=248 rng=65032 vs ours eob=247 rng=56584 with identical all_zero and
tx_type ranges. All four frames of that stream are now pre-filter bit-exact.

Gate a_real_aomenc_inter_sequence_with_tx_select_decodes_pixel_exact is
green and gains a 10-bit arm (-b 10 --input-bit-depth=10); suite 269 passed
/ 0 failed / 23 ignored.
fix(av1): mi-granular inter neighbour bands + three 8x8-leaf context defects (8-bit 8x8-split gate GREEN)Ahmet Kaan Gümüş · cbf9f54
fix(av1): mi-granular inter neighbour bands + three 8x8-leaf context defects (8-bit 8x8-split gate GREEN)

lane-inter8 r2. `Neighbours`' inter side bands (skip, skip_mode, is_inter,
ref0/ref1, comp_group_idx, compound_idx, interp filter) were SUB(16px)-granular,
so all four 8x8 leaves of a split 16x16 shared one slot. They are now mi(4px)
granular (`record_inter_rect_mi` / `record_compound_ctx_rect_mi`, readers index
by mi), which makes the r1 `prev_leaves` sibling-override hack unnecessary --
each leaf stamps its own 2x2-mi span right after it decodes.

Two further defects that the granularity change exposed, both class
context-read-from-one-cell:

1. `decode_inter_block8`'s COMPOUND arm `return`ed before the end-of-function
   `record_mi`/`fill_lf_grid` the single-ref arm falls through to. Every leaf in
   the gate's stream is compound, so a split 16x16 left `above_side_mi` at 16:
   the 16x16 below it computed partition ctx 0 instead of 1 and read
   PARTITION_NONE where aomdec read PARTITION_SPLIT.
2. `get_comp_group_idx_context`/`get_comp_index_context` took the leaf's
   ENCLOSING 16x16 corner (`outer_at`); they now take mi coordinates and the
   leaf passes its own.

Also threaded the frame's temporal mv field (`tpl_frame`) into the leaf's two mv
stacks, which passed `None` while `decode_inter_block` one level up always
passed it (class parsed-then-discarded). Alignment only: it did not move this
stream's ladder (no `use_ref_frame_mvs` here).

Gate a_real_aomenc_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact is
GREEN and un-ignored (4 frames pixel-exact vs ffmpeg, interior-split counter
asserted). aomdec EC_MODE ladder 42/57 -> 57/57. The 10-bit twin stays ignored:
it dies on "an INTER 32x32 partition type ... (value=9)", and `EC_TRACE=1
aomdec` proves that stream contains no value=9 anywhere -- our own desync
(class refusal-from-own-desync), disproving the r1 ledger line that blamed
aomenc for emitting PARTITION_VERT_4.
feat(av1): hidden-frame pixel oracle -- EC_AV1_FINAL_DUMP on both sides + the repo's first alt-ref gateAhmet Kaan Gümüş · 3f461cf
feat(av1): hidden-frame pixel oracle -- EC_AV1_FINAL_DUMP on both sides + the repo's first alt-ref gate

Every pixel gate here compared decode_stream's output against ffmpeg/aomdec
y4m, and both emit SHOWN frames only, so a hidden (show_frame=0) alt-ref
frame -- which his films are full of, aomenc's default --lag-in-frames --
was decoded, stored into a reference slot and never compared to anything
(class gate-blind-to-hidden-frames).

- scripts/instrument-aom-oracle.sh rung 12: EC_AV1_FINAL_DUMP=<prefix> in the
  instrumented aomdec -> <prefix>.f<N> per DECODED frame (decode order, hidden
  included), after CDEF+superres+loop restoration, i.e. the frame as stored
  into the reference buffer; Y/U/V crop-sized rows, 8-bit u8 / high bitdepth
  u16 LE (bit-depth correct, unlike the u16->u8 narrowing debug dumps).
- ec-av1 stream.rs: matching EC_AV1_FINAL_DUMP at the ref-slot store site,
  same layout; prefix from a thread-local (set_final_dump_prefix) falling back
  to the env var so a gate cannot race a sibling test's decode.
- test helper decode_all_frames_vs_oracle() + gate
  a_real_aomenc_altref_sequence_hidden_frames_decode_pixel_exact: aomenc
  --auto-alt-ref=1 --lag-in-frames=25 --arnr-maxframes=0 on moving content,
  8-bit and 10-bit, hard assert hidden >= 2, byte-exact per decode-order
  frame. Result: 43 frames / 3 hidden each depth, all pixel-exact.
  --arnr-maxframes=0 is load-bearing and measured: with libaom's temporal
  alt-ref filter on, the same recipe emits 0 hidden frames (vacuous gate).
fix(av1): libaom-exact has_tr/has_bl rows for the 64x32/32x64 strips too + lane-rectx r4 reportAhmet Kaan Gümüş · 725112d
fix(av1): libaom-exact has_tr/has_bl rows for the 64x32/32x64 strips too + lane-rectx r4 report

The rect reach tables' fallthrough arm was the 16x32 row; the superblock-level
strips get their own transcribed has_tr_64x32/has_tr_32x64 and
has_bl_64x32/has_bl_32x64 values now. Re-ran the four gates that reach those
sizes: 4 passed, 0 failed.
Merge branch 'lane-part32': SB-level HORZ/VERT/HORZ_A/HORZ_B/VERT_A/VERT_B at 64x64 gated pixel-exact (has_tr_vert/has_bl_vert tables for VERT_A/B visit order); refusal narrowed to HORZ_4/VERT_4 (verifier PASS, 269/0/24)Ahmet Kaan Gümüş · 9235c22
Merge branch 'lane-part32': SB-level HORZ/VERT/HORZ_A/HORZ_B/VERT_A/VERT_B at 64x64 gated pixel-exact (has_tr_vert/has_bl_vert tables for VERT_A/B visit order); refusal narrowed to HORZ_4/VERT_4 (verifier PASS, 269/0/24)

Merge fixup: lane-part32's new decode_block_rect/decode_block_rect64 call sites
(4 AB arms + the strip64! macro) needed HEAD's added `reduced_tx_set` argument.
fix(av1): palette gates pixel-compare every decoded attempt, and sub-16 leaves clear their own palette neighbour stateAhmet Kaan Gümüş · 588a554
fix(av1): palette gates pixel-compare every decoded attempt, and sub-16 leaves clear their own palette neighbour state

Gate integrity (class gate-skips-on-its-own-failure): both rect palette gates
had a third bucket -- attempts that decoded fine but whose hit counter did not
move skipped the pixel comparison entirely (16/70 per gate). The counter now
only decides whether an attempt counts toward the hit assertion; every
successful decode is compared. This immediately exposes a pre-existing
chroma-only mismatch (rgbtestsrc 128x128 cq=55, U plane, 30 px, max |d| = 2),
so both gates are RED -- proved pre-existing by stashing the decode.rs diff.

Stale neighbour state (class cdf-row-held-constant): record_palette_y/uv_rect's
'for cell in 0..w / SUB' loops were no-ops below 16px, and neither
decode_leaf_rect nor decode_leaf8 recorded anything, so a sub-16 leaf left a
previous block's palette size and colours in the above/left arrays for the next
block's ctx and colour cache. Both leaves now stamp size 0 over their own cell.

Also corrects lanes/palette2-r7.report.md's aomenc command line, which named
two flags the code never passes.
test(av1): gate coverage is per (tool x bit depth), not per toolAhmet Kaan Gümüş · 0810a85
test(av1): gate coverage is per (tool x bit depth), not per tool

Every 10-bit gate ran --enable-restoration=0, so the 10-bit loop-restoration
path was never exercised and two hbd defects (SGR box sums unscaled, Wiener
clamp at the 8-bit bound) survived the '10-bit bit-exact' milestone.
gate_coverage.rs now classifies each real-aomenc gate by bit depth and pins
NEVER_EXERCISED_8BIT (12) and NEVER_EXERCISED_10BIT (19) over a fixed
26-flag TOOL_UNIVERSE, with the same 'defaulted means unknown' rule: only an
explicit --enable-<tool>=1 in a gate of that depth retires an entry.
45 gates, 4 of them 10-bit.
test(av1): gate coverage is per (tool x bit depth), not per toolAhmet Kaan Gümüş · 969b81e
test(av1): gate coverage is per (tool x bit depth), not per tool

Every 10-bit gate ran --enable-restoration=0, so the 10-bit loop-restoration
path was never exercised and two hbd defects (SGR box sums unscaled, Wiener
clamp at the 8-bit bound) survived the '10-bit bit-exact' milestone.
gate_coverage.rs now classifies each real-aomenc gate by bit depth and pins
NEVER_EXERCISED_8BIT (12) and NEVER_EXERCISED_10BIT (19) over a fixed
26-flag TOOL_UNIVERSE, with the same 'defaulted means unknown' rule: only an
explicit --enable-<tool>=1 in a gate of that depth retires an entry.
45 gates, 4 of them 10-bit.
fix(av1): rect leaves read has_tr/has_bl from the wrong block-size table; mi-exact intra mode neighbours (cherry-pick lane-sub8 1841406)Ahmet Kaan Gümüş · ae5d89d
fix(av1): rect leaves read has_tr/has_bl from the wrong block-size table; mi-exact intra mode neighbours (cherry-pick lane-sub8 1841406)

Two defects, both on the sub-16x16 rect strip path:

1. `Reach::of_rect` looked up `HAS_TOP_RIGHT_RECT`/`HAS_BOTTOM_LEFT_RECT`
   indexed by `bw == 16` -- tables transcribed for the 32x16/16x32 strips
   only. A 16x8 block therefore read has_tr_16x32/has_bl_16x32 (4 bytes)
   where libaom reads has_tr_16x8/has_bl_16x8 (16 bytes), and an 8x16 read
   the 32x16 rows. `top_right_rect`/`bottom_left_rect` are now libaom
   `has_top_right`/`has_bottom_left` verbatim at block granularity, with the
   16x8/8x16 tables added. Symptom: a D203 16x8 strip's prediction was exact
   until the ray first reads BELOW its own height, then diverged (first diff
   at (44,18) of a 64x64 key frame, growing to the whole lower-right frame).

2. Cherry-picked lane-sub8 1841406's mi-granular intra-mode neighbour map
   (`sub8_mode_col/row`, `record_mode_mi`, `mode_above_mi`/`mode_left_mi`,
   plus `has_tr_4x4`/`has_bl_4x4` in encode.rs); the split-4x4 hunks are
   dropped, this branch has no `decode_leaf_split4`. `decode_leaf_rect` now
   reads through that map and records its own bw x bh span, which fixes the
   wrong `kf_y_mode` CDF row r3 located at leaf mi=(4,12).

Gate `a_real_aomenc_stream_with_a_coded_rect_strip_below_16x16_decodes_pixel_exact`
is green: pixel-exact vs ffmpeg, rect_leaf_coeff_hits=8 (6 non-skip 16x8 +
1 non-skip 8x16 luma transforms). Its recipe moved to mandelbrot start_x=-0.6
cq16 with --enable-filter-intra=0 (filter intra on a strip is a separate,
still-refused predictor).
fix(av1): combine_compound folded two shifts libaom keeps separateAhmet Kaan Gümüş · cc39f29
fix(av1): combine_compound folded two shifts libaom keeps separate

libaom's `av1_highbd_dist_wtd_convolve_2d_c` (and its lowbd twin) applies a
TRUNCATING `>> DIST_PRECISION_BITS` to the weighted sum and only then
`ROUND_POWER_OF_TWO(.., round_bits)`. We folded both into `Round2(sum, 8)`,
which rounds one LSB high whenever `(sum >> 4) + 8` is one below a multiple
of 16 and the dropped low 4 bits are non-zero. Bit-depth independent (the
CONV_BUF round_offset cancels exactly in this crate's unbiased intermediate
domain), so it is a rare off-by-one at any depth -- raised by lane-cwarp's
measurement that 10-bit compound still mismatches frame 1 luma while
single-reference 10-bit is 6/6 exact. Unverified against that fixture.

cargo test -p ec-av1 --lib -j3 compound: 16 passed, 0 failed, 73.58s
(includes the real-aomenc 8-bit compound and masked-compound gates).
fix(av1): chroma intra edge-filter type reads the chroma neighbour's uv_mode, not `false`Ahmet Kaan Gümüş · f034839
fix(av1): chroma intra edge-filter type reads the chroma neighbour's uv_mode, not `false`

`get_intra_edge_filter_type` (reconintra.c:974) picks the directional
edge-filter strength/upsample table from the CHROMA neighbours' `uv_mode`
for planes 1/2; `decode_leaf8` and `decode_leaf_split4` passed a hardcoded
`false` for every chroma reconstruct/read_plane, so a directional chroma
block next to a smooth-uv_mode one filtered its above edge with kernel
{0,4,8,4,0} (strength 1) where libaom uses {0,5,6,5,0} (strength 2).

The coarse SUB-grid `above_uv_mode`/`left_uv_mode` slots cannot name that
neighbour once a 16x16 is split into 8x8 leaves (the leaf above writes the
same row slot the block to the left owns), so this adds the `uv_mode` twin
of `sub8_mode_col`/`sub8_mode_row` -- `uv_mode_col`/`uv_mode_row`, written
by `record_rect`, `record_split_luma`, `decode_leaf8` and
`decode_leaf_split4`, read mi-exact by `smooth_uv_neighbour` with the
coarse slot as fallback.

lane-sub8's gate `a_real_aomenc_stream_with_a_sub8_split_decodes_pixel_exact`
goes RED (4 chroma pixels, U/V row 20 cols 18-19, |delta| <= 3) -> GREEN
(4 firing + pixel-exact runs). Also drops the stale
"a partition below 16x16 other than a clean split" capability claim, which
r4's fixes removed from the decode path (refusal_inventory RED -> green).
fix(av1): one-sided chroma OBMC below 16px + mi-granular OBMC neighbour filtersAhmet Kaan Gümüş · 12bec51
fix(av1): one-sided chroma OBMC below 16px + mi-granular OBMC neighbour filters

libaom av1_skip_u4x4_pred_in_obmc (reconinter.c:820, DISABLE_CHROMA_U8X8_OBMC 0):
when a block's chroma plane size is 4x4/4x8/8x4 -- any luma dimension below 16
under 4:2:0 -- OBMC is ONE-SIDED on chroma: the ABOVE pass skips U/V entirely,
the LEFT pass still blends them. We blended chroma on both passes, which is
exactly the residual that left a_real_aomenc_stream_with_obmc_8x8's V plane off
by ~2 on seed 53 (luma and U happened to match). That gate is now GREEN
pixel-exact over 24 frames with 4 real 8x8 OBMC leaves, and no longer degrades
"never fired" into a SKIP -- it panics (gate-skips-on-its-own-failure).

Second defect, a hard PANIC: obmc_blend took the neighbour's interp filter from
the 16px-granular `Neighbours` slot, which is only written after a whole 16x16
finishes. An 8x8 leaf OBMC-blending its own SIBLING leaf therefore read the
`[3, 3]` "intra/unset" sentinel and `from_switchable_symbol` panicked (this was
the warp gate's crash -- NOT an entropy desync). MiGrid now carries mi-granular
filter symbols (libaom uses the neighbour mbmi's own interp_filters), with the
coarse slot kept as fallback. decode_inter_block8 also hands its real filter
symbols and reference back to the caller, which recorded `[3, 3]` and a
hardcoded LAST_FRAME for every 8x8-split 16x16 until now (also fixes the leaf's
loop-filter ref id).

Gates a_real_globalmv_8x8_leaf / a_real_warped_causal_8x8_leaf stay RED: both
now die on partition/angle-delta refusals for tools explicitly DISABLED on the
aomenc command line, i.e. an entropy desync in the 8x8-leaf path itself
(lane-inter8's cluster), not in the motion code. Recipe knobs
EC_8X8_MINPART/EC_8X8_MAXPART added for the next round's search.
fix(av1): 10-bit loop restoration, diffwtd mask and warp all ran with 8-bit constantsAhmet Kaan Gümüş · 42752a0
fix(av1): 10-bit loop restoration, diffwtd mask and warp all ran with 8-bit constants

lane-hbdinter r1. The charter's premise (a 10-bit inter frame 2 mismatch)
did NOT reproduce with the tool-restricted inter recipe; widening the
recipe to real loop restoration did, and the defect turned out to be
bit-depth-wide, not inter-specific -- it fires on the KEY frame too, and
lane-hbd's 10-bit gate simply had `--enable-restoration=0`.

Four sites carried hardcoded 8-bit constants, all checked against the
oracle source (~/.cache/aom-oracle/src):

- restoration.rs `compute_ab`: libaom `restoration.c:660-662` scales the
  box sums back to the 8-bit range before forming `p`
  (`a = Round2(A, 2*(bd-8))`, `b = Round2(B, bd-8)`; `B[k]` keeps the raw
  sum). We never did -> wrong `z`, wrong blend factor at 10-bit. This is
  the site the gate attributes the mismatch to (ablation below).
- restoration.rs `apply_wiener_stripe`: the horizontal intermediate was
  clamped to a fixed `[0, 8191]`, i.e. `WIENER_CLAMP_LIMIT(3, bd=8) - 1`
  (`convolve.h:43`), in this crate's *unbiased* domain. Correct bounds are
  the libaom limit shifted down by its `1 << (bd + 3)` bias. At 8-bit
  neither end is reachable (which is why every 8-bit gate passed); at
  10-bit the top of the range is 16368, so most Wiener intermediates were
  truncated.
- mc.rs `diffwtd_mask`: libaom `reconinter.c:307` rounds the CONV_BUF
  difference by `INTER_POST_ROUND + (bd - 8)`; we used the constant 4.
- warp.rs `warp_affine`: `const BD: i32 = 8` fed both offset terms and the
  final `sum - (1<<(bd-1)) - (1<<bd)` (tip from lane-gmaffine, confirmed
  against `av1_warp_affine_c`).

Non-compound sub-pel MC needs no change: libaom only shifts round_0/round_1
when `bd + FILTER_BITS - round_0 + 2 > 16` (`convolve.h:83`), which is
12-bit only -- 10-bit keeps 3/11 and 3/7.

Gate: `a_real_aomenc_10bit_inter_sequence_decodes_pixel_exact` (stream.rs)
-- real aomenc yuv420p10le, 128x64, 16 frames, forward P frames, deblock +
loop restoration on, hard-asserting the new `mc::inter_pred_hits` counter,
`deblock_hits`, and a non-RESTORE_NONE LR filter, comparing all 16 frames
against ffmpeg's own 10-bit decode. Green with the fix; reverting only the
`compute_ab` scaling turns it red at frame 0 (V plane, sample 52: ours 289,
ffmpeg 288).

cargo test -p ec-av1 --lib: 268 passed, 0 failed, 23 ignored (664s).
feat(av1): per-reference GLOBAL warp on compound blocks (was silently translational)Ahmet Kaan Gümüş · e67ae7f
feat(av1): per-reference GLOBAL warp on compound blocks (was silently translational)

decode_inter_block's compound branch predicted both taps through
mc::predict_compound_intermediate; libaom runs av1_init_warp_params per
reference, so each ref of a GLOBAL_GLOBALMV block under a ROTZOOM/AFFINE
model is filtered through av1_warp_plane into the compound intermediate.
No refusal named this -- silently wrong pixels.

warp.rs: warp_affine split into warp_inner + store closure, hardcoded BD=8
replaced by crate::decode::bit_depth(), new warp_affine_compound
(av1_highbd_warp_affine_c's is_compound branch, unbiased to match this
crate's intermediate domain). mc.rs: diffwtd_mask's round was missing
libaom's (bd - 8) term. New gate a_real_compound_global_warp_stream_decodes_pixel_exact:
6/6 pixel-exact, compound_warp_hits=37. 10-bit arm ignored, blocked by a
pre-existing 10-bit compound MC defect (ablation in its doc comment).
feat(av1): inter 16x16 PARTITION_SPLIT into 8x8 leaves, and three real leaf-context defectsAhmet Kaan Gümüş · 1bfb2cb
feat(av1): inter 16x16 PARTITION_SPLIT into 8x8 leaves, and three real leaf-context defects

The inter tile path now reads the real partition alphabet at the 16x16 level
and recurses PARTITION_SPLIT into four 8x8 inter leaves (interior blocks, not
just frame-edge straddles), counted by INTER_SUB16_SPLIT_HITS.

Three defects in decode_inter_block8, each found by diffing our new EC_MODE
range ladder against the instrumented aomdec's rung-4 EC_MODE:

1. comp_mode/compound-ref contexts were built from a FABRICATED neighbour
   (ref0=LAST if inter, ref1=None). av1_get_reference_mode_context asks whether
   the neighbour is COMPOUND, so with real LAST+GOLDEN neighbours the leaf read
   single-ref where aomdec read compound NEAR_NEWMV (mi 4,14).
2. the sibling override was a single prev_leaf; the bottom-left leaf's ABOVE
   neighbour is leaf 0, never leaf 1 (class context-read-from-one-cell). Now a
   prev_leaves slice matched by coordinate, each leaf returning its own refs.
3. both leaf mv stacks used NO_SIGN_BIAS/NO_GM_MV and assign_compound_mv got
   zero gm mvs, while decode_inter_block one level up passed the frame's real
   tables. Threaded through (alignment; inert on this fixture's identity gm).

Gate: a_real_aomenc_[10bit_]inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact
(aomenc --min-partition-size=8 --max-partition-size=16, hard-asserts
inter_sub16_split_hits moved, pixel-exact vs ffmpeg on every frame). It is RED
and #[ignore]d with its reason: Neighbours' above_*/left_* arrays are still
16x16-granular, so leaf (6,12)'s LEFT neighbour cannot resolve to leaf (6,10)
of the previous 16x16 block. Ladder agreement went 41/57 -> 42/57 blocks and
the stream stopped refusing, but it is NOT pixel-exact. The lane is therefore
not merge-ready; see lanes/inter8-r1.report.md.
fix(av1): 16x8/8x16 intra strips never read use_filter_intra -- one dropped symbol per DC_PRED rect leaf desynced the tileAhmet Kaan Gümüş · 7f6f585
fix(av1): 16x8/8x16 intra strips never read use_filter_intra -- one dropped symbol per DC_PRED rect leaf desynced the tile

av1_filter_intra_allowed_bsize is 'both sides <= 32', so libaom reads the
use_filter_intra flag for every DC_PRED 16x8/8x16 block; filter_intra_size_class_rect
returned None at those two sizes, so decode_leaf_rect skipped a symbol the encoder
wrote and every following block decoded from a desynced entropy stream -- silently,
with no error and a whole-frame pixel mismatch. Adds default_filter_intra_cdfs rows
5 (BLOCK_16X8, 9394) and 4 (BLOCK_8X16, 12551) and an asymmetric pin for the pair.

Root-caused against the instrumented aomdec EC_TRACE_COEFF ladder: at leaf mi=(2,4)
ours and the oracle both decode mode=0 uv_mode=9 skip=0, our range 34808 vs the
oracle's 40668; after the fix both are 40668 and the next transform block's all_zero
reads 40269 in both. The same ladder proves r2's rect coefficient path (scans, eob
alphabets, txb sets, nz-map/br/DC-sign contexts) bit-exact for a real non-skip
TX_16X8 leaf and both its TX_8X4 chroma halves.

Lane gate stays RED and no refusal is lifted: a second, independent defect (the
rect leaf's kf_y_mode context comes from the coarse 16x16 neighbour grid, not the
real mi grid) is located to the element in lanes/rectx-r3.handoff.md.

cargo test -p ec-av1 --lib: 269 passed, 1 failed (this lane's own gate), 24 ignored.
fix(av1): inter segment map stamp uses the strip footprint (write_w/write_h), not side x side -- libaom x_mis/y_mis are mi_size_wide/high[bsize]; found by the segr1 verifier, unreachable today behind the rect-residual refusalAhmet Kaan Gümüş · 7555158
fix(av1): inter segment map stamp uses the strip footprint (write_w/write_h), not side x side -- libaom x_mis/y_mis are mi_size_wide/high[bsize]; found by the segr1 verifier, unreachable today behind the rect-residual refusal
fix(av1): cherry-pick lane-tiny 9b1297a (chroma tx size in the deblocker) + lane-sub8 r4 reportAhmet Kaan Gümüş · a3613e4
fix(av1): cherry-pick lane-tiny 9b1297a (chroma tx size in the deblocker) + lane-sub8 r4 report

Round 4 disproved the lane's own premise: instrumented aomdec shows the gate's
streams contain only PARTITION_NONE/SPLIT, so every rect/AB refusal rounds 2-3
attributed to the encoder was our own desync. With the mi-exact mode
neighbours and has_tr_4x4/has_bl_4x4 in place the symbol ladder is exact
(324/324, 318/318) and luma is bit-exact; 4 chroma pixels remain.
fix(av1): PARTITION_VERT_A/_B square sub-blocks must read libaom's _vert_ has_tr/has_bl tablesAhmet Kaan Gümüş · 02e331f
fix(av1): PARTITION_VERT_A/_B square sub-blocks must read libaom's _vert_ has_tr/has_bl tables

lane-part32 r5. A VERT_A/VERT_B partition visits its square sub-blocks
TL, BL, TR, BR -- not raster order -- so the bottom-left square's
top-right neighbour is the partition's own right-hand rectangle, which
is not decoded yet. libaom switches has_top_right/has_bottom_left onto
has_tr_vert_*/has_bl_vert_* for exactly these two partition types
(reconintra.c get_has_tr_table); this crate's `Reach` had only the
raster tables, so the BL 32x32 of an SB-level VERT_A predicted from
never-written samples (has_tr_32x32[0] bit 4 = 1 vs
has_tr_vert_32x32[0] bit 4 = 0).

Symptom on the pinned seed-63 stream: every symbol in sync with the
oracle (aomdec EC_TRACE/EC_TRACE_MODE agree on partition=6 and on every
mode, and the msac range at mi_col=40 matches ours exactly, 53240) yet
the prefilter reconstruction diverges from x=157 of the BL square, and
the 32x64 strip to its right then DC-predicts off that corrupted left
column (107 instead of ~149) and the next superblock row's V_PRED
copies it down -- 4683 luma pixels wrong from one availability bit.

Also lifts the r4 refusal narrowing into a proven capability: the four
SB-level AB arms now decode pixel-exact, hard-asserted arm by arm
(sb_ab_hits_by_arm), and PARTITION_HORZ_4/VERT_4 at 64x64 remain the
only refused 64x64 partition types.
fix(av1): intra tx_depth ctx in an inter frame reads the TXFM_CONTEXT arrays, not the deblock tx gridAhmet Kaan Gümüş · 4fc3a96
fix(av1): intra tx_depth ctx in an inter frame reads the TXFM_CONTEXT arrays, not the deblock tx grid

get_tx_size_context (libaom pred_common.h:342-371) reads above_txfm_context/
left_txfm_context, and an inter neighbour overrides its entry with its own
BLOCK size -- the two differ the moment a neighbour's var-tx tree splits, so
the deblock-grid approximation stops being equivalent under TxMode::Select.
Does not move the frame-2 gate divergence (measured), but is what libaom does.
feat(av1): decode an intrabc block vector -- use_intrabc now reads a real DV instead of refusingAhmet Kaan Gümüş · fbda1c6
feat(av1): decode an intrabc block vector -- use_intrabc now reads a real DV instead of refusing

The DV predictor is the ordinary MV stack queried with INTRA_FRAME
(libaom av1_find_mv_refs/av1_find_ref_dv), the difference reads off a
separate ndvc context at full-pel precision (MV_SUBPEL_NONE), and the
block-copy prediction rides the existing PALETTE_PRED per-block
prediction override with BILINEAR taps off the current frame's own
pre-loop-filter planes (all loop filters are already off when
allow_intrabc). tx_type switches to the inter ext-tx sets, since libaom
counts an intrabc block as is_inter_block.

Two real index bugs fell out: mvstack's sign_bias() and gm_mv() both
indexed table[ref_frame - LAST_FRAME] unguarded, so any INTRA_FRAME
query -- exactly what intrabc does -- panicked at usize::MAX.

The lane's refusal is REPLACED, not lifted: every real aomenc intrabc
block sits under TX_MODE_SELECT, whose inter var-tx transform tree
(read_var_tx_size) this decoder has nowhere, so no stream reconstructs
one end to end yet and enable-intrabc stays in gate_coverage's
NEVER_EXERCISED list. Recipe + evidence in lanes/intrabc-r1.report.md.
Revert the Golomb-tail lift: the refusal is masking a real intra-rect64 defectAhmet Kaan Gümüş · 965c6b6
Revert the Golomb-tail lift: the refusal is masking a real intra-rect64 defect

Reading tails up to 32 leading zeros is bit-identical for every tail an encoder
writes and round-trips cleanly, but it turns
a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact
RED: seed 67 refuses at this cap today and, with the cap raised, decodes to a
frame-0 luma mismatch instead. A key frame cannot legitimately carry a level
above 1<<19, so the long tail is the symptom of an earlier desync in that
stream (class refusal-hides-a-defect). Refusal restored, with the finding and
the exact repro recorded at the cap.
feat(av1): inter var-tx (TxMode::Select) read + per-TU residual; blanket inter refusal liftedAhmet Kaan Gümüş · f66f359
feat(av1): inter var-tx (TxMode::Select) read + per-TU residual; blanket inter refusal lifted

spec 5.11.17 read_block_tx_size/read_var_tx_size, libaom decodeframe.c
read_tx_size_vartx: an inter block's transform size is now the recursive
txfm_split tree from its max square transform down to MAX_VARTX_DEPTH=2,
with the above/left TXFM_CONTEXT arrays maintained per transform unit
(txfm_partition_update) and per block (set_txfm_ctxs; a skipped inter block
records its BLOCK size, not its transform size). Coefficients are read and
reconstructed leaf by leaf in the tree's own order, each unit against its own
slice of the motion-compensated predictor and its own txb_skip context;
chroma keeps the block's uv transform and inherits the top-left unit's coded
tx_type.

- decode.rs: read_block_tx_size/read_var_tx_size/txfm_partition_ctx/
  txfm_partition_update/set_txfm_ctxs, TXFM_SPLIT_READS/HITS counters,
  Neighbours::above_txfm/left_txfm, wired into both decode_inter_block
  residual branches and (new this round) all three decode_inter_block8
  branches via read_inter_luma8.
- TXFM_CTX_INIT = 64, not 0: av1_zero_above_context memsets the txfm row to
  tx_size_wide[TX_SIZES_LARGEST] and av1_zero_left_context to
  tx_size_high[TX_SIZES_LARGEST] (av1_common_int.h:1624/1632). The WIP's
  zero-init was a false premise and desynced frame 2 of the gate.
- cdf.rs/cdf_state.rs: TXFM_PARTITION (21 contexts) in the table set,
  adaptation and the per-frame counter reset; Luma4Inter/Luma4InterSet1
  coefficient sets for a var-tx tree that reaches 4x4.
- stream.rs: the blanket "an inter frame using TxMode::Select" refusal is
  gone; what remains refused is named at its own site (a var-tx leaf larger
  than 32x32; an intra block in an inter frame whose tx_depth splits).
  New gate a_real_aomenc_inter_sequence_with_tx_select_decodes_pixel_exact --
  the aomenc recipe WITHOUT --enable-tx-size-search=0, hard-asserting both
  txfm_split counters and panicking (never SKIPping) when nothing fires.
- refusal_inventory.rs: -1 blanket refusal, +2 narrow ones.

Gate is RED at frame 2 (see lanes/txselect-r1.report.md): key frame + first
inter frame decode pixel-exact with 8 splits taken, frame 2 diverges.
feat(av1): 8x8 inter leaves -- GLOBALMV, WARPED_CAUSAL, global warp, non-LAST refs, interp filter, interior split (gates still RED)Ahmet Kaan Gümüş · d4af78e
feat(av1): 8x8 inter leaves -- GLOBALMV, WARPED_CAUSAL, global warp, non-LAST refs, interp filter, interior split (gates still RED)

decode_inter_block8 was unreachable for interior blocks (every interior 16x16
PARTITION_SPLIT refused), so its GLOBALMV/WARPED_CAUSAL gaps were only half the
story. This wires the interior split down to four 8x8 leaves and closes, at that
leaf: GLOBALMV (gm_get_motion_vector), WARPED_CAUSAL (findSamples ->
find_projection -> warp_affine), allow_warp's global-warp branch, the mv-stack gm
fallback (gm r6's fix, previously only at 16x16+), the full read_single_ref tree
with ref_planes, and read_mb_interp_filter (the leaf read NO filter symbol -- a
silent desync on every SWITCHABLE stream). obmc_mask gains libaom's obmc_mask_1/_2,
which an 8x8 leaf's 4x4 chroma OBMC hits as a hard panic otherwise.

Both new 8x8 gates are RED (no firing attempt yet) and the previously-vacuous
obmc_8x8 gate now reaches real leaves and is one chroma plane off, so this branch
must NOT merge: refusals are lifted without a passing gate. See
lanes/gmaffine-r1.report.md.