Commits
2026-09-02
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.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).
Merge branch 'main' into lane-r14: cdf_state TxbSet arms from both sides (16x4 intra 1:4 + 16x8 inter rect)Ahmet Kaan Gümüş · 072c1e3Browse files
Merge branch 'lane-inter4': inter superblock/32-level rect and 1:4 partition arms, 16x8/8x16 inter leaves with rectangular residual coding, motion field walks both reference slots (temporal MV candidates were wrong)Ahmet Kaan Gümüş · 78a388cBrowse files
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.
fix(av1): size_group_wh gave group 1 to every 4-px-side block (libaom size_group_lookup says 0)Ahmet Kaan Gümüş · 54f8c61
fix(av1): size_group_wh gave group 1 to every 4-px-side block (libaom size_group_lookup says 0) 4x4/4x8/8x4/4x16/16x4 select size group 0 in libaom (common_data.h:60), so every sub-8 leaf was reading the wrong y_mode / interintra / interintra_mode CDF row. Pinned by a unit test enumerating all 22 BLOCK_SIZES_ALL entries. Also: decode_probe prints the rect_inter tu/txsplit/obmc_leaf counters (the sweep that measured the rect var-tx SPLIT and 10-bit rect TU paths as unexercised, now recorded in the gate comment), and cdf.rs gets EOB_PT_128_CHROMA_CLASS1_Q0's doc comment back after r3's LUMA block displaced it.
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).
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-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.
Merge branch 'lane-rectsplit': per-TU rect prediction under split transforms at the superblock level (ReelB mid-film blocker); nz_map ctx offsets from libaom's generating rule (the [row][col] table read was wrong at 120/1024 positions per rect shape); EOB_PT_512_CHROMA q-context rowsAhmet Kaan Gümüş · e11191cBrowse files
2026-09-01
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): 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.
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.Merge branch 'lane-txselect': inter TX_MODE_SELECT var-tx (txfm_split tree, TXFM_CTX_INIT=64, per-leaf residual), eob_pt class-1 rows above 8x8; gates 8/10-bit green (verifier PASS, 269/0/23); fmt-only churn dropped, main's uv_tx_grid chroma deblock keptAhmet Kaan Gümüş · 4463654Browse files
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): inter var-tx (TxMode::Select) read + per-TU residual; blanket inter refusal liftedAhmet Kaan Gümüş · f66f359
feat(av1): inter var-tx (TxMode::Select) read + per-TU residual; blanket inter refusal lifted spec 5.11.17 read_block_tx_size/read_var_tx_size, libaom decodeframe.c read_tx_size_vartx: an inter block's transform size is now the recursive txfm_split tree from its max square transform down to MAX_VARTX_DEPTH=2, with the above/left TXFM_CONTEXT arrays maintained per transform unit (txfm_partition_update) and per block (set_txfm_ctxs; a skipped inter block records its BLOCK size, not its transform size). Coefficients are read and reconstructed leaf by leaf in the tree's own order, each unit against its own slice of the motion-compensated predictor and its own txb_skip context; chroma keeps the block's uv transform and inherits the top-left unit's coded tx_type. - decode.rs: read_block_tx_size/read_var_tx_size/txfm_partition_ctx/ txfm_partition_update/set_txfm_ctxs, TXFM_SPLIT_READS/HITS counters, Neighbours::above_txfm/left_txfm, wired into both decode_inter_block residual branches and (new this round) all three decode_inter_block8 branches via read_inter_luma8. - TXFM_CTX_INIT = 64, not 0: av1_zero_above_context memsets the txfm row to tx_size_wide[TX_SIZES_LARGEST] and av1_zero_left_context to tx_size_high[TX_SIZES_LARGEST] (av1_common_int.h:1624/1632). The WIP's zero-init was a false premise and desynced frame 2 of the gate. - cdf.rs/cdf_state.rs: TXFM_PARTITION (21 contexts) in the table set, adaptation and the per-frame counter reset; Luma4Inter/Luma4InterSet1 coefficient sets for a var-tx tree that reaches 4x4. - stream.rs: the blanket "an inter frame using TxMode::Select" refusal is gone; what remains refused is named at its own site (a var-tx leaf larger than 32x32; an intra block in an inter frame whose tx_depth splits). New gate a_real_aomenc_inter_sequence_with_tx_select_decodes_pixel_exact -- the aomenc recipe WITHOUT --enable-tx-size-search=0, hard-asserting both txfm_split counters and panicking (never SKIPping) when nothing fires. - refusal_inventory.rs: -1 blanket refusal, +2 narrow ones. Gate is RED at frame 2 (see lanes/txselect-r1.report.md): key frame + first inter frame decode pixel-exact with 8 splits taken, frame 2 diverges.
wip(txselect): session restart -- uncommitted builder state preserved by orchestratorAhmet Kaan Gümüş · d47ed65Browse files
2026-08-30
fix(av1): NZ_MAP_CTX_OFFSET_32X64/_64X32 were transposedAhmet Kaan Gümüş · 621d55b
fix(av1): NZ_MAP_CTX_OFFSET_32X64/_64X32 were transposed
Re-derived from libaom's own generating formula in
get_nz_map_ctx_from_stats (txb_common.h:199-210) and hand-verified
against the raw 1024-entry arrays in txb_common.c. lane-sbpart r8 landed
these tables transposed; VERT-64 (32x64) luma is now bit-exact against
the oracle trace for the pinned seed-42 block, all six ctx/pos/level
reads matching.
This also RETIRES round 2's diagnosis, which I had charted as fact:
there is no missing SCAN_32X64/SCAN_64X32 table. libaom's scan.c:1877
says both TX_32X64 and TX_64X32 use default_scan_32x32 outright ("Half
of the coefficients of tx64 at higher frequencies are set to zeros. So
tx32's scan order is used"), and our existing scan32 = default_scan(TX32)
at decode.rs:3559 matched the oracle's (row,col) walk exactly for every
scan step of the pinned block. The defect was one table over.
Committed by the orchestrator at the agent's turn cap.wip(rectx): non-skip TX_16X8/TX_8X16 rect-leaf coefficient decodeAhmet Kaan Gümüş · 6253922
wip(rectx): non-skip TX_16X8/TX_8X16 rect-leaf coefficient decode Uncommitted at the agent's turn cap, committed by the orchestrator. `cargo check -p ec-av1 --lib` clean; NO test run, NO gate, NO pixel-exact proof yet. Adds EOB_PT_128_LUMA and EOB_PT_32_CHROMA (the only tables the size actually needed -- av1_get_ext_tx_set_type puts TX_16X8/TX_8X16 under use_reduced_set in the SAME EXT_TX_SET_DTT4_IDTX the square Luma16 set already reads, so the adapted intra_tx_type_16[mode] table is correct to share and no new tx_type CDF was needed); TxbSet::LumaRect16x8 and ::ChromaRect8x4; SCAN_8X4/SCAN_4X8; an optional tx_type symbol in read_coeffs_rect, which previously hard-refused it; and the non-skip branch of decode_leaf_rect wired to real coefficient decode through the existing around_mi_rect/record_mi_rect machinery. Note for whoever reads the scan constants: this repo's SCAN_WxH naming is axis-swapped from libaom's -- repo SCAN_16X8 is libaom default_scan_8x16 verbatim. The new pair follows that established convention rather than re-deriving it, and it is NOT yet covered by a transposed-pair test.
fix(av1): superblock HORZ/VERT strip's luma corner nz-map ctx table -- pixel exactAhmet Kaan Gümüş · db23f4b
fix(av1): superblock HORZ/VERT strip's luma corner nz-map ctx table -- pixel exact r7 range-laddered block2's coefficient read to a single symbol: base_ctx at (row=1, col=0) diverges (ours 3, libaom level 1) with identical entry range, eob and base_eob. Root cause per libaom source: get_txsize_entropy_ctx resolves TX_32X64/TX_64X32's CDF *set* to square TX_64X64 (confirmed correct, ruling out the charter's first suspect), but av1_nz_map_ctx_offset (the position term feeding base_ctx) is separately indexed by the raw, un-adjusted tx_size in decodetxb.c -- TX_32X64 and TX_64X32 each own a genuinely different offset table from the square one (av1_nz_map_ctx_offset_32x64/ _64x32 in txb_common.c), confirmed against libaom source and used already by lane-rectwire's base_ctx_rect for the smaller (<=32) rectangular sizes. decode_block_rect64's luma corner read went through the generic (square-only) base_ctx via read_coeffs, never picking up the rect table. Added NZ_MAP_CTX_OFFSET_32X64/_64X32 (verified against the real libaom tables), threaded an Option<(w, h)> rect_shape hint through read_coeffs/ base_ctx (None at every square call site, Some((bw, bh)) only from decode_block_rect64), and select the matching offset table. Gate: a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact now 15/40 pixel-exact matches (0 mismatches, 25 named refusals, sb_rect_hits=36) -- was 0/40 pixel-exact before this round.
Merge remote-tracking branch 'origin/main' into lane-sbpartAhmet Kaan Gümüş · a3e5cc5
Merge remote-tracking branch 'origin/main' into lane-sbpart # Conflicts: # crates/ec-av1/src/stream.rs
Merge branch 'main' into lane-lr; LR gate is GREEN after the SGR table fixAhmet Kaan Gümüş · aadcbfd
Merge branch 'main' into lane-lr; LR gate is GREEN after the SGR table fix r9 resolved every conflict and hit its turn cap before compiling. I finished it: three of main's newer gate call sites were missing this branch's LoopRestorationParams argument (git merged the text cleanly and the result did not compile -- same semantic-conflict shape as the delta_q merge), and main's "a frame with loop restoration enabled" refusal is retired by this branch, so refusal_inventory drops it. The result: a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly PASSES. The one-pixel SGR gap that survived rounds 5, 6 and 7 was 7ad6d77's mistranscribed SGR_X_BY_XPLUS1 entries, not a sampling or stripe-boundary defect. Suite 260 passed / 0 failed.
Merge branch 'lane-palette': palette-Y blocks decode pixel-exactAhmet Kaan Gümüş · 2195bbd
Merge branch 'lane-palette': palette-Y blocks decode pixel-exact Blocker (3) closed. Root cause was call ORDER, not a table: every symbol was already bit-exact through read_palette_colors_y, and the range diverged exactly at decode_color_index_map's entry because libaom reaches decode_color_map_tokens from parse_decode_block AFTER the whole mode-info decode, including UV palette mode_info and filter_intra. We called it inline after the Y colours and never read UV palette mode_info at all. Fix: read UV palette mode_info, defer the index map past filter_intra. UV palette reconstruction stays refused by name. enable-palette leaves NEVER_EXERCISED with positive evidence -- the new gate passes --enable-palette=1 -- so intrabc is now the last entry. Two conflicts resolved here, both additive-vs-additive: - Neighbours' delta_lf_grid (lane-realworld) and the palette neighbour cache (lane-palette) are independent fields; kept both. - Three lanes each numbered their new oracle instrumentation rung "6". lane-palette's two are renumbered 8 and 8b behind superres's 6 and 7. Suite 256 passed / 0 failed.
feat(av1): EOB_PT_512_CHROMA table + TxbSet::ChromaRect32x16 (lane-sbpart prep)Ahmet Kaan Gümüş · 086ca56
feat(av1): EOB_PT_512_CHROMA table + TxbSet::ChromaRect32x16 (lane-sbpart prep) Building block for the 64x32/32x64 intra strip decode this lane needs (PARTITION_HORZ/VERT at the 64x64 superblock level): worked out from libaom's get_txsize_entropy_ctx that a strip's chroma plane (32x16, a real untruncated transform) resolves its entropy context to TX_32X32 (Chroma32's own tables) while its luma plane (64x32, truncated to a 32x32 corner) resolves to TX_64X64 (the already-landed Luma64) -- the two axes landing on different existing sets is why chroma needs a new variant here rather than reusing LumaRect32x16's chroma sibling (ChromaRect16x8, which is the wrong shape: 16x8, not 32x16). libaom's av1_default_eob_multi512_cdfs is the same flat distribution for chroma at every q-context, unlike every other EOB_PT_* table here, so one constant covers all four -- no _Q0/_Q1/_Q3 siblings needed. Not yet wired to any decode path (decode_block_rect only handles the already-landed 32x16/16x32 case); see lanes/sbpart.report.md for the gate recipe that reproduces the SB-level refusal and what the next round still needs to build on top of this.
wip(av1): lane-realworld r4 delta_q/delta_lf at the 75-turn cap (orchestrator commit, unverified)Ahmet Kaan Gümüş · d1bc378Browse files
feat(av1): palette colour-index CDF tables + 4-site wiringAhmet Kaan Gümüş · 28f95f6
feat(av1): palette colour-index CDF tables + 4-site wiring PALETTE_Y_COLOR_INDEX / PALETTE_UV_COLOR_INDEX (entropymode.c), indexed [n-2][color_ctx], transcribed from AOM_CDFn macros with zero-padding past each row's real n+1 entries (call site slices [..=n]). Wired into Cdfs: struct fields, per-frame counter reset (reset3, generic), defaults array. Inert until stage 3-4 reads them.
wip(av1): loop restoration CDF tables (restore_wiener/sgrproj/switchable)Ahmet Kaan Gümüş · ed590d6
wip(av1): loop restoration CDF tables (restore_wiener/sgrproj/switchable)
libaom entropymode.c default_{wiener,sgrproj,switchable}_restore_cdf,
copied exactly. Wired into Cdfs struct, defaults, and counter reset
(reset1, unindexed like intrabc). Not read from the bitstream yet --
next step wires read_lr/read_lr_unit into the superblock walk.wip(av1): rect coefficient wiring (in progress, orchestrator-committed at the turn cap)Ahmet Kaan Gümüş · a27a535Browse files
Merge branch 'lane-screen': consume palette/intrabc syntax on key framesAhmet Kaan Gümüş · 31f684b
Merge branch 'lane-screen': consume palette/intrabc syntax on key frames Screen-content key frames decode now. The decoder does not reconstruct a palette -- it consumes the syntax so the arithmetic decoder stays in sync, and a block that genuinely uses palette or intrabc refuses by name. The whole-frame refusal is narrowed rather than removed: decode_inter_block's intra-sub-block branches have no palette wiring at all, so inter frames with the bit set keep refusing until a follow-up lane threads the same two flags there. Two integration points this merge had to settle: Rect intra strips (lane-intradisp) do not consume palette syntax -- the square reader's palette_bsize_ctx is keyed on a single side -- so a strip in a screen-content frame would skip symbols the encoder wrote and desync. It refuses by name instead. The filter_intra gate was eaten by the old whole-frame refusal and skipped for its whole life; now that it runs, it turned out not to pin --threads=1 the way every sibling gate does, and a multi-threaded aomenc is not deterministic, so each run encoded a different stream and the gate flaked against whichever features that run happened to pick. Pinned, plus EC_FI_SEED/EC_FI_CQ hooks so the recipe can be searched without a rebuild. It fired in 6 consecutive runs and in 14 of 15 points of a (cq, seed) sweep; the one failure was a real "use_filter_intra never fired" assert at cq=60, not a mismatch. Full lib suite 224 passed / 0 failed, twice.
wip(av1): palette/intrabc syntax consumption (in progress, threading not finished)Ahmet Kaan Gümüş · b46f7d8
wip(av1): palette/intrabc syntax consumption (in progress, threading not finished) Committed by the orchestrator: the builder hit its turn cap mid-threading.
wip(av1): intra HORZ/VERT strip dispatch (skip-only), recovered from stashAhmet Kaan Gümüş · 770cfc0
wip(av1): intra HORZ/VERT strip dispatch (skip-only), recovered from stash Builder hit its turn cap with the whole implementation sitting in a stash; committed verbatim as recovered so it cannot be lost. Gate ladder, report and scope-down rationale still owed.
2026-08-28
fix(av1): motion_mode/obmc CDFs gain BLOCK_16X32/32X16 rows; rect strips index their own bsize rowAhmet Kaan Gümüş · ab0445e
fix(av1): motion_mode/obmc CDFs gain BLOCK_16X32/32X16 rows; rect strips index their own bsize row rect-flake-1 strip 1's motion_mode read diverged on the square-class row; with the true rows the whole HORZ block is entropy-exact (range ladder exact everywhere) -- residual pixel diff is prediction-side (warp).
wip(av1): consume compound_type/wedge_idx/wedge_sign/mask_type on masked compound (comp_group_idx==1); blend still refusedAhmet Kaan Gümüş · 09ba66a
wip(av1): consume compound_type/wedge_idx/wedge_sign/mask_type on masked compound (comp_group_idx==1); blend still refused lane-maskcomp r1. Syntax entropy-exact per libaom decodemv.c 1634-1656: compound_type (COMPOUND_WEDGE/COMPOUND_DIFFWTD), then wedge_index+wedge_sign or mask_type. New CDF tables (COMPOUND_TYPE, WEDGE_IDX) wired through the 4-site checklist (cdf.rs default, cdf_state.rs field/init/reset_counts). Prediction (wedge/diffwtd mask blend) is NOT ported -- both refusal sites still return Err, now after consuming the symbols and naming the blend as the gap. New gate a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact + MASKED_COMPOUND_HITS proves the syntax fires without desyncing surrounding blocks (pixel-exact matches every non-masked-compound attempt). All 11 existing pins + full ec-av1 --lib suite unaffected.