forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 231663ed27875fd28c44872ee5987f01d935ae8a

2026-09-02

2026-09-01

test(av1): the 32x32-level 1:4 gate fires and is pixel-exact -- 8-pixel bands, not gradientsAhmet Kaan Gümüş · 3e19c89
test(av1): the 32x32-level 1:4 gate fires and is pixel-exact -- 8-pixel bands, not gradients

r3 lifted the "a 32x32 partition type this decoder does not code (value=8)"
refusal with its gate #[ignore]d because no gradients-derived fixture ever made
aomenc's RD pick a 32-level HORZ_4/VERT_4 (class refusal-lifted-without-a-gate).
The content those shapes win on is 8-pixel BANDS: a 32x8 strip is flat, a 32x16
one straddles two bands, so HORZ_4 beats HORZ and SPLIT; a noise layer with an
explicit seed keeps the flat bands out of screen-content mode. Measured 16
HORZ_4 / 24 VERT_4 strips per frame at both bit depths.

Gate un-ignored unchanged in its asserts: 8-bit 7/8 attempts pixel-exact
(64 HORZ_4 + 72 VERT_4 + 136 coded strips), 10-bit 5/8 (48 + 48 + 96), zero
attempts out of scope, zero mismatches, refusals all named. gate_coverage:
enable-1to4-partitions leaves NEVER_EXERCISED_10BIT.

decode_probe now prints the rect4_32 counters (via stream::rect4_32_counters),
which is how the fixture search was measured rather than reasoned about.
docs(tiles): r12 report -- suite totals, main still needs the palette/filter-intra fixAhmet Kaan Gümüş · d58785a
docs(tiles): r12 report -- suite totals, main still needs the palette/filter-intra fix

Full EC_AV1_REQUIRE_AOMENC=1 suite: 283 passed, 0 failed, 26 ignored (1860.6s);
refusal_inventory + gate_coverage green; all four live multi-tile arms ok.
Re-measured the charter's claim that main already carries the palette use_filter_intra
guard: false at main df5d630 (neither the square nor the rect site has it).
Also fixes a missing line continuation in the two new override assert messages.
fix(av1): the two rect nz_map ctx tables were transposed, and the 512-chroma eob CDF was the flat 1D rowAhmet Kaan Gümüş · 6906e60
fix(av1): the two rect nz_map ctx tables were transposed, and the 512-chroma eob CDF was the flat 1D row

The merged superblock HORZ/VERT gate's seed 43 decoded garbage from the
first 64x32 strip onward; base fad4d5a "passed" it only because the
desynced stream then produced a 16x16 partition symbol the AB refusal
caught (the gate's own recipe spells --enable-ab-partitions=0, so aomenc
never wrote one). Two transcription defects, found by comparing our
EC_TRACE_COEFF against the instrumented aomdec's msac range element by
element:

- NZ_MAP_CTX_OFFSET_32X64 / _64X32 were stored [col][row] and read
  [row][col]. libaom indexes av1_nz_map_ctx_offset by
  coeff_idx = (col << bhl) | row -- column-major, bhl = log2 of the
  transform's HEIGHT -- so a straight transcription is transposed. It is
  invisible on the square table (symmetric) and at row, col < 2 (both
  halves agree), which is every position lane-sbpart r8's gate reached.
- EOB_PT_512_CHROMA carried av1_default_eob_multi512_cdfs' SECOND inner
  index, which is eob_multi_ctx (the flat 1D-class row, flat for both
  planes), not the plane. The chroma 2D rows vary per q-context exactly
  like luma's; all four are spelled out and picked by q_ctx now.

Two unit tests pin both: the offset tables are re-derived from libaom's
own generating rule and cross-checked against base_ctx_rect, which
spells that rule out instead of reading a table (those two disagreed
silently before), and the chroma eob constant is pinned unequal to the
flat row.

Seed 43 now decodes bit-exact vs aomdec (36864/36864 bytes; 20494 luma
bytes differed before). cargo test -p ec-av1 --lib: 274 passed, 0 failed.
fix(av1): Reach::top_right/bottom_left shadowed the block's position row with the table-row index -- the sub8 merge's has_tr_4x4/has_bl_4x4 row lookup rebound `row`, so the bit index (row * table_stride + col) read the wrong bit for EVERY block size; split_transform_horz_vert seed 55 (3080 luma samples) and the sub8 gate both green againAhmet Kaan Gümüş · 5c19acd
fix(av1): Reach::top_right/bottom_left shadowed the block's position row with the table-row index -- the sub8 merge's has_tr_4x4/has_bl_4x4 row lookup rebound `row`, so the bit index (row * table_stride + col) read the wrong bit for EVERY block size; split_transform_horz_vert seed 55 (3080 luma samples) and the sub8 gate both green again
test(av1): extract-eob-class1.py checks the 2D eob_pt rows too -- rectsplit r4's EOB_PT_512_CHROMA suspicion disproved, 88/112 consts bit-exactAhmet Kaan Gümüş · cef1ded
test(av1): extract-eob-class1.py checks the 2D eob_pt rows too -- rectsplit r4's EOB_PT_512_CHROMA suspicion disproved, 88/112 consts bit-exact

