forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/ec-av1/src/cdf_state.rsClear filter

2026-10-23

Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23)

On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local
repository with all of its history. This commit restores the working tree
from the newest surviving copy, the host-c server lane mirror. That mirror
matches local main as of the testcut Phase 2 reports, including the tool
cache, the nextest fast profile and changed-crates.sh. The history before
this commit was not recovered.

2026-09-25

ec-av1: lane-av1-422b r1 -- decode_block 4:2:2 rect chroma unit walk behind the header refusalAhmet Kaan Gümüş · 3439011
ec-av1: lane-av1-422b r1 -- decode_block 4:2:2 rect chroma unit walk behind the header refusal

- decode_block tx-size arm: 4:2:2 branch keyed to ss (1,0) -- uv plane block
  (side/2, side), max uv tx = square tx of the smaller dim capped at TX_32X32;
  unit grid is (side/2)/tx wide by side/tx tall
- all three chroma walks (skip / single-TU / multi-TU mu-chunk) generalized
  to cn_cols x cn_rows with per-axis luma anchors (around_mi_rect,
  tu_reach_rect, record_mi_chroma w/h, rect units tuples)
- intrabc chroma prediction buffers sized chroma_side x chroma_height
- Chroma8/Chroma16 txb_skip widened to six rows (+10 chroma rows, neutral
  per token_cdfs.h; mirrors the existing Chroma4/Chroma32 BIG assembly) --
  fixes the txb_skip[3] index panic a 4:2:2 plane-bigger-than-transform read
  took
- chroma422_square_hits() pub + printed by decode_probe; EC_PART/EC_PART_VAL
  traces (EC_TRACE-gated) at the 64/32/16/8 partition reads, format-matched
  to the instrumented aomdec oracle
- header refusal untouched and still committed; bypass used for measurement
  only and reverted before commit; stop + next site in lanes/av1422b.report.md

2026-09-20

ec-av1: refuse using_qmatrix by name (third silent-garbage field) + census tableAhmet Kaan Gümüş · 754210b
ec-av1: refuse using_qmatrix by name (third silent-garbage field) + census table

The re-verifier refuted the report's "exactly two parsed-but-never-read
pixel-affecting fields": QuantizationParams.using_qmatrix/qm_y/qm_u/qm_v are
parsed by ec-av1-syntax (frame.rs:190-196, :1418-1426) and read by NOTHING on
the decode path -- dequantisation is base_q_idx plus the plane DC/AC deltas --
so a spec-legal aomenc --enable-qm=1 stream decoded into silently wrong pixels.
The same class the non-4:2:0 guard just closed for 4:4:4.

- stream.rs decode_stream: refuse using_qmatrix=1 at the frame header, named,
  beside the non-4:2:0 guard.
- Gate a_frame_using_quantisation_matrices_is_refused_by_name (stream.rs):
  real aomenc --enable-qm=0 control decodes; --enable-qm=1 refused by name.
  Fail-pre-fix measured: with the guard removed the gate panics "the
  --enable-qm=1 stream now decodes", and decode_probe shows those bytes
  byte-differ from ffmpeg while the qm-off twin is byte-exact.
- refusal_inventory.rs: new REFUSALS entry + PROVEN pair; report 9.2's
  "exactly two" -> three, plus the field->consumer census table (every
  SequenceHeader / ColorConfig / QuantizationParams / FrameHeader field with
  its first production read or its disposition).
- cdf_state.rs P3: wide()'s doc comment named the deleted txbset_for_inter,
  now inter_txbset_for.

Gates: cargo test -p ec-av1 --lib -- refusal_inventory <new gate>
a_reader_told_not_to_adapt a_non_420 = 16 passed / 0 failed; cargo check
-p ec-av1 --all-targets = 0 warnings.

2026-09-12

2026-09-08

feat(av1): reduced_tx_set=0 -- the wider tx_type alphabets, off by defaultAhmet Kaan Gümüş · e6bf936
feat(av1): reduced_tx_set=0 -- the wider tx_type alphabets, off by default

The writer reads the frame's own header bit in ONE place (Cdfs::txb widens
every luma set through TxbSet::wide, transcribed from the decoder's map), the
search names the widened set so its pricer costs the same alphabet, and the
candidate lists gain the seven-type intra set and the shared seven of the
twelve/sixteen-type inter ones. speed::WIDE_TX_SET is false at every preset
(EC_AV1_TXSET_WIDE overrides), and EC_AV1_TXSET=all lifts the intra search's
screen gate for the unconditional arm the gate measures.

2026-09-07

feat(av1): lossless decode groundwork -- WHT, TX_4X4 forcing, CfL narrowingAhmet Kaan Gümüş · f0a5a15
feat(av1): lossless decode groundwork -- WHT, TX_4X4 forcing, CfL narrowing

The 4x4 Walsh-Hadamard inverse (libaom av1_iwht4x4_16_add_c) with its own
round-trip test, a per-frame CodedLossless flag replacing the refusal (a
frame mixing lossless and lossy segments is still refused by name), the
TX_4X4 forcing in the square and 8x8-leaf intra readers, no tx_type symbol
(libaom read_tx_type: qindex 0 returns early), DCT_DCT on every plane, the
is_cfl_allowed narrowing to a 4x4 chroma plane block, and the +10 chroma
txb_skip rows at TX_4X4 that only a lossless frame reaches.

2026-09-06

feat(av1): the RD pricer reads the real neighbour txb_skip/dc_sign contextsAhmet Kaan Gümüş · 9afbc09
feat(av1): the RD pricer reads the real neighbour txb_skip/dc_sign contexts

The search priced every transform block at txb_skip context 0 and dc_sign
context 0 -- exact for a luma transform covering its whole block, and the
largest remaining row of the pricer census everywhere else: an all-zero
chroma block was under-priced 41-81%, a one-coefficient Chroma8 over-priced
32%.

Each plane now carries a per-4x4-cell map of what the blocks committed
before it left behind (cul_level and DC sign, tile.rs neighbour_state),
written by Plane::commit and undone with the pixels by Plane::restore, so a
partition trial reads the parent's committed neighbours for its first child
and the just-committed sibling for the later ones -- coding order inside the
tree. Plane::coef_ctx mirrors the writer's own derivation: chroma reads
whether the above/left neighbours coded anything (write_block_planes), luma
context 0 for a whole-block transform and decode.rs SKIP_CONTEXTS for a
smaller unit (write_luma_tus / Neighbours::luma_skip_ctx), both planes the
neighbours' DC sign vote (dc_sign_ctx).

Census, 6 frames of each clip at 640x384 q=100, priced vs written:
  screen total +10.3% -> +9.5%, Chroma8 nz=0 -73.0% -> -1.9%,
  Chroma16 nz=0 -48% -> -23.4%, Chroma4 nz=0 -74% -> -6.7%,
  Chroma8 nz=1 +32.2% -> +4.9%, nz=2 +26.2% -> +7.9%,
  Luma4 nz=0 +464% -> +89.5%
  film total +5.3% -> +1.5%
feat(av1): price the search against the tables the frame is really written with, plus a per-class pricer censusAhmet Kaan Gümüş · 95c183b
feat(av1): price the search against the tables the frame is really written with, plus a per-class pricer census

The inter frame writer starts from the tables the previous frame stored,
not from the defaults, so the coefficient price the mode search ranked by
charged for a narrowing the writer no longer pays. The new census -- per
transform block, priced bits against the bits the writer spent, split by
table set and non-zero count -- measured it at +31% on the
one-coefficient inter blocks the search lives on (+7.6% over all blocks);
arming the frame's own starting tables takes those rows to +3% and the
whole census to +4.8%.

