Commits
Commits on
00c1b3ff2d80d84fef71bb6208110dedbbd95fc42026-09-01
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.
test(av1): default-on tools spelled on in the gates that exercise them -- loopfilter-control=1 (2 8-bit + 1 10-bit deblock gate), enable-tx-size-search=1 (shared tx-select inter helper, both depths), enable-directional-intra=1 (directional chroma), enable-diff-wtd-comp=1 + new diffwtd_hits assert (masked compound), enable-onesided-comp=1 + new uni_comp_hits assert (interintra); gate_coverage counts a bit_depth-parameterised helper at both depths; NEVER_ON 6/7 -> 1/5Ahmet Kaan Gümüş · df86cfc
test(av1): default-on tools spelled on in the gates that exercise them -- loopfilter-control=1 (2 8-bit + 1 10-bit deblock gate), enable-tx-size-search=1 (shared tx-select inter helper, both depths), enable-directional-intra=1 (directional chroma), enable-diff-wtd-comp=1 + new diffwtd_hits assert (masked compound), enable-onesided-comp=1 + new uni_comp_hits assert (interintra); gate_coverage counts a bit_depth-parameterised helper at both depths; NEVER_ON 6/7 -> 1/5
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
fix(av1): no use_filter_intra symbol for a palette-Y block (av1_filter_intra_allowed), and the multi-tile palette gate goes liveAhmet Kaan Gümüş · 4395cbd
fix(av1): no use_filter_intra symbol for a palette-Y block (av1_filter_intra_allowed), and the multi-tile palette gate goes live libaom's av1_filter_intra_allowed also requires palette_size[0] == 0, so it writes no use_filter_intra symbol for a Y-palette block. This decoder read one anyway, desyncing every screen-content stream from its first palette block -- surfacing as a bogus "partition below 8x8"/"HORZ_A below 16x16" refusal further down the tile (refusal-names-a-correlate). Range ladder vs instrumented aomdec: both sides agree through angle_uv at mi(0,8) rng=38738, ours then reads use_filter_intra=1. a_real_aomenc_multi_tile_palette_stream_decodes_pixel_exact is un-ignored and green 6/6 with a per-attempt counter (palette_tile_left_hits) proving a palette block fired at a tile's own left column, plus per-arm override proofs (sequence header enable_cdef/enable_restoration; allow_screen_content_tools on the palette arm). r11's charter premise that aomenc keeps the FIRST occurrence of a repeated flag is MEASURED FALSE (last wins) -- extras stay after the base recipe.
feat(av1): TX_4X8/TX_8X4 leaves below 8x8 -- rect scan, 32-position eob_pt, TX_8X8 coeff tables with a TX_4X4 tx_type row (gate still RED)Ahmet Kaan Gümüş · d471e3e
feat(av1): TX_4X8/TX_8X4 leaves below 8x8 -- rect scan, 32-position eob_pt, TX_8X8 coeff tables with a TX_4X4 tx_type row (gate still RED)
Lifts the "a HORZ/VERT partition below 8x8 (square-only transform)" refusal and
the two rect tx_type/tx-class capability claims: decode_leaf_rect8 codes the two
BLOCK_4X8/BLOCK_8X4 sub-blocks of an 8x8 (mode reads, chroma once at the group's
4x4 unit, dequant_and_inverse_typed_wh, Reach::of_rect off libaom's has_tr_4x8/
has_bl_8x4 rows, fill_lf_grid_rect, partition_context_lookup{31,30}/{30,31}), and
read_coeffs_rect now reads a real tx_type symbol including V_DCT/H_DCT (rect
mrow/mcol scans + 1D-class contexts + eob_pt_class1).
Table derivations: get_txsize_entropy_ctx(TX_4X8) = TX_8X8 (coefficient tables),
txsize_sqr_map[TX_4X8] = TX_4X4 (tx_type CDF row), txsize_log2_minus4 = 1
(32-position eob_pt, new from av1_default_eob_multi32_cdfs, both class rows).
Scan conversion (p%h)*w + p/h re-proved by regenerating SCAN_16X8/SCAN_8X16 first.
Gate a_real_aomenc_stream_with_a_sub8_rect_leaf_decodes_pixel_exact (16x16 8-bit,
128x16 --tile-columns=1, 16x16 10-bit; both orientations hard-asserted per attempt)
is RED: seed 303 mismatches luma from sample 0 with no decode error. See
lanes/tx4x8-r1.report.md for the ranked suspect list and the recipe findings
(--max-partition-size=8 does not stop 16x16-level rect strips).fix(av1): a split-transform rect strip must still stamp its palette neighbour stateAhmet Kaan Gümüş · 1b23037
fix(av1): a split-transform rect strip must still stamp its palette neighbour state decode_block_rect's split-transform arm (depth != 0) returns before the fn's own tail, so record_palette_y_rect/record_palette_uv_rect never ran for that block: the above/left palette arrays kept a DEAD block's size+colours, and the next block's UV colour cache (Neighbours::palette_uv_cache) then hit a cached entry with the wrong VALUE. Same cache length, so the same bits are read and the entropy stream stays in sync -- the defect is silent, pixels only. smptebars 192x192 cq45 (--enable-palette=1 --min/max-partition-size=16/64): U 512 bytes wrong (x48..55, y0..63 chroma, max |d| 28), Y and V exact, and --enable-palette=0 exact -> now 0 bytes off. On the lane this cell was hidden behind the 32x32 partition value=7 refusal main has since lifted (class refusal-hides-a-defect). PALETTE_PRED set/take now go through set_palette_pred/take_palette_pred, which trace every arm and consumption (with the caller's location and a stale flag) under EC_DEBUG_PAL=1 -- 20 set sites vs 2 take sites were unauditable before. Sweep: 4486 is the ONLY early return Ok in any decode_block* fn. palette gate: 40/70 matched (was 17/70), 0 named refusals, palette_rect_hits=142. screen-content gate: 47/70 matched, 31 through a split-tx palette block.
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
Merge main 06d856d into lane-palette2Ahmet Kaan Gümüş · 2b5b4fa
Merge main 06d856d into lane-palette2 decode.rs reconstruct_rect: keep the lane's PALETTE_PRED override wrapper, with main's EC_DEBUG_EDGES trace moved inside the else after edges_rect. refusal_inventory: main's list minus the screen-content palette string (this lane lifted it), plus the lane's two palette strings; main's 1:4 SB string kept.
fix(av1): palette left neighbour/colour cache is tile-relative, not frame-relativeAhmet Kaan Gümüş · 45c1398
fix(av1): palette left neighbour/colour cache is tile-relative, not frame-relative `palette_ctx_and_cache` and `palette_uv_cache` read the LEFT palette size and colours with no availability guard at all, where libaom's `av1_get_palette_cache` takes `xd->left_mbmi` -- NULL whenever the block sits at its own TILE's left column. A second tile column therefore inherited the previous tile's palette colours into its cache and its `palette_y_mode` context. Guarded with `c > tile_col0_mi / (SUB / MI)` on both, and `Neighbours::start_row` now clears the four palette side bands it always skipped. Also adds the multi-tile palette gate arm (smptebars, 2 tile columns, screen content), `#[ignore]`d: it refuses before a palette block reconstructs because aomenc keeps the FIRST occurrence of a repeated --enable-* flag, so the arm's overrides never take. One edit next round (extra before the base recipe). Tile suite 54/54 green, gate_coverage 5/5.
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.docs(tiles): r11 report -- films are single-tile, tools-on multi-tile gates, one open defectAhmet Kaan Gümüş · 60a3b42Browse files
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
test(av1): multi-tile gates with the coding tools ON, and the films' real tiling measuredAhmet Kaan Gümüş · 9c8c214
test(av1): multi-tile gates with the coding tools ON, and the films' real tiling measured Every existing tile gate turns rect/ab partitions, tx-size search, cdef and restoration OFF to isolate the per-tile loop -- the tool-disabled-in-every-gate shape, under which a tile-edge defect in any of those tools is invisible. - stream.rs: `run_multi_tile_gate` + 4 arms (2x2 grid and 4 columns, 8- and 10-bit, intra and inter) through `decode_stream`, rect+ab partitions, default cdef and loop restoration on, deblocking left crossing tile boundaries. The parsed `tile_info` is asserted to carry the grid asked for (skipping `show_existing_frame` headers, which code no tile info) and `tile_hits` is asserted >= tiles*frames so a header claiming 4 tiles cannot pass on one decoded tile. - The 8-bit 2x2 inter arm is `#[ignore]`d with an open defect documented in place: seed 42 mismatches in one 32x32 block at x[224..255] y[32..63] from frame 4 on; not cdef, not restoration, not deblocking; seeds 47/48 are exact; tile attribution unproven because the single-tile control refuses. - decode_probe: prints the tiling of every frame header before decoding. Both of his AV1 films measure cols=1 rows=1 uniform over 181 headers each, confirmed independently by ffmpeg's trace_headers (tile_cols_log2=0, tile_rows_log2=0) -- multi-tile is NOT on the critical path for them. - gate_coverage: 5 stale 10-bit entries deleted (global-motion and dist-wtd-comp were already closed by lane-cwarp and left this test red at main 9c35ecc; ab-partitions, rect-partitions and restoration are closed by the new 10-bit arms), plus a note on why tiling cannot join the `--enable-*` derivation.
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
feat(av1): PARTITION_HORZ_A/HORZ_B/VERT_A/VERT_B at 16x16 for intra framesAhmet Kaan Gümüş · 95d8523
feat(av1): PARTITION_HORZ_A/HORZ_B/VERT_A/VERT_B at 16x16 for intra frames Two 8x8 squares (decode_leaf8) plus one 16x8/8x16 strip (decode_leaf_rect's real non-skip coefficient path) per arm, libaom visit order, VERT_A/_B under Reach::vert_ab_partition() (lane-part32 fd1a2eb's encode.rs half cherry-picked). Lifts 'a HORZ_A/HORZ_B/VERT_A partition below 16x16' (narrowed to the 1:4 case) and 'a coded (non-skip) HORZ_B/VERT_B rect strip below 16x16' (dead branch deleted), gated by 6 real aomenc streams, 8-bit and 10-bit, each arm asserted: ab16 arms(HORZ_A,HORZ_B,VERT_A,VERT_B)=[2,1,2,1], all pixel-exact vs ffmpeg. Also, coordinator-reported base defects fixed here (same hunks on lane-sub8 r6 / lane-rectx r5): mi-exact mode map read with tile-relative guards and reset in start_tile/start_row; has_tr/has_bl rect index uses MAX_MIB_SIZE_LOG2 (5), not 4.
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.
docs(av1): lane-palette2 r9 report -- GREEN, merge resolution + palette prediction on a split-tx rect stripAhmet Kaan Gümüş · e0183b2Browse files
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
Merge main f31a2c5 into lane-palette2, and predict palette per transform unit on a split-tx rect stripAhmet Kaan Gümüş · 9ad0588
Merge main f31a2c5 into lane-palette2, and predict palette per transform unit on a split-tx rect strip
Merge resolution: decode.rs `reconstruct_rect` keeps this lane's PALETTE_PRED
override and takes main's rect filter-intra call (`bw, bh`); refusal_inventory
loses the two strings both sides lifted ("a HORZ/VERT intra strip in a
screen-content frame", "a HORZ/VERT intra strip with a split transform").
The merge created a combination neither side had: a palette block on a rect
strip whose luma transform SPLITS. `decode_rect_split` (main, lane-rectsplit)
knew nothing about palette, so every transform unit predicted DC while the
coefficients were still read -- the entropy stream stayed in sync and the
block came out flat grey (smptebars 192x192 cq=35: luma x0..63 y0..127 wrong,
max |d| 52, rest of the frame exact). Palette prediction reads no edge pixels,
so a unit's window on the block's colour-mapped map IS its prediction:
RectStripModes now carries the Y map (sliced per unit) and the UV maps (the
chroma transform is never split), and the block bumps PALETTE_SPLIT_TX_HITS.
Both palette gates green: rect-palette 17/70 matched + 21 uncounted-exact,
palette_rect_hits=92; rect-screen-content 19/70 matched (14 through a
split-transform palette block) + 19 uncounted-exact. The r8 chroma-only U
mismatch (rgbtestsrc 128x128 cq=55) is gone -- main's deblocker chroma tx-size
fix (9b1297a) closed it.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
fix(av1): every kf_y_mode reader takes the mi-exact intra mode neighbour, not just the strip path -- a 32x16 strip whose left neighbour was a 16x8 rect leaf read the stale coarse 16x16 slot and picked a different CDF row for the same mode value (whole bottom-right quadrant wrong); mi-exact map now tile-guarded (mi_r > tile_row0_mi) and reset in start_tile/start_row like every other neighbour arrayAhmet Kaan Gümüş · fbf038b
fix(av1): every kf_y_mode reader takes the mi-exact intra mode neighbour, not just the strip path -- a 32x16 strip whose left neighbour was a 16x8 rect leaf read the stale coarse 16x16 slot and picked a different CDF row for the same mode value (whole bottom-right quadrant wrong); mi-exact map now tile-guarded (mi_r > tile_row0_mi) and reset in start_tile/start_row like every other neighbour array