lane-eobc1 r1. The checker only ever diffed the class-1 (eob_multi_ctx==1)
rows, so a 2D const accidentally transcribed from its class-1 sibling -- the
shape rectsplit r4 suspected of EOB_PT_512_CHROMA -- was outside its domain.
Emitting both classes covers every [q][plane][class] cell libaom defines:
all 88 consts the crate defines are bit-exact against
~/.cache/aom-oracle/src/av1/common/token_cdfs.h, 0 mismatched. The 24 it
reports missing are two whole absent table families (32-coefficient TX_4X8/8X4
and 128-coefficient luma TX_8X16/16X8) -- both classes missing, no TxbSet
consumes them.

Suite at this HEAD: 301 passed / 1 failed / 27 ignored with
EC_AV1_REQUIRE_AOMENC=1; the one red
(decode::tests::nz_map_ctx_offset_tables_match_the_rect_rule) fails
identically at detached main df5d630, inherited not introduced.
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).
test(av1): force_integer_mv motion-mode gate asserts non-vacuity per attemptAhmet Kaan Gümüş · 50503af
test(av1): force_integer_mv motion-mode gate asserts non-vacuity per attempt

The r1 gate asserted `force_integer_mv frames > 0` and `forced-2-symbol
blocks > 0` only in aggregate over its 6 cq/step cells, so one lucky cell
would have carried five silently vacuous ones (class gate-blind-to-feature).
Both counters are now snapshotted per attempt and asserted after that
attempt's pixel compare: all 6/6 cells of each bit-depth arm carry
force_integer_mv=1 frames AND blocks forced onto the 2-symbol obmc
alphabet (114 frames / 342 blocks per arm).

Also documents at the `ref_is_scaled` site why libaom `av1_is_scaled`'s
y_scale_fp half is unreachable in this decoder: a reference whose height
differs from the frame's true size is refused before any tile decodes
(decode.rs ~14681), so the x-only test is exact here and the y term belongs
to whoever lifts that refusal.
fix(av1): a sub-8x8 rect leaf reads a tx_depth symbol -- TX_MODE_SELECT writes one for BLOCK_4X8/8X4 tooAhmet Kaan Gümüş · 88fd2ae
fix(av1): a sub-8x8 rect leaf reads a tx_depth symbol -- TX_MODE_SELECT writes one for BLOCK_4X8/8X4 too

`decode_leaf_rect8` never called `read_tx_size`, so with aomenc's default
`--enable-tx-size-search=1` (TX_MODE_SELECT) the decoder consumed one symbol
fewer than the encoder wrote and desynced the tile at the very first rect
leaf -- the whole frame came out near-flat from sample 0 (class
`symbol-consumption-gap`; the same defect the 16x16-level strip path already
carries a comment about).

Range ladder vs instrumented aomdec on the pinned seed-303 stream: ours
entered the first TU's `all_zero` with a range that had never taken the
`tx_depth` narrowing (38104 -> 46600 in the oracle, one unread symbol);
after the fix every element matches (45231 / 54240 / eob=30 / 62552 /
63488 / 59248 ...) and the frame is pixel-exact vs ffmpeg.

* `bsize_to_tx_size_cat(BLOCK_4X8) == 0` (`sub_tx_size_map[TX_4X8] == TX_4X4`
  is one step), so the symbol is the 2-symbol `tx_size_cat0` an 8x8 uses, NOT
  the 3-symbol `tx_size_cat2` the 32x16 strips read; context is
  `tx_size_context_rect(bw, bh)` (`get_tx_size_context`'s max_tx_wide/high).
* depth 1 splits the leaf into two 4x4 transform units along its long axis,
  each predicted from the previous unit's reconstruction -- ported (skipped
  leaves included, whose per-unit prediction also differs from one 4x8) and
  the tx size recorded as 4x4 for the next block's tx_size_context.
* new `rect8_split_tx_hits` counter; the gate now hard-asserts the split path
  fired, not just that rect leaves coded coefficients.
