Commits
Commits on
d22dd39bd7b1c2f91bfddf9dfcd71c25b2237c1e2026-09-02
test(av1): 10-bit 1:4 coverage + out-of-scope handling for the chroma-rect gateAhmet Kaan Gümüş · d22dd39
test(av1): 10-bit 1:4 coverage + out-of-scope handling for the chroma-rect gate - assert a superblock 1:4 strip inside a pixel-exact 10-BIT stream, which retires `enable-1to4-partitions` from gate_coverage::NEVER_EXERCISED_10BIT (no 10-bit gate carried the tool before). - attempts whose stream carries no 1:4 strip are out of this gate's territory: counted and printed, never selected on correctness (the sibling superblock-1:4 gate's rule). 8-bit and 10-bit cq 32 seed 46 mismatch there with zero 1:4 blocks -- another shape's pre-existing defect, named in the report. Full 20-attempt sweep (120 streams): 60 pixel-exact, 37 named refusals, 527 superblock 1:4 strips compared, chroma shape 32x8 fired once inside a pixel-exact stream, 37 depth-1 refusals.
fix(av1): a 1:4 HORZ_4/VERT_4 strip's first transform split is a 2:1 RECT unit, not a squareAhmet Kaan Gümüş · 71f7ca2
fix(av1): a 1:4 HORZ_4/VERT_4 strip's first transform split is a 2:1 RECT unit, not a square sub_tx_size_map[TX_64X16] is TX_32X16, so `bw.min(bh) >> (depth - 1)` (correct for a 2:1 strip) named 16x16 square units for a depth-1 64x16/16x64 superblock strip and decoded it with the wrong tiling -- silently, wrong pixels, no refusal (measured: 8-bit cq 45 seed 42 of the new gate's fixture mismatched ffmpeg on frame 0 luma with 2 such strips). depth >= 2 now shifts one step later; depth == 1 on a coded 1:4 strip is refused by name. Also wires the split path's missing chroma shapes (32x8/8x32 -> TxbSet::Chroma16 + SCAN_32X8/8X32, 8x4/4x8 -> ChromaRect8x4 + SCAN_8X4/4X8, all reused from the unsplit paths that already prove them) and per-shape hit counters. Those arms are not yet reachable -- every stream that would use them arrives with depth 1 -- so the gate reports their counters instead of asserting on them. Gate: a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact (8+10 bit, cq 45/32/60, transposed odd seeds, tx-size-search ON): 15 pixel-exact matches, 100 superblock 1:4 strips in compared streams, 9 depth-1 refusals.
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
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): 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
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
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).
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
fix(av1): rect has_tr/has_bl row stride is 32 mi (MAX_MIB_SIZE_LOG2=5), not 16 -- r4's '4 - bw_log2' halved it and every table row but the first read the wrong byte; pinned by a bijection test over a whole superblock walkAhmet Kaan Gümüş · b4af125
fix(av1): rect has_tr/has_bl row stride is 32 mi (MAX_MIB_SIZE_LOG2=5), not 16 -- r4's '4 - bw_log2' halved it and every table row but the first read the wrong byte; pinned by a bijection test over a whole superblock walk
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.
feat(av1): localize the 10-bit 8x8-leaf desync to the leaf's post-mv mode info; tile-band auditAhmet Kaan Gümüş · aba325a
feat(av1): localize the 10-bit 8x8-leaf desync to the leaf's post-mv mode info; tile-band audit lane-inter8 r3. Instrumentation: `EC_MODE_VAL` in `decode_inter_block8`'s compound arm, byte-format-identical to the oracle's rung-4 line, plus (in the oracle tree, not in scripts/) `EC_MODE_MV` right after libaom's `assign_mv` and `stack=` on its `EC_MODE_VAL`. With those, the 10-bit twin's first divergent element is pinned: on the compound 8x8 leaf mi=(4,14) the entry range (37004) and the post-mv range (57308) are IDENTICAL to aomdec, as are mode=20, ref0=1, ref1=4, mv0=(0,-9) and mv-stack size 2. The divergence is strictly in the leaf's post-mv mode info, where the only symbol aomdec reads for a compound 8x8 leaf is read_mb_interp_filter -- which decode_inter_block8 never reads (it hardcodes Regular, decode.rs:11181). Class symbol-consumption-gap. lane-gmaffine r3 owns that read (0b8cb54); a cherry-pick onto this branch conflicts, so it is left to merge from there rather than duplicated. 8-bit ladder re-measured: 57/57. 10-bit: 41/57. Tile audit (lane-sub8 verifier's class warning): every reader of the mi-granular inter bands guards tile-relative (zero `mi_r > 0`/`mi_c > 0` hits in decode.rs; the leaf uses tile_row0_mi/tile_col0_mi), start_tile resets the above mi bands over the tile's own mi column span, start_row resets every left mi band. The `--tile-columns=1` gate arm added to prove it at runtime is RED for an unrelated reason (128x64 makes aomenc code an SB-level rect partition on the key frame: lane-sbpart's arm) and is ignored with that reason spelled out.
docs(gmaffine): r3 report -- lane-inter8 merged, SUB-vs-mi context index fixed, next divergent leaf namedAhmet Kaan Gümüş · 154097bBrowse files
fix(av1): 8x8 leaf read its single_ref and interp-filter neighbour contexts at SUB(16px) indices after the bands went mi-granularAhmet Kaan Gümüş · 7250c10
fix(av1): 8x8 leaf read its single_ref and interp-filter neighbour contexts at SUB(16px) indices after the bands went mi-granular lane-gmaffine r3, on top of the lane-inter8 merge. `decode_inter_block8` still indexed `neighbours.above_ref/above_ref1/above_filter` with `c` and `left_*` with `r` -- `outer_at`, the enclosing 16x16's SUB(16px) coordinates -- while every other read in the same function had moved to `cmi`/`rmi` (mi, 4px) with lane-inter8 r2's mi-granular bands. Wrong units, so a leaf's `read_single_ref` p1..p6 contexts and its `switchable_interp` neighbour rows came from an unrelated 16px column/row. Measured on the gate's own recipe (--min/--max-partition-size=8, gm and warp both off, 8-bit cq32): aomdec's EC_MODE_VAL ladder and ours agree on mode, mv, ref and range for the 16 leaves of the first 32x32 up to (6,4); leaf (6,6) had identical mode/mv/stack but post-mode-info range 41953 vs aomdec's 38345 -- the divergence sat after the mv, in the filter/ref tail. With mi indices that leaf and the next 15 now match to the range. Instrument kept: `EC_MODE_VAL8` under EC_TRACE_MODE, one line per 8x8 leaf (newmv/globalmv/ref0/mv/stack/rng), diffable against aomdec's EC_MODE_VAL. Both 8x8 motion gates are still RED: the next divergence is leaf mi=(0,14) of the same frame, where aomdec reads NEWMV (mv 0,-12) and we read not-new from a 3-entry stack.
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
docs(sqchroma): r1 report -- premise disproved, gate added, suite 275/0/23Ahmet Kaan Gümüş · 53e8047Browse files
Merge lane-part32 r6: intra 16-level PARTITION_VERT_B takes the vert has_tr/has_bl tables (last unguarded VERT_A/B site); table pin test; class closed at every level (270/0/24 on branch)Ahmet Kaan Gümüş · 9f28960Browse files
fix(av1): the 16x16-level PARTITION_VERT_B arm missed the vert availability tablesAhmet Kaan Gümüş · 1f9bde4
fix(av1): the 16x16-level PARTITION_VERT_B arm missed the vert availability tables decode.rs:7008 visits its two 8x8 squares TR then BR, out of raster order, so like the 32/64-level AB arms r5 fixed it must read libaom's has_tr_vert_8x8 / has_bl_vert_8x8 (get_has_tr_table / get_has_bl_table take the partition type). has_bl_8x8 is 0 where has_bl_vert_8x8 is 1 at all 16 even-row/odd-col 8x8 slots -- exactly the TR square -- so its below_left was wrongly false for the directional modes that read below-left (angle > 180: D203_PRED, D157_PRED with a positive delta). Class swept: this was the only remaining unguarded VERT_A/_B site at any level, intra or inter. Gated by a table pin (encode.rs) rather than a stream: a bounded 112-encode aomenc sweep produced no decodable 16-level VERT_B -- every stream that partitions that small first hits the still-refused HORZ_A/HORZ_B/VERT_A-below-16 or coded-rect-strip-below-16 arms. Counts in lanes/part32-r6.report.md. EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib: 270 passed, 0 failed.
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.