Commits
Commits on
0cd363dd52c6ff5f47281404bdaf319a9c92fcf8Filtered to scripts/extract-eob-class1.pyClear filter2026-09-01
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.
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.