* `read_coeffs_rect` gained `read_coeffs`'s `EC_TRACE_COEFF` range ladder
  (all_zero/tx_type/eob/base/base_eob/br), in the oracle's own tag format.

Gate `a_real_aomenc_stream_with_a_sub8_rect_leaf_decodes_pixel_exact`:
RED (mismatch at sample 0) -> GREEN, all three arms.
test(av1): the last two NEVER_ON default-on tools -- forward keyframes and 10-bit interintra-wedge/one-sided compoundAhmet Kaan Gümüş · 0ef28ca
test(av1): the last two NEVER_ON default-on tools -- forward keyframes and 10-bit interintra-wedge/one-sided compound

--enable-fwd-kf=1 --fwd-kf-dist=8 on the altref hidden-frames gate (the only
gate that decodes show_frame==0 frames at all, and it runs both bit depths),
with a new decode::fwd_kf_hits() counter incremented in decode_stream for a KEY
frame coded with show_frame == 0 -- hard-asserted per depth: 42 frames decoded,
2 hidden, 3 forward keyframes, all pixel-exact vs the oracle in decode order at
both 8 and 10 bits.

Two new 10-bit gates through ten_bit_tool_gate:
- a_real_aomenc_10bit_stream_with_interintra_wedge_decodes_pixel_exact
  (--enable-interintra-wedge=1, 8/8 pixel-exact, wii_hits=3)
- a_real_aomenc_10bit_stream_with_onesided_compound_decodes_pixel_exact
  (--enable-onesided-comp=1, 8/8 pixel-exact, uni_comp_hits=5)

NEVER_ON_8BIT is now empty (0 of 10 over 45 gates); NEVER_ON_10BIT is down to
enable-diff-wtd-comp (the 10-bit gradients fixture decodes 8/8 pixel-exact with
diffwtd_hits == 0 -- encoder choice, it needs mandelbrot content in
ten_bit_tool_gate) and multi-tile (covbd2's, not this lane's).
fix(av1): chroma intra-edge filter type read a constant false (and a 16px-coarse uv_mode) below 16x16 -- sub-16 leaves filtered every chroma edge at the wrong strengthAhmet Kaan Gümüş · 6c2db9e
fix(av1): chroma intra-edge filter type read a constant false (and a 16px-coarse uv_mode) below 16x16 -- sub-16 leaves filtered every chroma edge at the wrong strength

libaom's get_filt_type (reconintra.c) picks the chroma intra-edge filter
strength from chroma_above_mbmi/chroma_left_mbmi's `uv_mode`. Two defects
stacked on the sub-16x16 path:

1. decode_leaf_rect / decode_leaf_8x8 passed a literal `false` for
   smooth_neighbor_uv into every chroma reconstruct_rect call -- chroma edges
   were never smooth-filtered below 16x16, whatever the neighbour was.
2. The coarse SUB (16px) above_uv_mode/left_uv_mode cells are written by
   `for cell in 0..w / SUB`, which runs ZERO times for a block narrower than
   16 -- so even the 16x16-and-up readers saw whatever a larger block had
   left in the slot, not the real neighbour (class: context read from one
   cell / neighbour map coarser than the block).

Fix: Neighbours::sub8_mode_{col,row} carry the uv_mode alongside the luma
mode, and uv_modes_above_left{,_mi} resolve the mi-exact chroma neighbour
with the coarse slot only as fallback (tile-edge guards inherited from the
luma twin). Every chroma reconstruct site now passes the derived
smooth_neighbor_uv; zero `None, false,` sites remain in decode.rs.

Gate: a_real_aomenc_stream_whose_chroma_edge_filter_reads_a_sub16_neighbours_uv_mode_decodes_pixel_exact
(mandelbrot start_x=-0.6 64x64, cq16, filter-intra on, reduced-tx-type-set=1,
min/max-partition-size 8/32) -- 8-bit arm pixel-exact vs ffmpeg with
cfl_blocks=15, angle_delta_uv_blocks=19, uv_mi_overrides=52 hard-asserted;
the 10-bit twin still refuses on another lane's sub-16 AB-partition gap and
is skipped from comparison, with a `compared > 0` assert keeping the gate
from passing vacuously.
chore(av1): cherry-pick lane-rectsplit r4 (7b55227) -- base_ctx generating rule + SB split-tx per-TU strips; r2's nz_map test dropped for r4's whole-domain oneAhmet Kaan Gümüş · 30e5597
chore(av1): cherry-pick lane-rectsplit r4 (7b55227) -- base_ctx generating rule + SB split-tx per-TU strips; r2's nz_map test dropped for r4's whole-domain one
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.
fix(av1): motion_mode alphabet ignored force_integer_mv (and scaled refs)Ahmet Kaan Gümüş · a9eda25
fix(av1): motion_mode alphabet ignored force_integer_mv (and scaled refs)