2026-09-04

feat(av1): reconstruct palette blocks inside inter frames, and fix the palette colour-index CDF counter resetAhmet Kaan Gümüş · 6a16223
feat(av1): reconstruct palette blocks inside inter frames, and fix the palette colour-index CDF counter reset

An intra block in an inter frame refused by name the moment it actually used
a palette ("reconstruction is out of scope"), at both the square
(`decode_inter_block`) and the rect (`decode_intra_rect_in_inter`) path. Both
now read the real syntax -- mode/size/colours off this block's own
`av1_get_palette_mode_ctx` context and `av1_get_palette_cache` colour cache,
the two colour-index maps deferred past `filter_intra` exactly as
`av1_visit_palette` runs them -- and predict from the map (per transform unit
where the luma transform splits), the same machinery the key-frame paths use.
Every block of an inter frame now also stamps its palette state (all-zero for
an inter block) into the mi-granular neighbour bands, which is what libaom's
mode-info grid holds and what the next block's cache and mode context read.

The witness then desynced at the FIRST inter-frame palette block's colour
index map, third symbol: the two palette colour-index tables are this
decoder's only variable-alphabet CDFs (the reader takes `[..=n]` of a
`[u16; 9]` row, so `update_cdf`'s symbol counter lives at index `n`), and
`Cdfs::reset_counts` zeroed the array's last slot instead. Every colour-index
row therefore crossed a frame boundary with a saturated count and adapted at
rate 6 where libaom, counting from zero, adapts at 4 (class
cdf-counter-not-reset). Swept: those two are the only `[..=n]` readers here.

Also lifted, as a stale premise: the 16x4/4x16 arm of "a HORZ/VERT intra strip
in a screen-content frame (palette syntax is consumed for square blocks
only)" -- that arm routes through `decode_rect4_16_strip`, which takes
`allow_screen_content_tools` and reads the whole palette syntax already. The
128-root arm keeps the refusal (its body reads none, and no --sb-size=128
screen witness exists).

Gates (aomenc --tune-content=screen --enable-palette=1 --enable-intrabc=0
--sb-size=64, 15 frames, key + inter, 8-bit and 10-bit twins):
a_real_aomenc_screen_stream_with_palette_blocks_decodes_pixel_exact and
a_screen_stream_with_16x4_intra_strips_in_inter_frames_decodes_pixel_exact --
all 15 frames byte-exact vs ffmpeg on every plane, with inter-frame palette
counters y/uv > 0 so neither gate is vacuous.

2026-09-02

feat(av1): the 32x32-level 1:4 inter strip codes its rectangular residual (32x8/8x32)Ahmet Kaan Gümüş · 0f5742b
feat(av1): the 32x32-level 1:4 inter strip codes its rectangular residual (32x8/8x32)

MEASURED first: an env-gated print at the refusal site (EC_RECTRES=1) on both
10-bit 3840x1608 film cuts and four offsets of the 10-bit 1920x792 stream gives
6/6 refusals at w=32 h=8 or w=8 h=32, non-skip, inter -- nothing else. The
64-axis shapes the charter expected were already supported and never fire.

TX_32X8 codes all 256 positions. New TxbSet::LumaRect32x8Inter = the intra
LumaRect32x8 tables (get_txsize_entropy_ctx = TX_16X16, txsize_log2_minus4 = 4)
plus a tx_type table the intra twin has none of: av1_get_ext_tx_set_type at
tx_size_sqr_up == TX_32X32 is EXT_TX_SET_DCT_IDTX for inter with or without
reduced_tx_set, read at the txsize_sqr_map[TX_32X8] == TX_8X8 row. Chroma pair
is one 16x4/4x16 unit (ss_size_lookup[BLOCK_32X8] = BLOCK_16X4) = Chroma8's
tables. Scans, sub_tx_size_map[TX_32X8] = TX_16X8 var-tx leaves and the rect
coefficient reader were already shape-general.

Gate a_real_aomenc_inter_sequence_with_32x32_level_1to4_strips_codes_their_rect_residual:
real aomenc, --enable-1to4-partitions=1 --enable-tx-size-search=1
--min-partition-size=8 --max-partition-size=32, 16 attempts x 8/10-bit, both
orientations, every decode-order frame Y/U/V vs ffmpeg, oos_mismatch == 0, one
hard assert per lifted shape on the PIXEL-COMPARED counter: 32x8=7 8x32=8,
0 refusals, 0 mismatches. A 72-run recipe sweep found that only 32-pixel motion
bands at cq >= 48 make aomenc code a NON-SKIP strip; narrower bands give the
same partition with skip set and prove nothing about the residual.

Film frontier: the 10-bit 3840x1608 cut still shows 33 frames -- the gain is
inside frame 34, which now codes a 32x8 residual unit and stops on a different
wall (an intra 16x4/4x16 strip inside an inter 16x16-level 1:4 partition). All
six cuts moved to that same next refusal. The rect64 refusal is NOT lifted: the
clean prefix reports rect64_corner_tu 0/0, so no witness exists yet.
Merge branch 'lane-sb128c' (4e65b8a): the 128 partition root's inter arms and gathered 128 edgesAhmet Kaan Gümüş · ec3d792
Merge branch 'lane-sb128c' (4e65b8a): the 128 partition root's inter arms and gathered 128 edges

Inter 128x128 NONE roots, intra-128-in-inter, and the gathered-edge HORZ/VERT
128x64 / 64x128 blocks, with the 17-row MOTION_MODE/OBMC tables and
has_top_right size-half gating. Conflicts resolved keeping both sides
everywhere they added; main's NOCFL counter kept over the lane's identical
is_cfl_allowed fix, the lane's skip-inter-128 loop-filter suppression kept, and
the chroma tail is now `!has_chroma` / `side > 64` / `rect_tu` in that order.
cdf.rs NZ_MAP*/FILTER_INTRA* unchanged (only OBMC/MOTION_MODE go 14 -> 17 rows).

Gates: 128x128 / superblock / gathered_edge_horz / ab_partitions /
free_partitions / 1to4_streams / mvstack:: / refusal_inventory /
gate_coverage / base_ctx_rect_offsets -- 75 passed, 0 failed, 1 ignored.

Known cross-product reds carried into this tree (owned by the mergefix lane,
reported by the batch coordinator on an equivalent merged tree):
a_frame_edge_straddling_band_decodes_pixel_exact and
a_real_aomenc_10bit_inter_sequence_with_a_split_transform_intra_block_decodes_pixel_exact.
Merge branch 'lane-inter16ab' (2e711e1): 16-level inter 1:4 arms and rectangular wedge codebooksAhmet Kaan Gümüş · 305b01a
Merge branch 'lane-inter16ab' (2e711e1): 16-level inter 1:4 arms and rectangular wedge codebooks

Rect compound_type/wedge_idx CDF rows keyed by the block's true (w,h), the
8x4/4x8 inter coefficient sets, and the hgtw/hltw rectangular wedge codebooks
(288-entry libaom enumeration pinned at lanes/wedge_libaom.expected.txt).

