Commits
Commits on
5a2f5efe3a0771ac7ca43d57bdf63c19a7b75ff6Filtered to crates/ec-av1/src/stream.rsClear filter2026-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
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)
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.
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(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.
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-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
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 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
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).
Merge lane-rectsplit 4c3389a: per-attempt gate counters on the three rect-split gates, EC_NZOFF_DUMP/EC_SBPART_DUMP64 instruments, SB split-tx refusal kept (r2's nz_map transposition disproved by the merged SB HORZ/VERT gate); decode_probe dump kept main's versionAhmet Kaan Gümüş · f9e482fBrowse files
Merge lane-inter8 12809b2: interior 16x16 SPLIT into 8x8 inter leaves; mi-granular inter neighbour bands; three leaf-context defects (fabricated compound refs, sibling override, comp ctx corner) + compound-arm tail; 8-bit 8x8-leaf gate green (verifier PASS, 269/0/23); conflict = keep mi index + main's segment_id readAhmet Kaan Gümüş · f822a4cBrowse files
Merge branch 'lane-hbdgates': 10-bit gates for filter/smooth/paeth intra, intra-edge-filter, rect+ab partitions; ten_bit_tool_gate driver; gate_coverage drops ignored gates (279/0/24 on branch); 10-bit LR gate un-ignored on the merged treeAhmet Kaan Gümüş · 8c9548c
Merge branch 'lane-hbdgates': 10-bit gates for filter/smooth/paeth intra, intra-edge-filter, rect+ab partitions; ten_bit_tool_gate driver; gate_coverage drops ignored gates (279/0/24 on branch); 10-bit LR gate un-ignored on the merged tree NEVER_EXERCISED_10BIT keeps the union of both removals: main's three (restoration, dist-wtd-comp, global-motion, closed by lane-hbdinter and lane-cwarp) and hbdgates' six (filter/smooth/paeth intra, intra-edge-filter, rect and ab partitions). gate_bodies()/is_ten_bit() take hbdgates' versions (ignored gates excluded, helper-built recipes recognised). a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact was #[ignore]d on the branch because hbdgates' base lacked main's 10-bit LR fix (SGR box-sum scaling, Wiener clamp). On the merged tree it passes 16/16 attempts pixel-exact, lr_hits=28, so the #[ignore] is removed.
fix(av1): revert r2's nz_map transposition -- it regressed the merged SB HORZ/VERT partition gate; SB split-tx refusal restoredAhmet Kaan Gümüş · 429edc6
fix(av1): revert r2's nz_map transposition -- it regressed the merged SB HORZ/VERT partition gate; SB split-tx refusal restored r3 ran the gates r2 never reached. r2's claimed root cause (base_ctx reading the rect av1_nz_map_ctx_offset tables [row][col] instead of [col][row]) turns the split-transform SB gate green at the cost of turning the MERGED gate a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact RED at seed 43. All four index/shape combinations measured; two fail both. The real unknown is the orientation of (row,col) out of the square 32x32-corner scan vs libaom's column-major coeff_idx, so the SB-level split-transform refusal is restored and gate (b) is #[ignore]d again with that reason. Kept from r2: per-attempt gate counters (no vacuous pass from a stream that later refuses), the SB-interior-TU counter gate (b) asserts, the chroma shape guard justification, gate (c)'s corrected recipe comment, the nz_map table packing pin, and the EC_NZOFF_DUMP / decode_probe dump instruments.
Merge branch 'lane-sqchroma': square-partition tx-size-search chroma gate 8/10-bit (premise of a square-path chroma defect measured false on 52 streams); hue=s=0 guard removed from the rect gates (275/0 on branch)Ahmet Kaan Gümüş · e6343c5Browse files
test(av1): gate the mi-exact mode neighbour for non-strip readers (two pinned rgbtestsrc arms, mode_mi_override_hits counter) + lane-rectx r5 reportAhmet Kaan Gümüş · 8a60151Browse files
feat(av1): superblock-level HORZ/VERT strips with a split transform -- root cause was a transposed nz_map ctx offset tableAhmet Kaan Gümüş · c936fdc
feat(av1): superblock-level HORZ/VERT strips with a split transform -- root cause was a transposed nz_map ctx offset table r2's WIP (bf53652) built the SB-level per-transform-unit path and found the real cause of r1's RED gate: av1_nz_map_ctx_offset is packed COLUMN-major, so base_ctx read the TX_32X64/TX_64X32 offset tables [row][col] and desynced the first SB-level strip with a coefficient below row 1. r3 ran the gates it never reached: gate (b) 20/20 pixel-exact, SB-interior-TU delta 7; gates (a)/(c) green; refusal_inventory + gate_coverage green. Relabelled gate (b)'s summary line, which named the shared counter while asserting the SB-interior one.
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabledAhmet Kaan Gümüş · 576f72d
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabled His two films are yuv420p10le, so a tool gated only at 8 bits is ungated where it matters (lane-covbd r1). Six of the seven holes close with real-aomenc 10-bit streams, pixel-exact vs ffmpeg on every shown frame: - a_real_aomenc_10bit_intra_tools_stream_decodes_pixel_exact -- filter-intra, smooth-intra, paeth-intra, intra-edge-filter on one key frame, a separate hard-asserted counter each (6/6 attempts exact; filter_intra_hits=2 smooth_pred_hits=16 paeth_pred_hits=3 intra_edge_filter_hits=22). - a_real_aomenc_10bit_rect_and_ab_partitions_decode_pixel_exact -- the 8-bit free-partition/AB inter recipe at 10 bits (12/16 attempts exact, 4 named refusals; rect_partition_hits=32 partab_hits=4). - a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact -- WRITTEN AND FAILING, so #[ignore]d with the pin in the attribute: seed 42, frame 0, plane Y index 122, ours 351 vs ffmpeg 350, on a stream where lr_hits=2. That is a real 10-bit loop-restoration defect for a follow-on lane; the gate is not weakened and enable-restoration stays a listed 10-bit hole. intra.rs gains per-tool counters (smooth_pred_hits / paeth_pred_hits / intra_edge_filter_hits) because smooth_uv_hits lumps SMOOTH..=PAETH together and would have let a paeth-only stream "prove" smooth intra. ten_bit_tool_gate() samples every counter PER ATTEMPT and sums only over attempts that decoded AND compared, so a refused stream can never contribute a firing; a pixel mismatch panics with plane + first-diff index + both values + the firing deltas, never SKIPs. gate_coverage: gate_bodies() now drops #[ignore]d gates (an ignored gate exercises nothing) and recognises gates whose --passes=1 lives in the shared 10-bit helper; 45 -> 49 gates, 4 -> 7 ten-bit, NEVER_EXERCISED_10BIT 19 -> 13.
docs(inter8): r2 report -- mi-granular inter bands, 3 leaf-context defects, 8-bit gate greenAhmet Kaan Gümüş · 581d074Browse files
test(av1): gate the square intra path with tx-size search ON and real chroma; the chartered square-path chroma defect does not reproduceAhmet Kaan Gümüş · 213865e
test(av1): gate the square intra path with tx-size search ON and real chroma; the chartered square-path chroma defect does not reproduce lane-rectsplit r1 recorded, in a comment on two live gates, that a plain SQUARE-partition intra key frame with real chroma and aomenc's tx-size search left at its default (ON) mismatches on the U plane, and guarded both gates with `-vf hue=s=0`. Re-measured at HEAD, that is false: seeds 42..61 at cq 45 and at cq 20, plus testsrc2/mandelbrot/smptebars/rgbtestsrc at cq 12/32, with and without CFL and filter intra, all decode pixel-exact against ffmpeg on all three planes (`--enable-rect-partitions=0`, the charter's own recipe). Seed 42 does fire the pairing the defect was attributed to -- 6 blocks with `tx_depth != 0` and uv_modes 0/1/2/5/11 -- and still matches. So this ships the gate that was missing rather than a fix: `a_real_aomenc_intra_stream_with_tx_size_search_and_chroma_decodes_pixel_exact` sweeps 10 8-bit square streams (cq 20/40) plus one 10-bit stream of the same recipe (his films are yuv420p10le; sequence-header bit_depth asserted before any pixel compare), and hard-asserts a new `sq_chroma_tx_hits()` counter -- square blocks whose luma transform split under a non-DC `uv_mode` -- summed only over attempts that decoded AND pixel-compared, so a refusing stream cannot lend it firings. 11/11 exact, 23 firing blocks 8-bit + 2 10-bit, 0 refusals. The stale `hue=s=0` guard is dropped from both live rect gates (and the ignored SB-strip one); both stay green with real chroma, so they now cover chroma too.
Merge branch 'lane-hidden': EC_AV1_FINAL_DUMP oracle rung 12 (every decoded frame incl. hidden alt-refs, bit-depth-correct) + decode_all_frames_vs_oracle helper + first hidden-frame gate 8/10-bit (273/0 on branch)Ahmet Kaan Gümüş · bde15d8Browse files
Merge branch 'lane-bd12': bit_depth 12 refused by name in decode_stream (warp/MC/wiener shifts change at 12-bit; no 12-bit gate), reachability testAhmet Kaan Gümüş · 3281246Browse files
Merge branch 'lane-hbdinter': 10-bit loop restoration (SGR box sums scaled by bd-8, wiener clamp at the bd bound), combine_compound two-step rounding; 10-bit inter+LR gate (verifier PASS, 271/0/23); restoration leaves NEVER_EXERCISED_10BITAhmet Kaan Gümüş · b933555
Merge branch 'lane-hbdinter': 10-bit loop restoration (SGR box sums scaled by bd-8, wiener clamp at the bd bound), combine_compound two-step rounding; 10-bit inter+LR gate (verifier PASS, 271/0/23); restoration leaves NEVER_EXERCISED_10BIT Also drops enable-dist-wtd-comp and enable-global-motion from NEVER_EXERCISED_10BIT: lane-cwarp's 10-bit compound global-warp gate passes =1 for both, so never_exercised_10bit_matches_the_gate_recipes was already failing at 9c35ecc. gate_coverage is green again after this commit. Conflict resolutions: warp.rs took main's (cwarp warp_inner/warp_affine_compound is a superset of hbdinter's const BD -> bit_depth()); mc.rs kept hbdinter's single (bd-8) diffwtd_mask round plus its combine_compound two-step and inter_pred_hits counter; stream.rs kept main's encode_10bit_gradients helper and cwarp gates plus hbdinter's a_real_aomenc_10bit_inter_sequence gate.
merge lane-inter8 ae69b25 into lane-gmaffineAhmet Kaan Gümüş · cadfff7
merge lane-inter8 ae69b25 into lane-gmaffine Conflict resolution (both sides kept, duplicates unified): - obmc chroma-above skip: lane-inter8's explicit BLOCK_4X4/4X8/8X4 match list (correct for 8x32/32x8, where lane-gmaffine's `w>=16 && h>=16` would have skipped chroma libaom blends). - OBMC neighbour filter: read from lane-inter8's now mi-granular `Neighbours::above_filter/left_filter`; lane-gmaffine's duplicate `MiGrid::filters` per-mi record (plus `grid_or_slot`) deleted as the same field recorded twice. - `decode_inter_block8`: one `global_motion` param (lane-gmaffine's) plus lane-inter8's `sign_bias_table`/`tpl_frame`; single `gm_table` build at the top; returns `(.., leaf_filter_syms, leaf_refs)`. - the leaf's temporal-mv `cur_offset_0` keys on the leaf's OWN reference (lane-inter8 hardcoded LAST because it refused every other ref). - per-leaf `record_inter_rect_mi` stamp keeps lane-gmaffine's REAL filter symbols instead of the `[3, 3]` intra sentinel; the coarse whole-16x16 `record_inter` and its last_filter/last_ref bookkeeping are gone. - the interior 16x16 SPLIT branch is lane-inter8's restructure (part16 read once, one shared leaf loop); refusal strings follow it.
fix(av1): refuse bit_depth 12 in decode_stream -- twelve_bit parsed fine but warp REDUCE_BITS_HORIZ is a hard 3 (libaom needs 5 at bd 12), MC round_0/round_1 and wiener rounding change, CDEF/film grain ungated: a 12-bit stream decoded silently wrong; refusal + inventory entry + reachability testAhmet Kaan Gümüş · efb4f45
fix(av1): refuse bit_depth 12 in decode_stream -- twelve_bit parsed fine but warp REDUCE_BITS_HORIZ is a hard 3 (libaom needs 5 at bd 12), MC round_0/round_1 and wiener rounding change, CDEF/film grain ungated: a 12-bit stream decoded silently wrong; refusal + inventory entry + reachability test
fix(av1): a warp-capable frame under a scaled reference read the 3-symbol motion_mode_cdf where libaom reads the 2-symbol obmc_cdfAhmet Kaan Gümüş · cd8ea46
fix(av1): a warp-capable frame under a scaled reference read the 3-symbol motion_mode_cdf where libaom reads the 2-symbol obmc_cdf libaom motion_mode_allowed (blockd.h:1484) drops WARPED_CAUSAL eligibility when av1_is_scaled(block_ref_scale_factors[0]), so a superres block reads obmc_cdf. We read motion_mode_cdf: the decoded value stayed SIMPLE_TRANSLATION, so nothing errored -- the stream decoded "OK: 24 frames" with quietly wrong pixels from the diverged coder state (frame 1: 1342 luma pixels off, growing to |d|=18 by frame 23). The existing warp refusal could not see it (warp_params is None there). Gate: the superres gate now runs --enable-warped-motion=1 by DEFAULT and hard-asserts scaled_warp_suppressed_hits() > 0 -- 12/12 pixel-exact, 25 blocks took the obmc_cdf arm only because of this fix. decode_probe gains EC_PROBE_OUT (raw yuv420p dump), the instrument that located it. Sibling site in decode_inter_block8 is unreachable (refused earlier) and carries a note.
Merge branch 'lane-cwarp': compound blocks warp per reference under a non-translational global model (warp_affine_compound into the compound intermediate); diffwtd_mask (bd-8) round; warp bd generic; gate 6/6 mutation-proven (verifier PASS, 271/0/23)Ahmet Kaan Gümüş · 1a194e3Browse 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.fix(av1): mi-granular inter neighbour bands + three 8x8-leaf context defects (8-bit 8x8-split gate GREEN)Ahmet Kaan Gümüş · cbf9f54
fix(av1): mi-granular inter neighbour bands + three 8x8-leaf context defects (8-bit 8x8-split gate GREEN) lane-inter8 r2. `Neighbours`' inter side bands (skip, skip_mode, is_inter, ref0/ref1, comp_group_idx, compound_idx, interp filter) were SUB(16px)-granular, so all four 8x8 leaves of a split 16x16 shared one slot. They are now mi(4px) granular (`record_inter_rect_mi` / `record_compound_ctx_rect_mi`, readers index by mi), which makes the r1 `prev_leaves` sibling-override hack unnecessary -- each leaf stamps its own 2x2-mi span right after it decodes. Two further defects that the granularity change exposed, both class context-read-from-one-cell: 1. `decode_inter_block8`'s COMPOUND arm `return`ed before the end-of-function `record_mi`/`fill_lf_grid` the single-ref arm falls through to. Every leaf in the gate's stream is compound, so a split 16x16 left `above_side_mi` at 16: the 16x16 below it computed partition ctx 0 instead of 1 and read PARTITION_NONE where aomdec read PARTITION_SPLIT. 2. `get_comp_group_idx_context`/`get_comp_index_context` took the leaf's ENCLOSING 16x16 corner (`outer_at`); they now take mi coordinates and the leaf passes its own. Also threaded the frame's temporal mv field (`tpl_frame`) into the leaf's two mv stacks, which passed `None` while `decode_inter_block` one level up always passed it (class parsed-then-discarded). Alignment only: it did not move this stream's ladder (no `use_ref_frame_mvs` here). Gate a_real_aomenc_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact is GREEN and un-ignored (4 frames pixel-exact vs ffmpeg, interior-split counter asserted). aomdec EC_MODE ladder 42/57 -> 57/57. The 10-bit twin stays ignored: it dies on "an INTER 32x32 partition type ... (value=9)", and `EC_TRACE=1 aomdec` proves that stream contains no value=9 anywhere -- our own desync (class refusal-from-own-desync), disproving the r1 ledger line that blamed aomenc for emitting PARTITION_VERT_4.
feat(av1): hidden-frame pixel oracle -- EC_AV1_FINAL_DUMP on both sides + the repo's first alt-ref gateAhmet Kaan Gümüş · 3f461cf
feat(av1): hidden-frame pixel oracle -- EC_AV1_FINAL_DUMP on both sides + the repo's first alt-ref gate Every pixel gate here compared decode_stream's output against ffmpeg/aomdec y4m, and both emit SHOWN frames only, so a hidden (show_frame=0) alt-ref frame -- which his films are full of, aomenc's default --lag-in-frames -- was decoded, stored into a reference slot and never compared to anything (class gate-blind-to-hidden-frames). - scripts/instrument-aom-oracle.sh rung 12: EC_AV1_FINAL_DUMP=<prefix> in the instrumented aomdec -> <prefix>.f<N> per DECODED frame (decode order, hidden included), after CDEF+superres+loop restoration, i.e. the frame as stored into the reference buffer; Y/U/V crop-sized rows, 8-bit u8 / high bitdepth u16 LE (bit-depth correct, unlike the u16->u8 narrowing debug dumps). - ec-av1 stream.rs: matching EC_AV1_FINAL_DUMP at the ref-slot store site, same layout; prefix from a thread-local (set_final_dump_prefix) falling back to the env var so a gate cannot race a sibling test's decode. - test helper decode_all_frames_vs_oracle() + gate a_real_aomenc_altref_sequence_hidden_frames_decode_pixel_exact: aomenc --auto-alt-ref=1 --lag-in-frames=25 --arnr-maxframes=0 on moving content, 8-bit and 10-bit, hard assert hidden >= 2, byte-exact per decode-order frame. Result: 43 frames / 3 hidden each depth, all pixel-exact. --arnr-maxframes=0 is load-bearing and measured: with libaom's temporal alt-ref filter on, the same recipe emits 0 hidden frames (vacuous gate).
wip(rectsplit): r2 capped at 75 turns before running gates -- SB-level split-tx per-TU path + gate rewrite (per-attempt counters), preserved by orchestratorAhmet Kaan Gümüş · ec3268eBrowse files
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.