libaom motion_mode_allowed (blockd.h ~1484) only returns WARPED_CAUSAL when
!xd->cur_frame_force_integer_mv && !av1_is_scaled(block_ref_scale_factors[0]);
our warp_eligible had neither clause, so a screen-content frame whose header
set force_integer_mv read the 3-symbol motion_mode_cdf where libaom wrote the
2-symbol obmc_cdf -- a silent tile desync with no refusal naming it (class
wrong-alphabet-same-value). Same clause swept into decode_inter_block8's own
8x8-leaf read.

Gate: a_real_force_integer_mv_warp_{,10bit_}stream_decodes_pixel_exact --
--tune-content=screen, --enable-warped-motion=1 --enable-obmc=1
--enable-global-motion=0 over static screen-content tiles with whole-pixel
motion (what aomenc's av1_is_integer_mv needs). Hard-asserts a decoded frame
header with force_integer_mv=1 and >=1 block forced onto the 2-symbol
alphabet. 6/6 pixel-exact both bit depths; the same gate is 0/6 with 6 named
refusals when the !force_integer_mv clause is removed.
fix(av1): a transform unit is not a block of its own size -- Reach::of_tuAhmet Kaan Gümüş · 85bf4d6
fix(av1): a transform unit is not a block of its own size -- Reach::of_tu

The TX4 sub-grid of an 8x8 square inside a PARTITION_VERT_A/_B indexed a
4x4 row of the three-row has_tr_vert/has_bl_vert tables and panicked on a
real --enable-tx-size-search=1 stream. libaom has no such row on purpose
(has_tr_vert_tables[BLOCK_4X4] is NULL): a transform unit inside a block
answers from the block's geometry, and only its top row / left column
reaches the table -- the BLOCK's row, at the BLOCK's position. Both TU
sites (decode_block's multi-TU branch, decode_leaf8's TX4 grid) go
through the transcription; a unit test pins it equal to the old
unit-as-block answer everywhere outside a vertical AB partition.

The AB gate no longer pins --enable-tx-size-search=0 (aomenc's default is
ON, which is what hid the panic): four attempts run with it on, tolerate
only an 'unsupported' refusal from another lane, and hard-assert a TX4
unit inside a vertical AB partition was reached.
fix(av1): a prediction block 4 or fewer samples wide reads the REGULAR narrow subpel kernel under EIGHTTAP_SHARP too -- spec 7.11.3.4 filterIdx sends EIGHTTAP and EIGHTTAP_SHARP to filter index 4, and libaom's av1_interp_4tap[MULTITAP_SHARP] is av1_sub_pel_filters_4 (filter.h:239-244, comment "For w<=4, MULTITAP_SHARP is the same as EIGHTTAP_REGULAR"); we used the 8-tap sharp table there, invisible above 4 samples so it only bit 4-wide chroma. Cherry-picked from lane-gmaffine 3bb10f1; unit test pins all four narrow mappings (regular->4, smooth->4smooth, sharp->4, bilinear->bilinear).Ahmet Kaan Gümüş · 53b4e56
fix(av1): a prediction block 4 or fewer samples wide reads the REGULAR narrow subpel kernel under EIGHTTAP_SHARP too -- spec 7.11.3.4 filterIdx sends EIGHTTAP and EIGHTTAP_SHARP to filter index 4, and libaom's av1_interp_4tap[MULTITAP_SHARP] is av1_sub_pel_filters_4 (filter.h:239-244, comment "For w<=4, MULTITAP_SHARP is the same as EIGHTTAP_REGULAR"); we used the 8-tap sharp table there, invisible above 4 samples so it only bit 4-wide chroma. Cherry-picked from lane-gmaffine 3bb10f1; unit test pins all four narrow mappings (regular->4, smooth->4smooth, sharp->4, bilinear->bilinear).
wip(merge): lane-sub8 merged into main 61c6a5b -- conflicts resolved, gates RED, NOT for mainAhmet Kaan Gümüş · 6795386
wip(merge): lane-sub8 merged into main 61c6a5b -- conflicts resolved, gates RED, NOT for main

Conflict resolutions kept here so a successor need not redo them:
- decode.rs Neighbours::new -- main's mi-granular inter bands + sub8's four
  mi mode maps (sub8_mode_col/row, uv_mode_col/row).
- decode.rs record_split_luma_rect -- main's rect (w_mi,h_mi) span with
  sub8's record_mode_mi/record_uv_mode_mi calls.
- encode.rs Reach::top_right/bottom_left -- main's VERT_A/B tables kept,
  sub8's has_tr_4x4/has_bl_4x4 row kept, side-4 falls back to the ordinary
  table inside a VERT_A/B (no vert 4x4 row exists) with a corner-cut note.
- examples/decode_probe.rs -- main's EC_PROBE_OUT + dimensions print.
- refusal_inventory.rs -- sub8's sub-8x8 reader still refuses intrabc while
  main's 8x8-and-up reader reconstructs one; refusal string narrowed to
  "a sub-8x8 leaf that uses intrabc" and listed.
- gate_coverage.rs -- enable-1to4-partitions retired from the 8-bit list
  (sub8's gate passes =1), 10-bit entry reworded.

RED on the merged tree (both fail; each side is green alone):
- a_real_aomenc_stream_with_a_sub8_split_decodes_pixel_exact (seed=100 cq=6)
- a_real_aomenc_stream_with_a_split_transform_horz_vert_strip_decodes_pixel_exact
  (seed 55, luma (191,76) ours=127 ffmpeg=128, 3080 samples, bbox x94..191
  y76..127) -- green at main 61c6a5b, absent from the sub8 lane's tree.
test(av1): default-on tools spelled on in the gates that exercise them -- loopfilter-control=1 (2 8-bit + 1 10-bit deblock gate), enable-tx-size-search=1 (shared tx-select inter helper, both depths), enable-directional-intra=1 (directional chroma), enable-diff-wtd-comp=1 + new diffwtd_hits assert (masked compound), enable-onesided-comp=1 + new uni_comp_hits assert (interintra); gate_coverage counts a bit_depth-parameterised helper at both depths; NEVER_ON 6/7 -> 1/5Ahmet Kaan Gümüş · df86cfc
test(av1): default-on tools spelled on in the gates that exercise them -- loopfilter-control=1 (2 8-bit + 1 10-bit deblock gate), enable-tx-size-search=1 (shared tx-select inter helper, both depths), enable-directional-intra=1 (directional chroma), enable-diff-wtd-comp=1 + new diffwtd_hits assert (masked compound), enable-onesided-comp=1 + new uni_comp_hits assert (interintra); gate_coverage counts a bit_depth-parameterised helper at both depths; NEVER_ON 6/7 -> 1/5
fix(av1): a 4-sample-wide prediction block reads the REGULAR narrow subpel kernel under EIGHTTAP_SHARP too (spec 7.11.3.4 filterIdx, av1_interp_4tap[MULTITAP_SHARP] == av1_sub_pel_filters_4) -- we used the 8-tap sharp kernel there, which only ever bit the 4x4 chroma of an 8x8 leaf; both 8x8-leaf motion gates go pixel-exact 24/24 frames at 8- and 10-bit, suite 271/2 -> 273/0Ahmet Kaan Gümüş · 06a5eac
fix(av1): a 4-sample-wide prediction block reads the REGULAR narrow subpel kernel under EIGHTTAP_SHARP too (spec 7.11.3.4 filterIdx, av1_interp_4tap[MULTITAP_SHARP] == av1_sub_pel_filters_4) -- we used the 8-tap sharp kernel there, which only ever bit the 4x4 chroma of an 8x8 leaf; both 8x8-leaf motion gates go pixel-exact 24/24 frames at 8- and 10-bit, suite 271/2 -> 273/0
fix(av1): no use_filter_intra symbol for a palette-Y block (av1_filter_intra_allowed), and the multi-tile palette gate goes liveAhmet Kaan Gümüş · 4395cbd
fix(av1): no use_filter_intra symbol for a palette-Y block (av1_filter_intra_allowed), and the multi-tile palette gate goes live

libaom's av1_filter_intra_allowed also requires palette_size[0] == 0, so it writes
no use_filter_intra symbol for a Y-palette block. This decoder read one anyway,
desyncing every screen-content stream from its first palette block -- surfacing as
a bogus "partition below 8x8"/"HORZ_A below 16x16" refusal further down the tile
(refusal-names-a-correlate). Range ladder vs instrumented aomdec: both sides agree
through angle_uv at mi(0,8) rng=38738, ours then reads use_filter_intra=1.

a_real_aomenc_multi_tile_palette_stream_decodes_pixel_exact is un-ignored and green
6/6 with a per-attempt counter (palette_tile_left_hits) proving a palette block fired
at a tile's own left column, plus per-arm override proofs (sequence header
enable_cdef/enable_restoration; allow_screen_content_tools on the palette arm).

r11's charter premise that aomenc keeps the FIRST occurrence of a repeated flag is
MEASURED FALSE (last wins) -- extras stay after the base recipe.
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): a split-transform rect strip must still stamp its palette neighbour stateAhmet Kaan Gümüş · 1b23037
fix(av1): a split-transform rect strip must still stamp its palette neighbour state