Conflict resolution: the lane and main had each landed the same
BLOCK_SIZES_ALL row fix under different names -- kept the lane's
bsize_all_index / wedge_used_bsize / is_any_masked_compound_used_here and
deleted main's duplicates (main's wedge_used_wh wrongly listed 16x64/64x16,
which have no wedge codebook in libaom). The TxbSet 8x4-inter variants were
also duplicated: kept main's names, dropped the lane's identical twins. Main's
non-square COMPOUND_WEDGE refusal, auto-merged into the lane's lifted code,
removed.

Gates: wedge (1), interintra_wedge (2), rectangular_compound_wedge (1),
16x16_level_1to4 (1), 16x16_level_ab (1), 1to4 family (7),
refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets (1) -- pass.
feat(av1): sub-8x8 inter PARTITION_VERT (two BLOCK_4X8 leaves); HORZ twin implemented but refusedAhmet Kaan Gümüş · 60b3ba2
feat(av1): sub-8x8 inter PARTITION_VERT (two BLOCK_4X8 leaves); HORZ twin implemented but refused

decode_inter_sub8_rect2 codes both rectangular sub-8x8 inter shapes: per-sub-block mode info
in decodemv.c order (single ref only -- is_comp_ref_allowed(BLOCK_8X4) false, so no skip_mode
and no comp_mode; no interintra/motion_mode/OBMC/warp below min dim 8), one txfm_partition
symbol at max TX_8X4/TX_4X8 through r14's general read_var_tx_size, chroma coded once on the
chroma-reference (second) sub-block as one TX_4X4 per plane with sub8x8 prediction from BOTH
sub-blocks' mvs (reconinter.c build_inter_predictors_sub8x8), and per-mi neighbour/mv-grid
writes over the true w_mi x h_mi span.

New luma coefficient sets TxbSet::LumaRect8x4Inter{,Set1}: LumaRect4x8's tables (8x8
coefficient class, 32-position eob_pt) with the inter TX_4X4 tx_type row (EXT_TX_SET_ALL16).
These also close the panic risk lane-inter16ab r3 noted, where a TX_16X4 -> TX_8X4 var-tx
split reached rect_inter_luma_set's unreachable!().

Gate: a_real_aomenc_inter_sequence_with_a_sub8x8_inter_split_decodes_pixel_exact now runs 16
attempts per bit depth -- 0..7 with --enable-rect-partitions=0 (SPLIT, unchanged) and 8..15
with =1 (VERT) -- and asserts a new rect_fired >= 2 alongside fired >= 2 and
out_of_scope_mismatch == 0, comparing every decode-order frame Y/U/V at 8 and 10 bit.

The HORZ (two BLOCK_8X4) arm is refused by name rather than shipped: a 28-arm sweep on a
transposed-structure source mismatches on 4 arms at cq 12/14/16/32, outside the known CDEF
band. Range ladder on one of them localizes the divergence to the mode info of the 16x8 inter
block immediately to the group's right -- matching through its EC_MODE entry, differing by its
first coefficient TU -- i.e. a per-row neighbour band the group leaves behind. Details in
lanes/intersub8-r3.handoff.md.
fix(av1): gate the mv-stack top-right probe on has_top_right; 128-root motion_mode/obmc CDF rows; TX_64X64 coded corner on the intra-in-inter pathAhmet Kaan Gümüş · b6c54c5
fix(av1): gate the mv-stack top-right probe on has_top_right; 128-root motion_mode/obmc CDF rows; TX_64X64 coded corner on the intra-in-inter path

Three root causes behind the 128x128 inter gate's frame-5 reconstruction residue,
all on a 256x256 8/10-bit stream with use_128x128_superblock:

1. mvstack.rs find_mv_stack{,_compound} called scan_top_right unconditionally.
   libaom setup_ref_mv_list (mvref_common.c:497/546) gates it on has_top_right,
   which is 0 for bs > 16 -- a 128x128 block's above-right cell is populated
   (previous SB row) but unavailable, so we invented a candidate and desynced
   the drl symbols.
2. decode.rs mapped a square block's motion_mode/obmc CDF row with
   trailing_zeros - 3, sending 128 to our packed BLOCK_16X32 row. Added libaom
   default_motion_mode_cdf / default_obmc_cdf rows 13/14/15 (64X128, 128X64,
   128X128) and explicit match arms ahead of the square one.
3. A TX_64X64 luma unit on the intra-in-inter-frame path used the full 64x64
   scan and tx_side; only the top-left 32x32 is coded (spec 5.11.40), which
   panicked the inverse transform on the 10-bit arm.

All 9 decode-order frames of the 8-bit and 10-bit gate arms are now pixel-exact
(EC_AV1_PREFILT_DUMP, was 19550/14164/26667/26716 wrong bytes on f5..f8); the
mode-value ladder matches aomdec exactly. The tx-size-search arm is still red on
4 post-deblock chroma pixels -- a phantom chroma TU edge published by the
per-vartx-leaf lf-grid write, analysed in lanes/sb128c-r5.handoff.md.
fix(av1): 8x4/4x8 INTER var-tx leaves (a split 16x4/4x16 strip) had no table set and panicked; three side-keyed CDF rows on rect blocksAhmet Kaan Gümüş · c3fc174
fix(av1): 8x4/4x8 INTER var-tx leaves (a split 16x4/4x16 strip) had no table set and panicked; three side-keyed CDF rows on rect blocks

The lane-r14 merge made read_var_tx_size general, so sub_tx_size_map[TX_16X4]
== TX_8X4 now reaches rect_inter_residual_supported(8,4) == false and
rect_inter_luma_set's unreachable!(). That panic was live: the 10-bit
directional-angle-delta gate failed the r3 suite at decode.rs:11799, not on
this lane's own gate.

- TxbSet::LumaRect8x4Inter{,1}: LumaRect4x8's shape (Luma8 coefficient
  tables, true 32-position eob_pt) with the INTER tx_type table at
  txsize_sqr_map[TX_8X4] = TX_4X4 -- av1_get_ext_tx_set_type (blockd.h:1097)
  at tx_size_sqr_up == TX_8X8 returns DCT_IDTX reduced / ALL16 unreduced.
- rect_inter_residual_supported += (8,4)|(4,8) (split leaves only; an 8x4
  inter BLOCK is still refused as "an inter partition below 8x8").
- rect_inter_luma_set / rect_inter_chroma_set / rect_scan return Result: every
  remaining unreachable!() on a stream-derived shape in that path is now a
  named refusal (3 new refusal_inventory entries).
- Class sweep of the r3 root cause (a CDF row taken from the enclosing square
  side on a rectangular block): is_any_masked_compound_used_here now takes
  (bw,bh) -- is_comp_ref_allowed is min(w,h) >= 8, so a 16x4/4x16 strip must
  read NO comp_group_idx symbol; the intra-in-inter branch's palette ctx
  (palette_bsize_ctx_wh) and filter-intra class (filter_intra_size_class_rect)
  likewise come from write_w/write_h.
- New counter vartx_rect_leaf4_hits() [8x4, 4x8] + a 5th gate arm for it.
feat(av1): 16x16-level 1:4 partitions decode in inter frames -- four 16x4/4x16 strips, chroma coded once per pair from BOTH strips' motion (gate RED on one attempt)Ahmet Kaan Gümüş · 9f8067c
feat(av1): 16x16-level 1:4 partitions decode in inter frames -- four 16x4/4x16 strips, chroma coded once per pair from BOTH strips' motion (gate RED on one attempt)

