Commits
Commits on
5a2f5efe3a0771ac7ca43d57bdf63c19a7b75ff62026-09-02
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).Merge branch 'lane-fistrip': 8x16/16x8 strips read use_filter_intra (rows were missing, tile desynced silently); sub-16 filter-intra pixel gates re-measured on the merged treeAhmet Kaan Gümüş · e3ed88c
Merge branch 'lane-fistrip': 8x16/16x8 strips read use_filter_intra (rows were missing, tile desynced silently); sub-16 filter-intra pixel gates re-measured on the merged tree Conflicts: cdf.rs + cdf_state.rs + decode.rs took main's side -- lane-rectx r3 landed the same two FILTER_INTRA rows first, with the OPPOSITE index convention ([6]=16x8, [7]=8x16), and main's is the one its gates pin. refusal_inventory.rs: the lane deleted "filter intra on a HORZ/VERT strip (this decoder predicts square-only)", but lane-tx4x8's sub-8 leaf path still raises it, so the entry is restored with a note. Re-measured, not assumed: with the coded-strip refusal gone the two sub16 filter-intra gates still cannot compare a pixel. 41 attempts (8-bit) give 35 pixel-exact decodes and ZERO mismatches; both seeds that fire filter intra on an 8x16/16x8 strip (49, 213) now stop at the sub16 split-transform refusal or the HORZ_A/B one, and the 10-bit twin the same way. They stay #[ignore]d with the measured reason, and the pinned 16x8 fixture test now expects that next ceiling on the same block.
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.
Merge branch 'lane-sub8merge': sub-8x8 partitions (4x4 leaves, mi-granular y/uv mode maps with tile guards; ReelB head blocker) + Reach row-shadowing fix from the mergeAhmet Kaan Gümüş · 9c1c99fBrowse files
Merge lane-tx64x16 88100e5: superblock-level HORZ_4/VERT_4 (four 64x16/16x64 strips; ReelC blocker) with TX_64X16/16X64 luma and 32x8/8x32 chroma coefficient pathsAhmet Kaan Gümüş · b38f3aaBrowse files
test(av1): pin every filter-intra CDF row from the oracle, prove predict_filter_intra bit-exact, record both firing seedsAhmet Kaan Gümüş · f28a52c
test(av1): pin every filter-intra CDF row from the oracle, prove predict_filter_intra bit-exact, record both firing seeds
lane-fistrip r2, the verifier's four fix-now items on 57f1fcb (no decode-path
behaviour changes -- tests, a generator script, and a gate seed window):
1. scripts/extract-filter-intra-cdfs.py generates default_filter_intra_cdfs from
the oracle (enums.h BLOCK_SIZES_ALL order + entropymode.c), and the domain test
now lists all 14 allowed shapes with their TRUE row -- r1 had guessed 16384 for
4x16/16x4/8x32/32x8, which are really 12770/10368/20229/18101 -- each refused
shape carrying the refusal string that blocks it, so the round that lifts one
cannot land a wrong CDF row. Also asserts row shape {p,32768,0}, class
uniqueness, and that every cdf::FILTER_INTRA row is claimed.
2. predict_filter_intra had no unit test at all: intra.rs now transcribes
av1_filter_intra_taps and av1_filter_intra_predictor_c/highbd_ (reconintra.c
807-955) independently in the test module and compares bit-exact over 5 modes
x 14 shapes x 3 seeded edge sets x {8,10}-bit = 420 blocks.
3. The second firing seed of the 200-seed measurement is 213 (seeds 50..=241
re-run: 172 matches, 20 refusals, one sub16 delta); the 8-bit gate's seed
window now always carries FIRING_SEEDS [49, 213], both named in its doc and
#[ignore] string, so the un-ignore compares two real hits. 10-bit arm widened
with 213, marked as unmeasured for its own recipe.
4. lanes/fistrip-r2.report.md carries the MERGE NOTE: the pinned
a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag expect_err must
become a pixel compare in the round that lifts the coded-rect-strip refusal.
Suite: 301 passed, 1 failed (pre-existing nz_map_ctx_offset_tables_match_the_rect_rule,
red on main df5d630), 29 ignored.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
docs(tx64x16): r5 suite totals -- 298 passed, 0 failed, 26 ignored (216s)Ahmet Kaan Gümüş · 6dea36aBrowse files
docs(tx64x16): r5 report -- seed 47 is a genuine 16x16 VERT_A, not a desyncAhmet Kaan Gümüş · 0816967
docs(tx64x16): r5 report -- seed 47 is a genuine 16x16 VERT_A, not a desync Range ladder ours vs instrumented aomdec: equal range (56592) entering the 16x16 partition symbol, both read value 6 (PARTITION_VERT_A). Main df5d630 refuses the identical stream. --enable-ab-partitions=0 is inert on this recipe (=0 and =1 byte-identical, md5 ef8c8be0664b). Gate 7/8 and 5/8 pixel-exact, every non-exact attempt a named refusal; siblings green.
test(av1): the 1:4 gates fail an out-of-scope pixel mismatch; restore decode_stream's docsAhmet Kaan Gümüş · a57d66d
test(av1): the 1:4 gates fail an out-of-scope pixel mismatch; restore decode_stream's docs Class gate-skips-on-its-own-failure: both 1:4 stream gates counted and printed attempts that decoded but mismatched ffmpeg while carrying none of the gate's own blocks. A wrong decode is a failure whatever shape caused it -- now assert_eq!(out_of_scope_mismatch, 0) in each, counters kept so the message still names the other shape. rect4_32_counters had been spliced INTO decode_stream's doc comment (between the # Errors section and the fn), eating half of it; moved above the doc block. It stays pub: examples/decode_probe.rs calls it from outside the crate. Seed 47 of the 32-level gate is NOT a desync: our msac range entering the 16x16 partition symbol equals aomdec's (56592) and both read value 6 (PARTITION_VERT_A) -- a shape this decoder does not code, and main df5d630 refuses the same stream identically. --enable-ab-partitions=0 is inert here: encoding with =0 and =1 gives byte-identical output (md5 ef8c8be0664b).
Merge branch 'lane-gmaffine': AFFINE global motion, 8x8 GLOBALMV/WARPED_CAUSAL leaves, chroma warp >=8 only, eob_pt class-1 rows for every TxbSet arm (44 consts byte-checked vs libaom); 4 real-aomenc gates at 8/10-bitAhmet Kaan Gümüş · e31db3bBrowse files
fix(av1): 8x16/16x8 strips never read their use_filter_intra flag -- av1_filter_intra_allowed_bsize allows both, filter_intra_size_class_rect had no CDF row, so the symbol was silently skipped and the tile desynced on that block; adds default_filter_intra_cdfs rows 4/5 (12551/9394), a domain test over every allowed shape, a pinned real-aomenc fixture proving the read, and the pixel gate (8- and 10-bit) ignored with its measurement (2/200 seeds fire, both on skip=0 strips the coded-rect-strip-below-16x16 refusal still blocks)Ahmet Kaan Gümüş · b2b0caf
fix(av1): 8x16/16x8 strips never read their use_filter_intra flag -- av1_filter_intra_allowed_bsize allows both, filter_intra_size_class_rect had no CDF row, so the symbol was silently skipped and the tile desynced on that block; adds default_filter_intra_cdfs rows 4/5 (12551/9394), a domain test over every allowed shape, a pinned real-aomenc fixture proving the read, and the pixel gate (8- and 10-bit) ignored with its measurement (2/200 seeds fire, both on skip=0 strips the coded-rect-strip-below-16x16 refusal still blocks)
docs(tx64x16): r4 suite totals -- 298 passed, 0 failed, 26 ignored (770s)Ahmet Kaan Gümüş · e4a75c6Browse files
fix(av1): every rect block shape gets its own has_tr/has_bl row -- a `_` arm sent 16x8 strips to libaom's has_tr_32x16Ahmet Kaan Gümüş · 2159b11
fix(av1): every rect block shape gets its own has_tr/has_bl row -- a `_` arm sent 16x8 strips to libaom's has_tr_32x16 `rect_reach_tables` held 4x8/8x4/16x32 and routed everything else, live 16x8 strips included, to the 32x16 row: wrong at 10 of the 21 reachable superblock positions for above-right and 7 for below-left (the pre-lane `HAS_TOP_RIGHT_RECT[bw == 16]` selection was wrong at 14 and 14). All 14 rect shapes this decoder codes or will code now carry their own table, generated from the oracle's reconintra.c, and the match is exhaustive with an `unreachable!` naming the shape; the rect index no longer wraps modulo the table length, which was masking the mis-routing. Domain test `every_rect_shape_reaches_what_libaom_says_over_the_whole_superblock` compares Reach::of_rect against a port of has_top_right/has_bottom_left for every shape at every position in two superblocks, plus a per-shape (len, byte sum) fingerprint from the oracle's arrays; restoring the old routing for 16x8 fails it. The asymmetric directional-strip STREAM gate is written but `#[ignore]`d: 38/40 attempts die on the live "coded (non-skip) HORZ/VERT rect strip below 16x16" refusal (details + the measured recipe table in lanes/tx4x8-r3.report.md). Suite: 275 passed, 0 failed, 23 ignored.
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(tx64x16): r3 report -- what landed, the RED/ignored gate with its three measured fixture recipes, film probe evidence, open residueAhmet Kaan Gümüş · 56a2facBrowse files
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
docs(tx4x8): round 2 report -- tx_depth symbol root cause, gate green, suite 274/0/22Ahmet Kaan Gümüş · 43c2434Browse files
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): 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.
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
Merge branch 'lane-gatesweep': 13 real-aomenc gates pixel-compare every successful decode (counter only decides counting); gate_buckets summary; 43 previously uncompared decodes all exact; merged with lane-hidden's decode-order comparesAhmet Kaan Gümüş · 01c42f6Browse files
wip(lane-sub8merge): agents killed by session limit 2026-09-02 -- uncommitted state preserved by orchestratorAhmet Kaan Gümüş · ff5e206Browse files
docs(tx64x16): r2 report -- stale-base finding, the 2 real failures + fixes, ReelC's new stop, 32-level handoffAhmet Kaan Gümüş · b583cf2Browse files
Merge branch 'lane-narrow4': prediction blocks <=4 on an axis use the regular 4-tap kernel under EIGHTTAP_SHARP too (spec 7.11.3.4 filterIdx; libaom av1_interp_4tap[MULTITAP_SHARP]==sub_pel_filters_4); was the 4x4 chroma residue of 8x8 inter leaves (lane-gmaffine r5)Ahmet Kaan Gümüş · 97075e6Browse files
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.
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
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).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.
Merge branch 'lane-covbd2': gate_coverage derives default-on tools pinned off (tx-size-search, deblocking, diff-wtd, onesided, fwd-kf, directional-intra, interintra-wedge, multi-tile) per bit depth + superres-mode alias; 9 coverage testsAhmet Kaan Gümüş · e148046Browse files
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.
Merge branch 'lane-hidden' (68e6619): every alt-ref gate compares decode-order frames incl. hidden via decode_all_frames_vs_oracle; hidden_arnr_arm (--arnr-maxframes=0) second arms; oracle rung 13 (EC_MODE_MV/stack=) scripted; no hidden-frame defect found (273/0 on branch)Ahmet Kaan Gümüş · 2b7f47fBrowse files
docs(tx64x16): r1 report -- suite totals, ruled-out list, open residueAhmet Kaan Gümüş · afee91cBrowse files
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.
Merge lane-inter8 r3 (89945ba): EC_MODE_VAL leaf instrument, inter_sb_none_gate params, ignored tile-column arm; 10-bit twin pinned to the leaf interp-filter read (lane-gmaffine)Ahmet Kaan Gümüş · 628d9cbBrowse files
Merge branch 'lane-scaledref': compound/OBMC/interintra under scaled references; WARPED_CAUSAL alphabet dropped when the ref is scaled (was silent wrong pixels); one-sided chroma OBMC for 8x8 luma; EC_PROBE_OUT (verifier PASS, 268/0/23)Ahmet Kaan Gümüş · ea8bda8Browse files
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
docs(rectx): r5 report -- mi-exact mode neighbour for every kf_y_mode reader, 32-mi reach stride, chroma-only residue localisedAhmet Kaan Gümüş · eb6a140Browse files
docs(sub8): round 6 report -- per-tile mi maps, 3-arm gate, suite 269/0/22Ahmet Kaan Gümüş · 47ca477Browse files
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.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): the mi-granular mode maps are per TILE -- tile-relative guards + per-tile/row resetAhmet Kaan Gümüş · 91b5f76
fix(av1): the mi-granular mode maps are per TILE -- tile-relative guards + per-tile/row reset sub8_mode_col/row and uv_mode_col/row were read with a frame-relative availability guard (mi_r > 0 / mi_c > 0) and never cleared, so the first block of a second tile column/row read the previous tile's recorded (row, mode) entry as its own neighbour: wrong intra-mode context and wrong chroma edge-filter type. Verifier repro (128x64, --tile-columns=1, seeds 207/228) mismatched 221 and 158 bytes, every one at x>=64; both streams now decode pixel-exact. decode_leaf_rect also records its own span in those maps (the caller patched only the coarse 16x16 slot, so a neighbour of the top strip read the bottom strip's mode). Gate: three arms (single tile, --tile-columns=1, --tile-rows=1), tile_hits delta >= 2 asserted on the tile arms, the Err arm now panics on any decode error that is not a named "unsupported: " refusal, and the lavfi noise fixture carries all_seed so (seed, cq) names one exact stream. Reverting the guard+reset hunks makes that gate FAIL (U plane, seed=139 cq=12).