decode_block_rect's split-transform arm (depth != 0) returns before the fn's
own tail, so record_palette_y_rect/record_palette_uv_rect never ran for that
block: the above/left palette arrays kept a DEAD block's size+colours, and the
next block's UV colour cache (Neighbours::palette_uv_cache) then hit a cached
entry with the wrong VALUE. Same cache length, so the same bits are read and
the entropy stream stays in sync -- the defect is silent, pixels only.

smptebars 192x192 cq45 (--enable-palette=1 --min/max-partition-size=16/64):
U 512 bytes wrong (x48..55, y0..63 chroma, max |d| 28), Y and V exact, and
--enable-palette=0 exact -> now 0 bytes off. On the lane this cell was hidden
behind the 32x32 partition value=7 refusal main has since lifted (class
refusal-hides-a-defect).

PALETTE_PRED set/take now go through set_palette_pred/take_palette_pred, which
trace every arm and consumption (with the caller's location and a stale flag)
under EC_DEBUG_PAL=1 -- 20 set sites vs 2 take sites were unauditable before.
Sweep: 4486 is the ONLY early return Ok in any decode_block* fn.

palette gate: 40/70 matched (was 17/70), 0 named refusals, palette_rect_hits=142.
screen-content gate: 47/70 matched, 31 through a split-tx palette block.
test(av1): every real-aomenc gate pixel-compares each successful decode, counter or notAhmet Kaan Gümüş · 64df83b
test(av1): every real-aomenc gate pixel-compares each successful decode, counter or not

Class [[gate-skips-on-its-own-failure]] / counter-from-refused-stream: 13 gates
in stream.rs, after a SUCCESSFUL decode_stream, `continue`d to the next attempt
when their feature hit counter had not moved -- BEFORE any pixel compare -- so a
wrong-pixel decode in that bucket was silently swallowed. The counter now only
decides whether an attempt counts toward the firing total (`counted`); every
successful decode is compared against ffmpeg on all planes and all frames, and a
mismatch panics as before.

Gates fixed (counter): intra tx_select (tx_depth_hits), tx_select_inter_gate
(txfm_split), smooth-luma (smooth_luma_hits), smooth/paeth chroma
(smooth_uv_hits), directional chroma (directional_uv/angle_delta), golden
(non_last_ref_hits), single-ref gate x5 (ref_hits), reference_select
(comp_mode_hits), compound refs (skip_mode_hits), obmc (obmc_hits), obmc 8x8
(obmc_hits_8), temporal MV gate (tmv_hits), min8 tx_class1 (tx_class1_hits).

New `gate_buckets()` helper prints counted-exact / uncounted-exact /
named-refusals at every exit, summing to the attempts made. No recipe, seed,
counter or assertion was changed.

Measured (EC_AV1_REQUIRE_AOMENC=1, 26 tests + refusal_inventory + gate_coverage,
all pass): 43 previously-uncompared successful decodes now pixel-compared --
bwdref 17, obmc8x8 11, altref2 6, last3 2, altref 2, reference_select 2,
tx_class1 2, last2 1 -- all pixel-exact, no new defect exposed, no gate ignored.
fix(av1): SB-level 1:4 gate is GREEN on current main -- plus two main-red pins (nz_map test read the abandoned transposition, 1:4 coverage hole closed)Ahmet Kaan Gümüş · 7820978
fix(av1): SB-level 1:4 gate is GREEN on current main -- plus two main-red pins (nz_map test read the abandoned transposition, 1:4 coverage hole closed)

r1's red 16x64 gate was a STALE BASE, not a defect: rebasing lane-tx64x16 from
dc5553f onto main (5811ec5 -> 6d86d3a) turns
`a_real_aomenc_stream_with_a_superblock_level_1to4_partition_decodes_pixel_exact`
green with no change to the 1:4 wiring, and the r1 suite's "17 failures" drop to
2, neither of them this lane's:

- `decode::tests::nz_map_ctx_offset_tables_match_the_rect_rule` (RED on main,
  not on this branch's diff): the test read `NZ_MAP_CTX_OFFSET_32X64/_64X32` as
  `[col][row]` (lane-rectsplit r2's column-major premise, later disproved and
  reverted) while the tables and their only real consumer -- `base_ctx`'s
  `TxClass::TwoD` arm, decode.rs:1829 -- are display-major `[row][col]`. Read in
  the consumer's order; table content untouched, so every merged rect gate keeps
  the reading it is green under.
- `gate_coverage::tests::never_exercised_8bit_matches_the_gate_recipes`: this
  lane's gate passes `--enable-1to4-partitions=1` at 8 bit, so the 8-bit hole is
  retired; the 10-bit entry stays and now says so.

Rebase conflicts resolved keeping BOTH SB partition arms (main's AB arms from
part32 r4 and this lane's HORZ_4/VERT_4), with `reduced_tx_set` threaded into
the 1:4 `decode_block_rect64` calls; the unreachable `_` arm now refuses an
out-of-range partition value instead of the (now coded) 1:4 pair.
test(av1): gate coverage sees default-on tools and non---enable-* spellingsAhmet Kaan Gümüş · 32a6763
test(av1): gate coverage sees default-on tools and non---enable-* spellings

Third instance of tool-disabled-in-every-gate: the derivation read "--enable-
only, so tools aomenc has on by default and the gates pin off through another
spelling were invisible -- --enable-tx-size-search=0 (34/41 8-bit gates, the pin
behind lane-ab16's real-stream PANIC), --loopfilter-control=0, single-tile
--tile-columns/--tile-rows, --cpu-used.

DEFAULT_ON_TOOLS (10 entries: tool, aomenc spellings, default, on-rule) plus
NEVER_ON_8BIT (6) / NEVER_ON_10BIT (7) pinned per bit depth under the unchanged
'defaulted means unknown' rule, with the off/defaulted split in each reason.
ALIASES maps --superres-mode onto enable-superres, which retires the two
enable-superres entries covbd deferred. Print helper extended.

gate_coverage 9/9, refusal_inventory 3/3.
feat(av1): 1:4 partitions at 64x64 (TX_64X16/TX_16X64 luma, 32x8/8x32 chroma) -- wiring lands, gate still REDAhmet Kaan Gümüş · 1dd6e1e
feat(av1): 1:4 partitions at 64x64 (TX_64X16/TX_16X64 luma, 32x8/8x32 chroma) -- wiring lands, gate still RED

PARTITION_HORZ_4/VERT_4 wired at the superblock level (four 64x16 / 16x64
strips, libaom's quarter_step + frame-edge break), decode_block_rect64
generalised from a hardcoded 32x32 luma corner to bw.min(32) x bh.min(32),
and the two new chroma scans SCAN_32X8/SCAN_8X32 transcribed from libaom's
column-major default_scan_32x8/8x32 (conversion validated by reproducing the
existing SCAN_16X8 first -- libaom's default_scan_16x8 literal equals this
repo's SCAN_8X16, so a naive copy installs the transpose).

No new CDF table is owed: av1_get_adjusted_tx_size maps TX_64X16->TX_32X16,
get_txsize_entropy_ctx and txsize_log2_minus4 agree for both pairs
(TX_64X16 == TX_32X16, TX_32X8 == TX_16X16), av1_scan_orders gives TX_64X16
default_scan_32x16, and av1_nz_map_ctx_offset[TX_64X16] IS
av1_nz_map_ctx_offset_32x16. The transform primitives were already generic
(charter premise was stale): inverse_transform_2d_typed_wh already zeroes
past 32 on a 64 axis, already skips the sqrt2 scale at 4:1, and
row_shift_wh already matched inv_shift_64x16/inv_shift_32x8.

The gate (a_real_aomenc_stream_with_a_superblock_level_1to4_partition_...)
FAILS: seed 73's four real 16x64 VERT_4 strips mismatch ffmpeg (10754 luma
samples, first at (64,56), across the deblock edge above the strips), stream
pinned at crates/ec-av1/fixtures/tx64x16-vert4-mismatch-seed73.obu. The
skip-case VERT_4 decodes pixel-exact. Refusal string narrowed but NOT proven
lifted -- see lanes/tx64x16-r1.report.md for the ruled-out list and the
pre-existing seed-55 defect this recipe also exposes.
fix(av1): SB-level HORZ/VERT split-transform strips -- transposed rect nz_map offset read AND an eob_pt chroma CDF transcribed from libaom's 1D-class rowAhmet Kaan Gümüş · fdfb8e3
fix(av1): SB-level HORZ/VERT split-transform strips -- transposed rect nz_map offset read AND an eob_pt chroma CDF transcribed from libaom's 1D-class row

Two defects, the first hiding the second behind a named refusal.

1. base_ctx read av1_nz_map_ctx_offset's rect tables [row][col]. libaom indexes
   them by coeff_idx = col * 32 + row (get_nz_map_ctx_from_stats decomposes
   col = coeff_idx >> bhl, bhl = log2 of the ADJUSTED height = 5 for TX_64X32
   and TX_32X64), so 32 consecutive flat entries are one COLUMN and the cdf.rs
   5x5 transcriptions are [col][row]. Reading them [row][col] is the transpose
   = the other shape's rule with 11 and 16 swapped. Now states libaom's
   generating rule (txb_common.h:199-209) directly, as base_ctx_rect already
   did, with a unit test over the whole 5x5 domain of both shapes.

2. EOB_PT_512_CHROMA came from av1_default_eob_multi512_cdfs[q][plane][1] --
   the eob_multi_ctx = 1 (V_DCT/H_DCT) row, flat and q-independent -- not the
   2D row, which has the usual four q-context variants. The first real 32x16
   chroma transform read eob_pt group 8 (eob 103) where aomdec read group 3
   (eob 3) at identical msac range. This is what made seed 43 of the merged SB
   HORZ/VERT gate RED in r3 once (1) was fixed; before that the stream exited
   through a refusal 13 elements earlier and the gate scored it as a pass.

Refusal lifted: "a superblock-level HORZ/VERT strip with a split transform
(per-unit rect prediction is not ported)" -- gate (b)
a_real_aomenc_stream_with_a_split_transform_superblock_strip_decodes_pixel_exact
un-ignored and green with its per-attempt SB-interior-TU counter.

Gates: (a)(b)(c) + merged SB HORZ/VERT + filter-intra strip + inventory/coverage
green; full lib suite 272 passed / 0 failed / 23 ignored. Third leg (lane-tx64x16's
--min-partition-size=16 --enable-1to4-partitions=1 sweep, seeds 42..81): 33 exact,
7 named refusals, 0 mismatches -- seed 55's 3944 wrong luma samples are gone. The
ReelB mid-film extract now advances past this refusal to PARTITION_HORZ_4.
test(av1): every alt-ref gate now compares hidden frames -- decode-order compare at 13 sites + an --arnr-maxframes=0 second arm; finding: the gates' own recipes emit ~0 hidden frames (5 across 281 attempt-streams), the arm emits 1-3 each and all are pixel-exact; oracle rung 13 (EC_MODE_MV + EC_MODE_VAL stack=) lifted out of the hand-patched build tree into instrument-aom-oracle.shAhmet Kaan Gümüş · 33130e2
test(av1): every alt-ref gate now compares hidden frames -- decode-order compare at 13 sites + an --arnr-maxframes=0 second arm; finding: the gates' own recipes emit ~0 hidden frames (5 across 281 attempt-streams), the arm emits 1-3 each and all are pixel-exact; oracle rung 13 (EC_MODE_MV + EC_MODE_VAL stack=) lifted out of the hand-patched build tree into instrument-aom-oracle.sh
Merge main 06d856d into lane-palette2Ahmet Kaan Gümüş · 2b5b4fa
Merge main 06d856d into lane-palette2

decode.rs reconstruct_rect: keep the lane's PALETTE_PRED override wrapper, with
main's EC_DEBUG_EDGES trace moved inside the else after edges_rect.
refusal_inventory: main's list minus the screen-content palette string (this
lane lifted it), plus the lane's two palette strings; main's 1:4 SB string kept.
fix(av1): palette left neighbour/colour cache is tile-relative, not frame-relativeAhmet Kaan Gümüş · 45c1398
fix(av1): palette left neighbour/colour cache is tile-relative, not frame-relative

`palette_ctx_and_cache` and `palette_uv_cache` read the LEFT palette size and
colours with no availability guard at all, where libaom's
`av1_get_palette_cache` takes `xd->left_mbmi` -- NULL whenever the block sits at
its own TILE's left column. A second tile column therefore inherited the
previous tile's palette colours into its cache and its `palette_y_mode` context.
Guarded with `c > tile_col0_mi / (SUB / MI)` on both, and `Neighbours::start_row`
now clears the four palette side bands it always skipped.

Also adds the multi-tile palette gate arm (smptebars, 2 tile columns, screen
content), `#[ignore]`d: it refuses before a palette block reconstructs because
aomenc keeps the FIRST occurrence of a repeated --enable-* flag, so the arm's
overrides never take. One edit next round (extra before the base recipe).

Tile suite 54/54 green, gate_coverage 5/5.
docs(inter8): r3 report -- 10-bit desync pinned to the leaf's post-mv mode info, tile-band audit, two ablated candidatesAhmet Kaan Gümüş · 1c02f8f
docs(inter8): r3 report -- 10-bit desync pinned to the leaf's post-mv mode info, tile-band audit, two ablated candidates

Suite on this branch: 270 passed / 0 failed / 25 ignored.
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.