The 16-level PARTITION_HORZ_4/VERT_4 arm of the inter partition chain, with
the three things that are new at this size:

  * is_chroma_reference (av1_common_int.h:1454): a 4:2:0 block one mi tall
    (wide) carries chroma only on an ODD mi_row (mi_col), so strips 0 and 2
    read and reconstruct no chroma at all and the odd strip codes one 8x4
    (4x8) transform at the PAIR's origin.
  * build_inter_predictors_sub8x8 (reconinter_template.inc:87-160): that
    chroma block covers two luma blocks, so it is built in 8x2 (2x8) pieces,
    each from its own strip's mv/ref/interp filters -- and only when
    is_sub8x8_inter holds (both strips single-ref inter), else the whole
    block falls back to this strip's mv.
  * min(bw,bh) == 4 kills skip_mode, comp_mode (is_comp_ref_allowed,
    blockd.h:65), motion_mode/OBMC/warp (is_motion_variation_allowed_bsize,
    blockd.h:1455) and interintra: none of those symbols is read now.

Tables: TX_16X4/TX_4X16 luma through the new TxbSet::LumaRect16x4Inter{,1}
(Luma8 coefficient tables, eob_pt_64, INTER tx_type at txsize_sqr_map =
TX_4X4 -> EXT_TX_SET_ALL16 / DCT_IDTX per blockd.h:1097-1106) and
SCAN_16X4/SCAN_4X16; chroma through the existing ChromaRect8x4.

The 2160p 10-bit AV1 film this lane tracks now decodes past the 1:4 partition
and stops one refusal deeper, at a SPLIT transform on a 16x4 strip
(sub_tx_size_map[TX_16X4] is the rectangular TX_8X4, which the square vartx
leaf list cannot express).

Gate a_real_aomenc_inter_sequence_with_16x16_level_1to4_partitions_decodes_
pixel_exact is committed FAILING: attempt 5 (8-bit, cq 34) fires 8 strips /
4 chroma pairs / 4 two-mv chroma pairs and desyncs in its last frame (8683
luma px, first at (96,59)). Frames 0-4 exact. See lanes/inter16ab-r2.report.md
-- this branch does not merge until that is closed.
Merge main 18bf7dc (lane-sb128 5ea5ec8) into lane-sb128bAhmet Kaan Gümüş · f00f0e1
Merge main 18bf7dc (lane-sb128 5ea5ec8) into lane-sb128b

Conflicts all in stream.rs and all resolved to MAIN's side, per the batch
coordinator: main's `a_real_aomenc_128x128_superblock_stream_decodes_pixel_exact`
(one 128 seam gate, `--min-partition-size=16`, part128 symbol assert) replaces
this lane's own conversion of the same gate, and lane-oddh's seam refusal stays
deleted. cdf.rs merged clean -- the NZ_MAP and FILTER_INTRA regions are
byte-identical to main's, this lane's only cdf.rs delta is the four
TXB_SKIP_CHROMA_32_BIG tables.
fix(av1): a 128x128 block codes its planes per 64x64 mu chunk, and its chroma units use libaom's offset-10 txb_skip rowsAhmet Kaan Gümüş · 69826a6
fix(av1): a 128x128 block codes its planes per 64x64 mu chunk, and its chroma units use libaom's offset-10 txb_skip rows

Three root causes behind lane-sb128b r2's "the first TX_64X64 luma unit reads
AC libaom never wrote" residual; the entropy ladder (aomdec EC_TRACE_COEFF vs
ours, 48 txb_skip symbols) is now identical range for range and all four gate
arms decode pixel-exact.

1. decode.rs `decode_block`'s multi-TU arm read every luma unit and then every
   chroma unit. libaom's `decode_token_recon_block` loops 64x64 luma "mu"
   chunks (`mu_blocks_wide/high` = `mi_size_wide[BLOCK_64X64]`) and codes ALL
   PLANES of a chunk before the next chunk, so at 128 the order is Y,U,V per
   quadrant. Below 128 a block is one chunk and the order is unchanged.
2. The chroma `txb_skip_ctx` offset is 10, not 7, when the uv plane block is
   larger than the uv transform (`get_txb_ctx`) -- the 128 block's four
   TX_32X32 chroma units are AV1's only such case, and our chroma table only
   carried the offset-7 rows. Added `TXB_SKIP_CHROMA_32_BIG*` (token_cdfs.h
   `av1_default_txb_skip_cdfs[q][TX_32X32][10..13]`, all four q contexts),
   `txb_skip_chroma_32` is now six rows, and the caller adds 3 when `cn > 1`.
3. Each chroma unit's coefficient context was recorded only after the whole
   block, so the second quadrant read ctx 10 where libaom reads 11. Recorded
   per unit inside the loop as well (the post-`record_split_luma` replay
   stays: that call would otherwise clobber them whole-block).

Refusal lifted with its gate: `a 128x128 PARTITION_NONE block (...)` deleted
from decode.rs + refusal_inventory.rs, and
`a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact`
un-ignored -- 4/4 arms pixel-exact (384x384 seeds 42/43, 256x256 seed 44,
10-bit seed 45), part128_none_hits=31.
Merge branch 'lane-sb128' (5ea5ec8): 128x128 superblocks decode pixel-exact -- the PARTITION_W128 8-symbol root alphabet, and lane-oddh's refusal deletedAhmet Kaan Gümüş · c6f22ad
Merge branch 'lane-sb128' (5ea5ec8): 128x128 superblocks decode pixel-exact -- the PARTITION_W128 8-symbol root alphabet, and lane-oddh's refusal deleted

Clean auto-merge on 6699ce6 (no conflicts). The deletion of "a sequence using
128x128 superblocks on a frame larger than 64x64" (refusal + inventory line)
is the lane's intended capability landing; its gate now asserts pixel equality.
Merge branch 'main' into lane-sb128; the 128x128-superblock refusal main added (lane-oddh 866cbb1) is deleted and its gate flipped from "refused by name" to pixel-exactAhmet Kaan Gümüş · 64b4002
Merge branch 'main' into lane-sb128; the 128x128-superblock refusal main added (lane-oddh 866cbb1) is deleted and its gate flipped from "refused by name" to pixel-exact

Merge seam: main b51719f refuses every sequence with use_128x128_superblock on
a frame larger than 64x64, which is precisely the capability this lane
implemented. Deleted the refusal from stream.rs and refusal_inventory.rs, and
rewrote lane-oddh's gate on the same 64x72 --cpu-used=0 --sb-size=128 aomenc
stream to decode all frames pixel-exact via decode_all_frames_vs_oracle.

cdf.rs NZ_MAP_CTX_OFFSET_* and FILTER_INTRA rows are byte-identical to main
(the only cdf.rs delta is this lane's added PARTITION_W128 constant).
feat(av1): decode the 16x16-level 1:4 partition -- four 16x4/4x16 strips with paired 4:2:0 chromaAhmet Kaan Gümüş · b1f19e6
feat(av1): decode the 16x16-level 1:4 partition -- four 16x4/4x16 strips with paired 4:2:0 chroma

The wall 22/24 census segments hit on the key frame: PARTITION_HORZ_4 /
PARTITION_VERT_4 at BLOCK_16X16 (EXT_PARTITION_TYPES is the 10-symbol
alphabet at 16x16, so both are legal there) was refused by name before any
leaf was coded.

`decode_rect4_16` (decode.rs) decodes the four strips. New at this size is
CHROMA: a 4:2:0 block one mi tall (wide) is a chroma reference only on the
ODD mi row (column) -- strips 0 and 2 read no uv_mode/cfl_alpha/angle_delta_uv
and code no chroma at all, strips 1 and 3 carry the 8x4 (4x8) chroma of the
whole 16x8 (8x16) luma pair at the PAIR's origin (setup_pred_plane's
`mi_row -= 1`), with CfL averaging the pair's luma. `read_intra_mode_rect`
grew the `has_chroma` (`is_chroma_reference`) gate for that; every other
caller passes true.

Tables: TX_16X4 averages to the 8x8 entropy context with 64 positions, so the
new TxbSet::LumaRect16x4{,Set1} is Luma8's tables with the TX_4X4 tx_type row
(LumaRect4x8's, which differs only in its 32-position eob_pt); chroma is the
existing ChromaRect8x4. cdf::FILTER_INTRA gained the two rows
default_filter_intra_cdfs has for BLOCK_16X4/BLOCK_4X16 (10368/12770,
classes 12/13) -- both sides <= 32, so libaom writes use_filter_intra here.
palette_bsize_ctx_wh's dimension bound was wrong for this shape too:
av1_allow_palette's `sb_type >= BLOCK_8X8` is an ENUM INDEX test that
BLOCK_4X16/16X4 clear, so a 64-pixel 1:4 strip DOES read palette_y_mode
(ctx 0) in a screen-content frame -- "both sides >= 8" dropped that symbol.

Gate: a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact
(4-pixel bands, transposed per attempt, noise with an explicit seed,
--enable-1to4-partitions=1 --min-partition-size=4 --max-partition-size=16
--enable-filter-intra=1 --enable-cfl-intra=1 --cpu-used=0), 8 attempts at
each bit depth, every decode pixel-compared against ffmpeg, hit counters
hard-asserted. 8-bit: 104 16x4 + 152 4x16 strips, 128 chroma pairs;
10-bit: 96 + 152, 124 chroma pairs. Zero refusals, zero out of scope.

Still refused by name at this shape: a split transform
(sub_tx_size_map[TX_16X4] == TX_8X4 -- the per-unit walk cannot reuse
decode_rect_split, whose chroma is the strip's, not the pair's) and a strip
that actually uses a palette.
feat(av1): decode 128x128 superblocks on key frames (the ReelC blocker)Ahmet Kaan Gümüş · e749a4d
feat(av1): decode 128x128 superblocks on key frames (the ReelC blocker)

His ReelC encode codes use_128x128_superblock=1 (aomdec EC_TRACE: EC_PART
mi_row=0 mi_col=0 bsize=15); ec-av1 never read that sequence bit and decoded
every frame as 64x64 superblocks, so every earlier ReelC stop was a desync
artefact.

- decode.rs: SB128 thread-local + set_sb128; the key-frame tile loop now walks
  the 64x64 quadrants in libaom's nested order (sb_visit_order), reads the
  128 root's loop-restoration units once per 128x128 and one partition symbol
  off the 8-symbol partition_w128 CDF (forced-split gather at the frame edge),
  and recurses SPLIT into the existing 64 path; the other seven 128-level arms
  refuse by name. delta_q/delta_lf now key off the real superblock size.
- Neighbours' no-neighbour partition-context sentinel was SB (64), which reads
  identically up to the 64 root but set the bit at BLOCK_128X128 -- the 128
  symbol came off CDF row 3 where libaom uses row 0.
- Reach (has_top_right/has_bottom_left) masked the block's position with a
  hardcoded 64 superblock; libaom masks with the sequence's own sb_size.
- stream.rs: inter frames under a 128 superblock refuse by name (scoped to
  frames larger than one 64x64 superblock, since a <=64x64 frame decodes
  identically either way).

Gates: a_real_aomenc_stream_with_128x128_superblocks_decodes_pixel_exact
(6/6 pixel-exact, 8- and 10-bit, 256x192 + 384x384, part128_symbols=26,
part128_split_hits=34) and a_real_aomenc_128x128_inter_stream_refuses_by_name.
Merge branch 'lane-fi32x8': 32x8/8x32 strips read use_filter_intra (rows were missing; aomenc default on)Ahmet Kaan Gümüş · 7a9d28d
Merge branch 'lane-fi32x8': 32x8/8x32 strips read use_filter_intra (rows were missing; aomenc default on)

Renumbered against lane-fi8: cdf::FILTER_INTRA now has 12 rows, [8]=4x8 6743,
[9]=8x4 5893, [10]=32x8 18101, [11]=8x32 20229, and
filter_intra_size_class_rect maps (32,8)->10 / (8,32)->11. Orientation-split
counters + the 32-level 1:4 filter-intra gate come from the lane;
filter_intra_classes_carry_their_own_libaom_default_row covers the whole domain.
Merge branch 'lane-fi8': 4x8/8x4 leaves read use_filter_intra from their own CDF row (was BLOCK_4X4's); filter-intra tx_type row mapped at every rect siteAhmet Kaan Gümüş · 2988169
Merge branch 'lane-fi8': 4x8/8x4 leaves read use_filter_intra from their own CDF row (was BLOCK_4X4's); filter-intra tx_type row mapped at every rect site

FILTER_INTRA gains rows [8]=4x8 (6743) and [9]=8x4 (5893);
filter_intra_size_class_rect maps them; read_intra_mode_sub8 takes the leaf's
own fi_class; the "filter intra on a HORZ/VERT strip" refusal is lifted with a
3-arm real-aomenc gate; fi_tx_row (fimode_to_intradir) now feeds every rect
tx_type CDF row. Merged onto main's palette2 decode_leaf_rect8 rewrite -- main's
per-TU Reach::of_tu call sites kept, the lane's Reach::of variant dropped.
feat(av1): 16x16-level rectangular INTER leaves -- PARTITION_HORZ/VERT into two 16x8/8x16 inter blocksAhmet Kaan Gümüş · b2eabdd
feat(av1): 16x16-level rectangular INTER leaves -- PARTITION_HORZ/VERT into two 16x8/8x16 inter blocks

Mode info, rectangular residual and prediction for the 16-level rect inter
leaf, the shape lane-inter4 r2 measured as the real reach blocker (real
motion content codes one before any 32-level 2:1 strip).

- decode.rs: the 16x16-level PARTITION_HORZ/VERT arms (side=SUB keeps every
  CDF/prediction-buffer decision square, write_w/write_h carry the true
  footprint), `rect_inter_residual_supported` extended to 16x8/8x16,
  `rect_inter_luma_set`/`rect_inter_chroma_set` picking the TxbSet from the
  block's true shape, motion_mode/obmc CDF rows for BLOCK_8X16/BLOCK_16X8,
  and `size_group_wh` -- `y_mode` and `interintra` now read the block's own
  `size_group_lookup` row instead of its square `side`'s.
- cdf_state.rs/cdf.rs: `TxbSet::LumaRect16x8Inter` (+`Set1`) -- LumaRect16x8's
  coefficient tables with the inter tx_type alphabet (EXT_TX_SET_DCT_IDTX
  reduced / EXT_TX_SET_ALL16 otherwise, both at the TX_8X8 CDF row); the
  missing `eob_pt_128_luma_class1` and `eob_pt_32_chroma_class1` tables, wired
  into the rect 16x8/8x16 luma and 8x4/4x8 chroma sets (a 1D V_DCT/H_DCT unit
  was reading the 2D eob alphabet) and into the per-frame counter reset.
- decode.rs `obmc_blend`: libaom's real `max_neighbor_obmc` table (1 mi -> 0,
  2 -> 1) instead of a row that was right only at 16 px and above.
- REFUSALS: "an inter partition below 16x16 other than SPLIT" is gone; two
  named refusals take its place -- the 16-level AB/1:4 partitions, and OBMC on
  a 16x8/8x16 leaf (which mismatches the reference; see the report).

Gate: a_real_aomenc_inter_sequence_with_a_16_level_rect_leaf_decodes_pixel_exact
(8-bit: 3 attempts carrying a 16x8 leaf, 2 an 8x16, 2 coded rect inter TUs;
10-bit: 2/3 leaves, residual proven by the 8-bit arm), every frame Y/U/V vs
ffmpeg, refusals counted and never SKIPped.
fix(av1): 32x8/8x32 strips never read use_filter_intraAhmet Kaan Gümüş · a5505ea
fix(av1): 32x8/8x32 strips never read use_filter_intra

The 32x32-level 1:4 arms (PARTITION_HORZ_4/VERT_4, four 32x8 or 8x32 strips)
are inside av1_filter_intra_allowed_bsize's "both sides <= 32" bound, so
libaom writes a use_filter_intra flag on every DC_PRED one of them --
filter_intra_size_class_rect had no row for either shape, so the symbol was
never read and the tile desynced silently from that strip on (class
symbol-consumption-gap). --enable-filter-intra is ON by aomenc default and
every gate reaching these strips spelled it =0, so nothing could see it.

cdf::FILTER_INTRA grows rows 8/9 (18101 BLOCK_32X8, 20229 BLOCK_8X32, from
scripts/extract-filter-intra-cdfs.py against the oracle source), the domain
test moves both shapes off "refused before any leaf", and a new gate proves
the flag fires on BOTH orientations inside pixel-exact attempts at 8 and 10
bit (hit counters split by orientation because the two rows are asymmetric).
feat(av1): rectangular inter residual coding for 32x16/16x32 strips (gate red, refusal kept for every other shape)Ahmet Kaan Gümüş · b594919
feat(av1): rectangular inter residual coding for 32x16/16x32 strips (gate red, refusal kept for every other shape)

The r1 ceiling was that no rectangular inter block could carry a residual:
decode_inter_block refused every non-skip HORZ/VERT/HORZ_B strip. This ports
the path for the 2:1 shapes whose coefficient tables already exist:

- read_block_tx_size_rect: spec 5.11.17 from the block's own rect
  max_txsize_rect_lookup entry. TX_MODE_LARGEST -> one rect TU, no symbol;
  TX_MODE_SELECT -> one depth-0 txfm_partition symbol (new
  txfm_partition_ctx_rect: above vs tx_size_wide, left vs tx_size_high,
  category from txsize_sqr_up_map), and a split resolves to sub_tx_size_map's
  SQUARE sub-transforms, from which the existing square read_var_tx_size
  continues at depth 1.
- txfm_partition_update_rect, and the skipped-inter case now records the
  block's own width above / height left (set_txfm_ctxs(.., skip && is_inter)).
- read_inter_plane_rect: read_coeffs_rect + dequant_and_inverse_typed_wh onto
  the top-left w x h of the square-strided MC predictor; luma txb_skip_ctx 0
  (plane_bsize == txsize_to_bsize[tx_size]); chroma at av1_get_max_uv_txsize
  (16x8/8x16) inheriting the luma tx_type.
- TxbSet::LumaRect32x16Inter: LumaRect32x16's coefficient tables plus
  default_inter_ext_tx_cdf[3][TX_16X16] (EXT_TX_SET_DCT_IDTX, what
  av1_get_ext_tx_set_type returns for an inter TU with sqr_up == TX_32X32).
- two r1 out-of-bounds fixes surfaced by the new content: a rect strip's
  around_mi read `side` cells left and indexed past the tile's last mi row;
  the rect mode/side stamps ran past the frame's last 16-px column.

The refusal string is unchanged and still fires for every shape but 32x16 and
16x32, so refusal_inventory is untouched. The new gate is RED and #[ignore]d
with its exact reason: on real motion content the decode stops at the
16x8/8x16 inter leaf or intra-rect-strip refusal before any 32-level 2:1
strip, so this capability is implemented but NOT proven -- see
lanes/inter4-r2.report.md.
fix(av1): sub-8 rect leaves read use_filter_intra from BLOCK_4X4's CDF row and then refused the prediction -- 4x8/8x4 now decode filter intra pixel-exactAhmet Kaan Gümüş · 5a2f5ef
fix(av1): sub-8 rect leaves read use_filter_intra from BLOCK_4X4's CDF row and then refused the prediction -- 4x8/8x4 now decode filter intra pixel-exact

`read_intra_mode_sub8` is shared by the 4x4 split leaves and lane-tx4x8's
4x8/8x4 rect leaves, and hardcoded `cdfs.filter_intra[0]` (BLOCK_4X4's row).
`av1_filter_intra_allowed_bsize` allows BLOCK_4X8/BLOCK_8X4, so aomenc writes
the flag for every DC_PRED one of them and libaom reads it with
`default_filter_intra_cdfs[BLOCK_4X8]/[BLOCK_8X4]` (6743/5893): the same symbol
VALUE out of a different interval, a desync a block or two later
(wrong-alphabet-same-value). `cdf::FILTER_INTRA` gains those two rows (classes
8/9, generated by scripts/extract-filter-intra-cdfs.py and pinned by the domain
test, whose 4x8/8x4 entries lose their now-stale BELOW_8X8 refusal), the class
comes from `filter_intra_size_class_rect`, and the caller passes its leaf's own
shape.

Prediction: the refusal ("filter intra on a HORZ/VERT strip (this decoder
predicts square-only)") was stale prose -- `predict_filter_intra` has taken a
true bw x bh since lane-rectsplit -- so `filter_intra` is threaded into both
whole-leaf `reconstruct_rect` calls and, under `tx_depth=1`, into each 4x4
transform unit's own `reconstruct`/`read_plane` (each predicted from the
previous unit's reconstruction). The refusal leaves refusal_inventory.

Sweep of the same class as 1a89ed9 (tx_type row under filter intra): the coded
16x8/8x16 and 32x16/16x32 strips also passed the block's raw DC_PRED `mode` to
`cdfs.txb`; all three sites now go through the new `fi_tx_row`
(`fimode_to_intradir`), which `read_plane` shares.

GATE: a_real_aomenc_stream_with_filter_intra_on_a_sub8_rect_leaf_decodes_pixel_exact
-- real aomenc, filter-intra ON as the first occurrence of the flag, three arms
(8-bit tx-size-search=1/0, 10-bit =1), per attempt a nonzero
filter_intra_rect_sub8_hits delta AND all three planes compared against ffmpeg;
3 firing pixel-exact runs per arm (5/5/4 filter-intra 4x8/8x4 leaves).
feat(av1): inter-frame superblock-level HORZ/VERT/1:4 and 32x32-level 1:4 partition armsAhmet Kaan Gümüş · 323608a
feat(av1): inter-frame superblock-level HORZ/VERT/1:4 and 32x32-level 1:4 partition arms

decode_inter_block's `at` moves from 16-px cells to MI (4 px) units so a
32x32-level 1:4 strip can name its 8-px offset; motion_mode/obmc gain libaom's
BLOCK_32X64/64X32/8X32/32X8/16X64/64X16 rows and are selected by the block's
true footprint; interintra is no longer read on a 1:4 strip
(is_interintra_allowed_bsize is enum-ordered and excludes them); delta_q/lf's
is_whole_sb becomes bSize == sbSize.

Gated: the superblock-level inter PARTITION_HORZ arm, 8-bit, 4 x 64x32 strips
inside 2 pixel-exact attempts vs ffmpeg. NOT gated: the VERT/1:4 arms and the
whole 10-bit side -- every real stream finds those strips non-skip and stops at
"a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual
coding". See lanes/inter4-r1.report.md.
Merge branch 'lane-eobc1': eob_pt class-1 rows checked against libaom for every size by script; inter gate with 1D-class chroma eob at 8/10-bitAhmet Kaan Gümüş · aa53dcc
Merge branch 'lane-eobc1': eob_pt class-1 rows checked against libaom for every size by script; inter gate with 1D-class chroma eob at 8/10-bit

cdf.rs/cdf_state.rs resolved to main's single copy of each class-1 const
(values identical to the lane's). scripts/extract-eob-class1.py reported 8
consts MISSING: EOB_PT_128_LUMA_CLASS1* and EOB_PT_32_CHROMA_CLASS1*, the
tables behind the three arms that still carried `eob_pt_class1: None`
(LumaRect16x8, LumaRect16x8Set1, ChromaRect8x4) -- machine-extracted and
wired, so the script now reports 112/112 checked, 0 mismatched, 0 missing
and no `eob_pt_class1: None` remains.
Merge branch 'lane-tx4x8': 4x8/8x4 leaves read tx_depth (TX_MODE_SELECT) and code TX_4X8/8X4 (ReelB head blocker); every rect shape carries its own libaom reach rowAhmet Kaan Gümüş · a07b869
Merge branch 'lane-tx4x8': 4x8/8x4 leaves read tx_depth (TX_MODE_SELECT) and code TX_4X8/8X4 (ReelB head blocker); every rect shape carries its own libaom reach row

Conflicts: cdf_state.rs (union -- main's eob_pt_*_class1 fields plus the
lane's eob_pt_32_luma pair and the two rect TxbSets, all three hunks),
decode.rs (lane's read_coeffs_rect: it implements the TX_CLASS_HORIZ/VERT arm
main refused; duplicate SCAN_4X8/SCAN_8X4 transcriptions collapsed to one,
trace names unified on rect_trace), encode.rs (lane's per-shape
HAS_TR_*/HAS_BL_* consts + rect_reach_tables win over main's
has_tr_rect_table/has_bl_rect_table, kept main's documented
Reach::rect_table_index as the index and its bijection test, kept main's
VERT_A/B tables), gate_coverage.rs (10-bit "multi-tile" hole closed by the
merged recipes -- its own test demanded the entry go), lanes/COMMON-20260901.md
(main's systemd-run suite section).
Merge branch 'lane-tx64x16': 32x32-level HORZ_4/VERT_4 (four 32x8/8x32 strips, ReelB mid-film blocker) gated on a band fixture at 8/10-bit; 1:4 gates assert out-of-scope pixel mismatchesAhmet Kaan Gümüş · 3ac3386
Merge branch 'lane-tx64x16': 32x32-level HORZ_4/VERT_4 (four 32x8/8x32 strips, ReelB mid-film blocker) gated on a band fixture at 8/10-bit; 1:4 gates assert out-of-scope pixel mismatches

Conflicts: decode.rs (kept main's base_ctx domain test read table[col][row],
kept the lane's transposed-scan-pair test), encode.rs (kept main's
has_tr_rect_table/has_bl_rect_table + rect_table_index from lane-rectx r5 and
folded the lane's 32x8/8x32 rows into them; the lane's HAS_*_RECT arrays and
Reach::rect_table are dropped as redundant), gate_coverage.rs (lane's side:
1:4 partitions leave NEVER_EXERCISED_10BIT).
Merge branch 'lane-rectx': coded (non-skip) 16x8/8x16 strips with TX_16X8/8X16 luma and 8x4/4x8 chroma coefficient paths (ReelC blocker)Ahmet Kaan Gümüş · e47e7ce
Merge branch 'lane-rectx': coded (non-skip) 16x8/8x16 strips with TX_16X8/8X16 luma and 8x4/4x8 chroma coefficient paths (ReelC blocker)

Conflict resolution: cdf.rs/cdf_state.rs take the union (lane's EOB_PT_128_LUMA*
/EOB_PT_32_CHROMA* tables + main's q-dependent EOB_PT_512_CHROMA row);
decode.rs keeps main's sub8 mi-exact neighbour maps and its Option<prev_leaf>
decode_leaf8 (lane's prev_leaves/write_back_split_modes duplicate of the same
fix dropped), lane's coded rect leaf path, both scan-table families;
encode.rs keeps main's VERT_A/B Reach tables with the table_row naming.

2026-09-01

feat(av1): 32x32-level PARTITION_HORZ_4/VERT_4 -- four 32x8/8x32 strips, mi-granularAhmet Kaan Gümüş · 8e9a081
feat(av1): 32x32-level PARTITION_HORZ_4/VERT_4 -- four 32x8/8x32 strips, mi-granular

The arm the 2160p 10-bit AV1 mkv extract stops at ("a 32x32 partition type
this decoder does not code (value=8)"). What landed:

- decode_block_rect4 (decode.rs): decode_block_rect's 4:1 sibling addressed by
  REAL mi coordinates -- strips 1 and 3 start 8 px into a 16-px SUB cell, which
  an at-derived px = c * SUB cannot name (decode_leaf_rect's own reason), with
  decode_leaf_rect's prev-strip mode override for the in-block neighbour.
  Coefficients are read, not refused: luma TX_32X8/TX_8X32 -> TxbSet::LumaRect32x8
  (Luma16's 256-position tables, tx_type None because tx_size_sqr_up is TX_32X32
  = EXT_TX_SET_DCTONLY for intra) with the existing SCAN_32X8/SCAN_8X32; chroma
  TX_16X4/TX_4X16 -> TxbSet::Chroma8 (64 positions) with new SCAN_16X4/SCAN_4X16.
- SCAN_16X4/SCAN_4X16 transcribed from libaom's column-major default_scan_*; the
  conversion rule was validated by REGENERATING SCAN_16X8 from default_scan_16x8
  byte for byte first (class reference-layout-not-spec). Transposed-pair unit
  test over both the new chroma pair and the 32x8/8x32 luma pair.
- Reach: has_tr_32x8/has_tr_8x32/has_bl_32x8/has_bl_8x32 (reconintra.c:122-127,
  305-310) added; the row selector is now an explicit shape match, so no existing
  shape changes row. libaom's index formula (blk_row << (5 - bw_in_mi_log2)) is
  exactly this file's row * (128 / bw) + col, so the stride math generalizes.
- Cherry-picked lane-rectsplit r4 (7b55227): base_ctx states libaom's generating
  rule instead of indexing the transposed 5x5 tables, plus the SB split-tx per-TU
  strips. main's cdf transcriptions are the TRANSPOSE of rectsplit's, so r4's
  domain test is pinned here as [row][col] (documented at the test; the consumer
  reads neither table).

Evidence: the 2160p extract advances past value=8 to the NEXT refusal INSIDE the
new arm ("a 32x32-level 1:4 strip with a split transform"), i.e. the arm executes
on real content. Siblings green: superblock_level_{1to4,horz_vert,ab},
split_transform_horz_vert, refusal_inventory, gate_coverage (13 passed / 0 failed).

NOT PROVEN, and the gate says so: the new pixel gate
a_real_aomenc_stream_with_a_32x32_level_1to4_partition_decodes_pixel_exact is
#[ignore]d because no fixture recipe found this round makes aomenc emit a
32-level 1:4 partition -- 20/20 attempts at min-partition-size=8 carried zero,
as did a vertically-squeezed and a horizontally-blurred variant. Ignoring is
deliberate: a gate that passes without ever seeing its feature is worse than an
absent one (class gate-blind-to-feature).
fix(av1): eob_pt class-1 CDF row missing from 9 of 16 TxbSet arms -- every inter chroma block under a 1D luma tx_type read the 2D rowAhmet Kaan Gümüş · abd0a08
fix(av1): eob_pt class-1 CDF row missing from 9 of 16 TxbSet arms -- every inter chroma block under a 1D luma tx_type read the 2D row

lane-eobc1 r1. libaom's av1_default_eob_multi{16,32,64,128,256,512,1024}_cdfs
are [q][PLANE_TYPES][2]; index 1 is eob_multi_ctx = (tx_class == TX_CLASS_2D)
? 0 : 1 (entropymode.h:81-82, decodetxb.c). Main carried the class-1 row for
6 of the 11 eob_pt tables and left `eob_pt_class1: None` in 9 TxbSet arms --
including Luma4Inter, Luma8Inter and ChromaRect16x8, all of which can code a
1D type. Chroma codes no tx_type symbol of its own: it inherits the colocated
luma type verbatim (av1_get_tx_type, blockd.h:1291), so an 8x8 inter leaf with
H_/V_ luma puts its 4x4 chroma on the class-1 row -- right eob value, wrong
interval, desync one symbol later, surfacing as bogus partition refusals.

Ported the remaining 5 tables (128_chroma, 512_luma/chroma, 1024_luma/chroma)
from lane-gmaffine's f5e1851, machine-extracted afresh:
scripts/extract-eob-class1.py parses token_cdfs.h, emits the [q][plane][1]
rows and `--check`s them against cdf.rs -- all 44 class-1 consts now in the
crate diff bit-exact, 0 mismatched. All 16 arms are Some; 0 `None` left.

The 512/1024 rows are libaom's untouched uniform initialiser, because
av1_get_ext_tx_set_type returns DCT_IDTX/DCTONLY once tx_size_sqr_up >=
TX_32X32 and both members are TX_CLASS_2D -- wired anyway for domain
completeness (class table-domain-narrowed), and cdf.rs's new
eob_pt_class1_rows_cover_every_size test pins exactly that split: the 8
trained rows differ from their 2D sibling, the four 32-point ones are uniform.

GATE (new, 8-bit + 10-bit): a_real_aomenc_{,10bit_}inter_sequence_with_a_
class1_chroma_eob_decodes_pixel_exact -- real aomenc, full tx set
(--reduced-tx-type-set=0 --enable-flip-idtx=1), --min/max-partition-size=8/16,
global/warp/obmc off, 4 frames of a sinusoidal-stripe luma + moving chroma
ramp; hard-asserts decode::chroma_eob_class1_hits() moved on the counted
attempt and compares every shown frame against ffmpeg. Both green.
Ablation (chroma 4x4/8x8 arms set back to None): all 12 attempts fail in both
bit depths -- 10 with bogus partition refusals, 1 with no firing.
feat(av1): TX_4X8/TX_8X4 leaves below 8x8 -- rect scan, 32-position eob_pt, TX_8X8 coeff tables with a TX_4X4 tx_type row (gate still RED)Ahmet Kaan Gümüş · d471e3e
feat(av1): TX_4X8/TX_8X4 leaves below 8x8 -- rect scan, 32-position eob_pt, TX_8X8 coeff tables with a TX_4X4 tx_type row (gate still RED)

Lifts the "a HORZ/VERT partition below 8x8 (square-only transform)" refusal and
the two rect tx_type/tx-class capability claims: decode_leaf_rect8 codes the two
BLOCK_4X8/BLOCK_8X4 sub-blocks of an 8x8 (mode reads, chroma once at the group's
4x4 unit, dequant_and_inverse_typed_wh, Reach::of_rect off libaom's has_tr_4x8/
has_bl_8x4 rows, fill_lf_grid_rect, partition_context_lookup{31,30}/{30,31}), and
read_coeffs_rect now reads a real tx_type symbol including V_DCT/H_DCT (rect
mrow/mcol scans + 1D-class contexts + eob_pt_class1).

Table derivations: get_txsize_entropy_ctx(TX_4X8) = TX_8X8 (coefficient tables),
txsize_sqr_map[TX_4X8] = TX_4X4 (tx_type CDF row), txsize_log2_minus4 = 1
(32-position eob_pt, new from av1_default_eob_multi32_cdfs, both class rows).
Scan conversion (p%h)*w + p/h re-proved by regenerating SCAN_16X8/SCAN_8X16 first.

Gate a_real_aomenc_stream_with_a_sub8_rect_leaf_decodes_pixel_exact (16x16 8-bit,
128x16 --tile-columns=1, 16x16 10-bit; both orientations hard-asserted per attempt)
is RED: seed 303 mismatches luma from sample 0 with no decode error. See
lanes/tx4x8-r1.report.md for the ranked suspect list and the recipe findings
(--max-partition-size=8 does not stop 16x16-level rect strips).
fix(av1): eob_pt class-1 CDF row existed only for two luma sizes -- every chroma (and 16x16+) 1D-class transform read the 2D tableAhmet Kaan Gümüş · d1963fa
fix(av1): eob_pt class-1 CDF row existed only for two luma sizes -- every chroma (and 16x16+) 1D-class transform read the 2D table

lane-gmaffine r4. libaom's av1_default_eob_multi*_cdfs are
[q][PLANE_TYPES][2], the second index being eob_multi_ctx = (tx_class ==
TX_CLASS_2D) ? 0 : 1. This crate carried that class-1 row for
eob_pt_16_luma and eob_pt_64_luma only; 14 of the 16 TxbSet arms passed
eob_pt_class1: None and silently read the 2D row.

It bites on every INTER block's chroma, because chroma never codes a
tx_type symbol -- it inherits the colocated luma type verbatim
(av1_get_tx_type, blockd.h:1291). The two 8x8-leaf motion gates code
H_ADST luma, so their 4x4 chroma is class 1: right eob value, wrong
interval, desync one symbol later, surfacing as bogus partition refusals
('an inter partition below 16x16 other than SPLIT', 'a partition below
8x8').

Measured: EC_TRACE_COEFF ladder vs instrumented aomdec on the globalmv
gate's own 8-bit cq32 stream -- first divergent element is the chroma
4x4 eob of leaf mi=(6,4), both entering at rng=37748 and decoding
eob=16, ours leaving at 35080 vs aomdec's 54536. All four gate streams
now decode all 24 frames.

Also: warp is per PLANE and libaom's av1_init_warp_params bails out at
block_width/height < 8, so an 8x8 leaf's 4x4 chroma is predicted
translationally even when its luma warps -- guarded at both warp sites.

Both 8x8 motion gates remain RED on PIXELS now, not refusals: luma
byte-exact on all 24 frames, U/V off by +-1..3 in the three 4x4 chroma
blocks whose luma tx_type is the 1D-class H_ADST (leaves mi (6,4),
(8,4), (10,4), none of them warped or global). Suite 271 passed, 2
failed, 24 ignored.
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.
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): 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.
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.