Commits
Commits on
7eb5f179fc09767ed7b18232ae8a667f9b79dda02026-09-02
Merge branch 'lane-fiinter': intra blocks in inter frames read use_filter_intra (aomenc default on; symbol was never consumed)Ahmet Kaan Gümüş · 7eb5f17
Merge branch 'lane-fiinter': intra blocks in inter frames read use_filter_intra (aomenc default on; symbol was never consumed)
lane-fiinter was rebased off lane-intrainter, so this ONE merge carries both
lanes' work: the per-TU luma split of an intra block inside an inter frame
(intrainter, commit 94492b4 on this branch) and the use_filter_intra read in
both intra-in-inter arms with its ENABLE_FILTER_INTRA_INTER thread-local.
Merging lane-intrainter e841b2a separately would have replayed the same content
from a different base; it is retired as subsumed, proven by its own gates
passing here (a_real_aomenc_{,10bit_}inter_sequence_with_a_split_transform_intra_block).
Merged clean; one call site rebound to the widened Reach::of_tu(tx_w, tx_h) from
the rectsplitx merge (decode.rs:16147).
Gates on the merged tree, all green: split_transform_intra_block (8+10-bit),
filter_intra_on_an_intra_block (8+10-bit), inter_sequence* , tx_select*,
8x8_leaf_split, refusal_inventory, gate_coverage, base_ctx_rect_offsets --
29 passed / 0 failed / 2 ignored.Merge branch 'lane-rectsplitx': per-transform-unit rect intra prediction under split transforms at every strip size (ReelB mid-film / ReelC head blockers); depth_to_tx_wh; three neighbour-map fixes; 16x8 tx_depth reads cat1; sub-16 filter-intra gates liveAhmet Kaan Gümüş · 4bf9109
Merge branch 'lane-rectsplitx': per-transform-unit rect intra prediction under split transforms at every strip size (ReelB mid-film / ReelC head blockers); depth_to_tx_wh; three neighbour-map fixes; 16x8 tx_depth reads cat1; sub-16 filter-intra gates live Merge resolution (main's fixes kept where they overlap): - decode_rect_split chroma map: superset of rectchroma's and rectsplitx's rows (32x8/8x32/16x4/4x16/8x4/4x8), one comment. - Reach::of_tu WIDENED to (tx_w, tx_h); square callers pass (tx, tx). The lane's inline per-unit Reach collapses onto it, and main's palette window inside the unit loop is kept (windowed by tx_w/tx_h). - One fimode->intradir helper: main's fi_tx_row; the lane's identical tx_type_mode_row is dropped and its call site rebound. - depth_to_tx_wh wins at every depth site, including decode_block_rect64's, replacing `bw.min(bh) >> (depth - 1)`; the "splits only once" refusal is gone. - refusal_inventory: the lane's list minus its stale AB-below-16x16 entry (main lifted that refusal in lane-ab16). Two merged gates asserted on counters that the lifted refusals fed, and both went vacuous/false in the cross-product (class counter-from-refused-stream): - chroma_is_a_4to1_or_sub8_rect counted attempts REFUSED at the depth-1 1:4 strip; it now counts depth-1 1:4 strips that DECODED and compared pixel-exact. - ab_partitions_below_16x16 required a vert-AB TX4 unit "reached" on tx-size-search attempts that used to stop at the strip refusal. Those attempts now decode to the end and compare pixel-exact, carrying zero such units -- the old nonzero count came from a still-desynced decode. The assert is now that every tx-size-search attempt compares exact; the lookup values stay pinned by of_tu_keeps_the_ordinary_answer_and_uses_the_block_row_under_vert_ab. Suite on the merged tree: 347 passed / 3 failed / 29 ignored, the 3 being exactly those two gates plus refusal_inventory; after the resolutions above all 3 pass (15/15 in the targeted rerun).
fix(av1): an intra block inside an inter frame never read use_filter_intra -- silent desync on every aomenc-default streamAhmet Kaan Gümüş · c98870c
fix(av1): an intra block inside an inter frame never read use_filter_intra -- silent desync on every aomenc-default stream libaom's read_intra_block_mode_info ends with read_filter_intra_mode_info on an inter frame exactly as it does on a key frame, but decode_inter_block's INTRA arm and decode_inter_block8's 8x8 INTRA arm went straight from the palette syntax to read_block_tx_size. aomenc enables filter intra by default and all 69 inter gate recipes pinned --enable-filter-intra=0, so nothing had ever exercised it (classes symbol-consumption-gap + tool-disabled-in-every-gate): his films' inter frames desynced at the first such block. Both arms now read use_filter_intra (filter_intra[filter_intra_size_class(side)], None at 64x64 per av1_filter_intra_allowed_bsize) plus filter_intra_mode, and thread the result into every luma prediction/coefficient call including lane-intrainter's per-TU split-tx path (read_plane's FIMODE_TO_INTRADIR row applies unchanged). The sequence bit rides a frame-constant thread-local next to tx_select rather than a 51st decode_inter_block parameter. Gate: a_real_aomenc_inter_sequence_with_filter_intra_on_an_intra_block_decodes_pixel_exact at 8 and 10 bit -- counter-asserted firing (11 / 8 blocks), every frame Y/U/V vs ffmpeg, no SKIP. Negative control (read disabled) fails it 40/40 attempts. Mutation sweep with --enable-filter-intra=1 in every inter recipe: 15 passed, 0 failed. Suite: 346 passed, 0 failed.
Merge branch 'lane-fi32x8': 32x8/8x32 strips read use_filter_intra (rows were missing; aomenc default on)Ahmet Kaan Gümüş · 7a9d28d
Merge branch 'lane-fi32x8': 32x8/8x32 strips read use_filter_intra (rows were missing; aomenc default on) Renumbered against lane-fi8: cdf::FILTER_INTRA now has 12 rows, [8]=4x8 6743, [9]=8x4 5893, [10]=32x8 18101, [11]=8x32 20229, and filter_intra_size_class_rect maps (32,8)->10 / (8,32)->11. Orientation-split counters + the 32-level 1:4 filter-intra gate come from the lane; filter_intra_classes_carry_their_own_libaom_default_row covers the whole domain.
Merge branch 'lane-mcomp64': 64x64 compound blocks infer COMPOUND_DIFFWTD (no wedge alphabet at that size); diff-wtd-comp exercised at 10-bitAhmet Kaan Gümüş · 0462fae
Merge branch 'lane-mcomp64': 64x64 compound blocks infer COMPOUND_DIFFWTD (no wedge alphabet at that size); diff-wtd-comp exercised at 10-bit wedge_bsize becomes an Option, so a 64x64 masked-compound block infers COMPOUND_DIFFWTD instead of reading a wedge symbol libaom never wrote; refusal lifted with diffwtd_inferred_hits and 8-/10-bit gates. NEVER_ON_10BIT is now empty.
Merge branch 'lane-fi8': 4x8/8x4 leaves read use_filter_intra from their own CDF row (was BLOCK_4X4's); filter-intra tx_type row mapped at every rect siteAhmet Kaan Gümüş · 2988169
Merge branch 'lane-fi8': 4x8/8x4 leaves read use_filter_intra from their own CDF row (was BLOCK_4X4's); filter-intra tx_type row mapped at every rect site FILTER_INTRA gains rows [8]=4x8 (6743) and [9]=8x4 (5893); filter_intra_size_class_rect maps them; read_intra_mode_sub8 takes the leaf's own fi_class; the "filter intra on a HORZ/VERT strip" refusal is lifted with a 3-arm real-aomenc gate; fi_tx_row (fimode_to_intradir) now feeds every rect tx_type CDF row. Merged onto main's palette2 decode_leaf_rect8 rewrite -- main's per-TU Reach::of_tu call sites kept, the lane's Reach::of variant dropped.
Merge branch 'lane-band46': band-fixture seed-46 mismatch was per-transform-unit reach (third instance); seed 46 un-excluded from the chroma-rect gateAhmet Kaan Gümüş · dfba0f5
Merge branch 'lane-band46': band-fixture seed-46 mismatch was per-transform-unit reach (third instance); seed 46 un-excluded from the chroma-rect gate Main already carries the per-TU fix (lane-palette2 r12's Reach::of_tu), so the lane's own third implementation is dropped: kept main's of_tu and its three call sites, took the lane's SPLIT_TU_REACH_FIX_HITS counter rewired as a `tu_reach` wrapper that fires when the per-unit answer differs from the standalone-block one, its gate a_real_aomenc_band_stream_seed46_decodes_pixel_exact, and its gate_coverage tx-size-search delta. the_chroma_rect_gates_excluded_seed_46_ decodes_pixel_exact is un-ignored and EXCLUDED_SEEDS is now empty (both pass at 8- and 10-bit).
docs(intrainter): handoff suite line reflects the green resultAhmet Kaan Gümüş · 3bbde5dBrowse files
feat(av1): intra blocks in inter frames may split their luma transformAhmet Kaan Gümüş · 343ce49
feat(av1): intra blocks in inter frames may split their luma transform An intra block inside an inter frame reads the same intra `tx_depth` symbol a key-frame block does; when it resolves below the block side the block codes one intra prediction plus one coefficient set PER transform unit (decode_block's multi-TU branch), with the inter frame's CDF state and the inter-frame intra mode syntax. read_block_tx_size now hands that leaf list back through the existing var-tx slot, so the caller's per-TU luma loop, record_split_luma write-back and per-TU deblock edges are the ones already proven for inter var-tx blocks. The 8x8 leaf's TX_4X4 2x2 grid has no per-TU intra loop and keeps a named refusal. Gate: a_real_aomenc_inter_sequence_with_a_split_transform_intra_block_ decodes_pixel_exact (+ 10bit arm) -- mandelbrot with a hard cut at frame 4 under --kf-min-dist=1000, 8 frames, all planes vs ffmpeg.
Merge branch 'lane-rectchroma': a 4:1 strip's first transform split is a 2:1 rect unit (was tiled square, silent wrong pixels); chroma coefficient tables for 32x8/8x32/8x4/4x8Ahmet Kaan Gümüş · 38d3bd3Browse files
Merge branch 'lane-ab32': 32x32-level AB partition gates at 8/10-bit; 10-bit fixture noise knobAhmet Kaan Gümüş · 8e2dc86Browse files
fix(av1): 32x8/8x32 strips never read use_filter_intraAhmet Kaan Gümüş · a5505ea
fix(av1): 32x8/8x32 strips never read use_filter_intra The 32x32-level 1:4 arms (PARTITION_HORZ_4/VERT_4, four 32x8 or 8x32 strips) are inside av1_filter_intra_allowed_bsize's "both sides <= 32" bound, so libaom writes a use_filter_intra flag on every DC_PRED one of them -- filter_intra_size_class_rect had no row for either shape, so the symbol was never read and the tile desynced silently from that strip on (class symbol-consumption-gap). --enable-filter-intra is ON by aomenc default and every gate reaching these strips spelled it =0, so nothing could see it. cdf::FILTER_INTRA grows rows 8/9 (18101 BLOCK_32X8, 20229 BLOCK_8X32, from scripts/extract-filter-intra-cdfs.py against the oracle source), the domain test moves both shapes off "refused before any leaf", and a new gate proves the flag fires on BOTH orientations inside pixel-exact attempts at 8 and 10 bit (hit counters split by orientation because the two rows are asymmetric).
docs(rectsplitx): r3 report -- split arm dropped smooth_neighbor_uv; 1:4 gate green, 2 sub16 gates un-ignoredAhmet Kaan Gümüş · 928732c
docs(rectsplitx): r3 report -- split arm dropped smooth_neighbor_uv; 1:4 gate green, 2 sub16 gates un-ignored
Merge branch 'lane-mtfix': chroma intra-edge filter type no longer read across a tile row boundary (coarse above_uv_mode fallback was unguarded); multi-tile intra gate asserts the suppression firedAhmet Kaan Gümüş · 2d10935Browse files
fix(av1): the chroma edge-filter neighbour is tile-relative on its coarse fallback tooAhmet Kaan Gümüş · db2b6f7
fix(av1): the chroma edge-filter neighbour is tile-relative on its coarse fallback too smooth_uv_neighbour's mi-exact uv_mode maps were tile-guarded but their coarse fallbacks (above_uv_mode/left_uv_mode) were not, and above_uv_mode is the one above_* band start_tile never clears. The first block of a tile ROW therefore filtered its chroma edge at the strength of the block above it in the TILE ABOVE, where libaom has above_mbmi == NULL: multi_tile_intra seed 46 frame 0, chroma x[120..127] y[32..37] (luma 240,64 -- the bottom-right tile's first block) off by 1..2 in U and V with luma bit-exact. Visible only since the palette2 merge, which lifted the refusal that used to swallow that seed. New uv_tile_edge_suppressed_hits() counts reads suppressed at a non-frame tile edge whose coarse slot held a non-DC mode; the 2x2-tile intra gate (the only arm with a tile row boundary) asserts it >= 1 and now decodes 6/6 pixel-exact.
fix(av1): a tx-split 16x8/8x16 leaf predicted chroma with the intra-edge filter type hard-coded offAhmet Kaan Gümüş · 6b1a0cd
fix(av1): a tx-split 16x8/8x16 leaf predicted chroma with the intra-edge filter type hard-coded off decode_leaf_rect's split arm built RectStripModes with `smooth_neighbor_uv: false` while its own unsplit arm passes `neighbours.smooth_uv_neighbour(..)`. Chroma of every tx-split sub-16 strip therefore chose the wrong intra-edge filter, luma bit-exact and chroma off by +-1..2 over the block (8-bit seed 46 cq12: U 32 / V 173 samples). The 1:4 32-level gate is green, and the two sub16 filter-intra gates ignored since lane-fistrip r1 are un-ignored and green.
docs(rectsplitx): r2 report -- neighbour-mode root cause, gate numbers, open chroma residueAhmet Kaan Gümüş · 1b78ec6Browse files
fix(av1): a 1:4 strip read its neighbour MODE from a 16px-coarse band -- four 8px strips alias onto one cell, and the tile-edge cell holds a siblingAhmet Kaan Gümüş · 8029745
fix(av1): a 1:4 strip read its neighbour MODE from a 16px-coarse band -- four 8px strips alias onto one cell, and the tile-edge cell holds a sibling
lane-rectsplitx r2. The r1 "the depth-1 rect transform unit mismatches
ffmpeg" premise is DISPROVED: the rect unit itself is right. The band
fixture's desync starts at the `mode` symbol of mi(4,8) (8-bit, cq 12,
seed 42), where the entry range matches aomdec (38331) but the value
differs (ours 11 / rng 52576, libaom 12 / rng 34624) -- a different
`kf_y_mode` CDF row, i.e. a wrong neighbour mode, not a wrong transform.
Two causes, both in the neighbour bands:
* `decode_block_rect4` never recorded the mi-exact mode/uv_mode maps in
its UNSPLIT arm (only the split arm did, through
`record_mi_luma_rect`), so `mode_left_mi` answered None and the coarse
16x16 cell -- holding the LAST of the four 32x8 strips -- stood in for
the strip at the reader's own mi row.
* the coarse band is also read where libaom has NO neighbour at all: at
tile column 0 the four strips of one HORZ_4 share one `left_mode`
cell, so strip 2 read strip 1's mode as its "left". New
`Neighbours::modes_above_left_mi` is mi-exact AND availability-correct
(`mi_r > tile_row0_mi` / `mi_c > tile_col0_mi` -> DC_PRED), and the
class is swept into `decode_leaf_rect` and `decode_leaf8` too.
* `decode_block_rect4` asked `smooth_uv_neighbour` at the SUB cell's
top-left mi, not the strip's real mi -- a chroma-only defect (chroma
edge-filter strength) that seed 43's VERT_4 exposed with luma
bit-exact.
With all three, the depth-1 rect unit decodes BIT-EXACT vs aomdec on both
orientations of the fixture (seed 42 HORZ_4 and seed 43 VERT_4, 8-bit
cq 12/17, tx-size-search on, luma+U+V). The refusals are lifted and the
gate now HARD-asserts both split depths.
MEASURED RESIDUE, reported not hidden: seed 46 (8-bit, cq 12,
tx-size-search on) still mismatches CHROMA ONLY (luma bit-exact, U 32 /
V 173 samples off by +-1..2, first at chroma (16,8) = the 32x8 strip at
luma (32,16)), so this gate is RED as committed. See
lanes/rectsplitx-r2.report.md for the reproducer and the one-command
fallback to green.docs(mcomp64): r1 report -- inferred-DIFFWTD lift, gate evidence, film probe residueAhmet Kaan Gümüş · 2cd82eaBrowse files
Merge branch 'lane-palette2': palette Y/UV incl. rect strips and split transforms; above-right/below-left reach decided per transform unit (D203 wedge under VERT_A)Ahmet Kaan Gümüş · 5b07c13
Merge branch 'lane-palette2': palette Y/UV incl. rect strips and split transforms; above-right/below-left reach decided per transform unit (D203 wedge under VERT_A) Conflicts: kept lane-palette2's rect-capable Reach::of_tu(bw,bh,col_off,row_off,tx,block) and deleted lane-ab16's square-only one, retargeting ab16's two call sites and porting its vert-AB test to the surviving signature; decode_leaf_rect8's per-TU reach moved off Reach::of(4,..) onto of_tu (same class); main's decode_block_rect4 wired to the new read_intra_mode_rect signature and refuses a 1:4 strip that actually uses a palette.
feat(av1): 64x64 masked compound infers COMPOUND_DIFFWTD instead of refusingAhmet Kaan Gümüş · 6d86b95
feat(av1): 64x64 masked compound infers COMPOUND_DIFFWTD instead of refusing
libaom `read_compound_type` (decodemv.c 1634-1656) only codes a
`compound_type` symbol when `is_interinter_compound_used(COMPOUND_WEDGE,
bsize)`; `av1_wedge_params_lookup[BLOCK_64X64].wedge_types == 0`, so at
64x64 the type is INFERRED as COMPOUND_DIFFWTD and only the 1-bit
`mask_type` literal follows. This decoder read the symbol nowhere and
refused the block by name instead ("a masked compound 64x64 inter
block..."), which capped every `--enable-masked-comp=1` stream whose
superblock stayed unsplit.
The DIFFWTD mask build and blend are already size- and bit-depth-generic
(`mc::diffwtd_mask` carries the `bd - 8` round term, `blend_masked_compound`
takes the block dims), so the lift is the alphabet decision plus a narrow
counter. 64x64 is the only wedge-less size this decoder's square inter path
reaches; the rect shapes (64x32/32x64/64x16/16x64) are refused one level up
by "a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular
residual coding" and gain nothing from code here.
Gate: a_real_aomenc_stream_with_a_diffwtd_compound_64x64_block_decodes_pixel_exact
(+ its 10-bit arm) -- --sb-size=64 --max/min-partition-size=64 pins every
block to the inferred size, --enable-masked-comp=1 --enable-diff-wtd-comp=1
--enable-dist-wtd-comp=0 leaves the inferred arm as the only masked choice;
per-attempt hit snapshots counted on decoded+compared attempts only.
6/6 pixel-exact both depths, diffwtd_inferred_hits 79 (8-bit) / 51 (10-bit).
gate_coverage NEVER_ON_10BIT is now empty: the 10-bit arm is the first
recipe to spell --enable-diff-wtd-comp=1 and fire it.Merge branch 'lane-ab16': 16x16-level HORZ_A/HORZ_B/VERT_A/VERT_B; transform units inside a block take the block's reach rowAhmet Kaan Gümüş · 776f14b
Merge branch 'lane-ab16': 16x16-level HORZ_A/HORZ_B/VERT_A/VERT_B; transform units inside a block take the block's reach row Conflict resolutions: cdf.rs kept main's NZ_MAP_CTX_OFFSET_32X64/64X32 rows (standing hazard) and dropped the lane's rect_nz_map_ctx_offset_tables_are_row_major test; encode.rs kept main's rect_reach_tables/table_row form; decode.rs took the lane's four-arm AB block, retargeted onto main's decode_leaf8(prev_leaf: Option) signature; write_back_split_modes and Reach::in_vert_ab carried over from the lane.
feat(av1): per-transform-unit intra prediction inside a rect strip, at mi granularityAhmet Kaan Gümüş · c8cc7ef
feat(av1): per-transform-unit intra prediction inside a rect strip, at mi granularity decode_rect_split now takes an mi position and a (tx_w, tx_h) transform unit, so it can name strips a coarse 16-px cell cannot (a 32x8 HORZ_4 strip, an 8-px-tall leaf) and walk rectangular units. New depth_to_tx_wh replaces the `bw.min(bh) >> (depth - 1)` unit formula at every 2:1 call site: libaom's sub_tx_size_map halves the LONGER side of a rect, so a 1:4 strip's first split is still a 2:1 RECT unit (TX_32X8 -> TX_16X8, TX_64X16 -> TX_32X16) -- the same root cause lane-rectchroma measured mis-tiling a depth-1 64x16 strip, fixed once. Two real defects found by the sweep: - decode_leaf_rect read cdfs.tx_size_cat2 for a 16x8/8x16 strip; bsize_to_tx_size_cat is 1 for BLOCK_16X8/8X16 (same symbol count, different CDF row) -- a wrong-table read of a real symbol. - its luma tx_type CDF row was the block's raw (always DC_PRED) mode under filter intra instead of fimode_to_intradir[filter_intra_mode]; main 1a89ed9 fixed that inside read_plane, this is its rect sibling. Extracted as tx_type_mode_row and used by both. Lifts the sub-16 split-transform refusal. GATE: the pinned 16x8 filter-intra fixture is now a whole-frame pixel compare against ffmpeg (was expect_err) and asserts sub16_split_hits > 0. ReelB mid-film extract moves from "a 32x32-level 1:4 strip with a split transform (depth=2)" to the unrelated HORZ_A/B-below-16x16 refusal. The per-unit RECT walk is implemented but REFUSED by name: it mismatched ffmpeg on the 1:4 band fixture (8-bit cq 12 seed 42), and since depth 1 fires before depth 2 in every splitting attempt, the depth-2 half cannot be gated either -- both stay refused. The 1:4 gate gained a --enable-tx-size-search=1 half of its window that asserts those refusals are reached, never mismatched. Suite: 321 passed, 0 failed, 30 ignored ($HOME/.cache/rectsplitx-suite.log).
docs(fi8): lane-fi8 r1 report -- root cause, sweep, gate evidenceAhmet Kaan Gümüş · f9dae33Browse files
Merge branch 'lane-tiles': multi-tile gates prove their overrides arrived; palette-Y blocks read no use_filter_intra symbol; per-tile palette band resetAhmet Kaan Gümüş · 473c744Browse files
fix(av1): split transform units answered their intra reach as if each were a standalone block -- libaom answers from the unit's row_off/col_off inside its parent, so a D203_PRED 8x8 unit at col_off=2 read bottom-left samples that are not reconstructed yet; seed 46 of the 1:4-strip recipe mismatched ffmpeg on 916 luma samples of frame 0 with a fully exact entropy ladderAhmet Kaan Gümüş · b4b7e7c
fix(av1): split transform units answered their intra reach as if each were a standalone block -- libaom answers from the unit's row_off/col_off inside its parent, so a D203_PRED 8x8 unit at col_off=2 read bottom-left samples that are not reconstructed yet; seed 46 of the 1:4-strip recipe mismatched ffmpeg on 916 luma samples of frame 0 with a fully exact entropy ladder Class reach-is-per-transform-unit. `Reach::of(logical_tx, tu_px, tu_py, ..)` at three per-TU call sites asked the standalone-block has_top_right/has_bottom_left tables. libaom `reconintra.c` never does that inside a block: * has_bottom_left: `if (col_off > 0) return 0` * has_bottom_left leftmost-SB-column: counts row_off + tx_high_unit from the UNIT * has_top_right: `if (row_off > 0) return col_off + tx_wide_unit < plane_bw_unit` New `Reach::of_tu` ports that ladder and delegates the (0,0) fallback to the existing square/rect block answers; `decode::tu_reach` wraps it and counts every unit whose answer differs from the old one (`split_tu_reach_fix_hits`). Gate `a_real_aomenc_band_stream_seed46_decodes_pixel_exact` (stream.rs): the sibling rectchroma recipe, seeds 42..=51 on 8 AND 10 bit, plane-exact vs ffmpeg, seed 46 asserted to decode on both depths, fix-fired counter > 0 overall and > 0 on 10 bit. 10 pixel-exact streams / 10 named 1:4-chroma refusals / 22 fixed transform units (10 10-bit). `enable-tx-size-search` leaves gate_coverage::NEVER_ON_10BIT -- first 10-bit gate to spell it. Suite: 323 passed, 0 failed, 30 ignored.
test(av1): assert out_of_scope_mismatch == 0 on the chroma-rect gate, pin its one excluded seed, revert an unneeded min-partition-size narrowingAhmet Kaan Gümüş · bf7bf11
test(av1): assert out_of_scope_mismatch == 0 on the chroma-rect gate, pin its one excluded seed, revert an unneeded min-partition-size narrowing Verifier FAIL fixes, test code only: - stream.rs chroma-rect 1:4/sub8 gate: `out_of_scope_mismatch` was printed and never asserted, so 2 real ffmpeg mismatches (8- and 10-bit, cq 32, seed 46, zero 1:4 strips) passed silently. Now `assert_eq!(.., 0)` like main's two sibling 1:4 gates. Seed 46 is excluded by name via `EXCLUDED_SEEDS` and pinned instead by an `#[ignore]`d test that decodes it at both depths and asserts pixel-exact -- un-ignoring it is the proof lane-band46 closed it. Both share the new `rectchroma_stream` recipe helper so they cannot drift. - stream.rs:2453: revert `--min-partition-size` 16 -> 32 in a_real_aomenc_10bit_inter_sequence_decodes_pixel_exact; the gate passes at 16 on this tree, so the narrowing was coverage loss plus a merge conflict. - gate_coverage.rs: drop the duplicate `enable-1to4-partitions` comment paragraph; main already removed that entry with its own wording. Gates: chroma-rect 57 matches / 36 named refusals / 120 attempts, 21 out of scope with 0 mismatches; 10-bit inter ok; gate_coverage + refusal_inventory 14 passed, 0 failed.
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-defon': every default-on aomenc tool is spelled on in a gate with a hard counter; forward keyframes counted; NEVER_ON_8BIT emptyAhmet Kaan Gümüş · 15a2683
Merge branch 'lane-defon': every default-on aomenc tool is spelled on in a gate with a hard counter; forward keyframes counted; NEVER_ON_8BIT empty Auto-merged cleanly. Post-merge coverage print (fresh binary): NEVER_ON_8BIT 0 of 10 over 51 8-bit gates; NEVER_ON_10BIT only enable-diff-wtd-comp over 24 10-bit gates -- multi-tile is no longer a hole, so the list the tx4x8 merge had already trimmed reconciles with the lane's by the test itself.
Merge branch 'lane-fimv': motion_mode alphabet drops WARPED_CAUSAL under cur_frame_force_integer_mv (libaom motion_mode_allowed); screen-content warp gate 8/10-bitAhmet Kaan Gümüş · 6421619
Merge branch 'lane-fimv': motion_mode alphabet drops WARPED_CAUSAL under cur_frame_force_integer_mv (libaom motion_mode_allowed); screen-content warp gate 8/10-bit The 16x16+ site merged clean. The 8x8 site was rewritten by lane-gmaffine on main (real ref_frame, WARPED_CAUSAL implemented rather than refused), so main's arm is kept and `&& !force_integer_mv` plus the FIMV_ALPHABET_HITS bump are re-applied there by hand; the lane's "8x8 WARPED is refused" prose is dropped as stale.
Merge branch 'lane-eobc1': eob_pt class-1 rows checked against libaom for every size by script; inter gate with 1D-class chroma eob at 8/10-bitAhmet Kaan Gümüş · aa53dcc
Merge branch 'lane-eobc1': eob_pt class-1 rows checked against libaom for every size by script; inter gate with 1D-class chroma eob at 8/10-bit cdf.rs/cdf_state.rs resolved to main's single copy of each class-1 const (values identical to the lane's). scripts/extract-eob-class1.py reported 8 consts MISSING: EOB_PT_128_LUMA_CLASS1* and EOB_PT_32_CHROMA_CLASS1*, the tables behind the three arms that still carried `eob_pt_class1: None` (LumaRect16x8, LumaRect16x8Set1, ChromaRect8x4) -- machine-extracted and wired, so the script now reports 112/112 checked, 0 mismatched, 0 missing and no `eob_pt_class1: None` remains.
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.
Merge branch 'lane-cfl': chroma intra-edge filter reads the neighbour's uv_mode below 16x16 (was a literal false; coarse 16px uv map never written by sub-16 blocks)Ahmet Kaan Gümüş · b49a79b
Merge branch 'lane-cfl': chroma intra-edge filter reads the neighbour's uv_mode below 16x16 (was a literal false; coarse 16px uv map never written by sub-16 blocks) Resolved decode.rs in favour of main's mi-granular uv_mode map family (sub8merge: uv_mode_col/uv_mode_row + record_uv_mode_mi + smooth_uv_neighbour); the lane's 3-tuple widening of sub8_mode_col/row is dropped as redundant. The lane's call sites (decode_leaf_rect, decode_leaf8, decode_block_rect, decode_block_rect64, decode_block, decode_inter_block) are wired to smooth_uv_neighbour, and its UV_MODE_MI_OVERRIDE_HITS counter now lives inside that function. Gate + CFL/angle-delta counters taken from the lane.
docs(palette2): r12 report -- TU-inside-block reach root cause, gate green, suite 314/0/27Ahmet Kaan Gümüş · f567222Browse files
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.
docs(palette2): r11 full-suite totals -- 306 passed / 1 failed / 26 ignored, the seed-46 gate is the only redAhmet Kaan Gümüş · 094999a
docs(palette2): r11 full-suite totals -- 306 passed / 1 failed / 26 ignored, the seed-46 gate is the only red r10's inherited nz_map_ctx_offset_tables_match_the_rect_rule failure is gone (main deleted the stale test; the merge took the deletion).
fix(av1): a transform unit inside a block is not a block at that positionAhmet Kaan Gümüş · b7ad53c
fix(av1): a transform unit inside a block is not a block at that position `Reach::of(tx, tu_px, tu_py, ..)` answered the standalone-block has_top_right/has_bottom_left tables for every transform unit of a split-transform SQUARE block (decode_block's multi-TU branch and decode_leaf8's 2x2 4x4 grid), where libaom's reconintra.c takes its TU branches instead: bottom-left is 0 outright for col_off > 0, and 1 while the unit below-left is still inside the block. The rect path (decode_rect_split, lane-rectsplit r1) already had the right rule inline; it now shares it as Reach::of_tu. Measured on the seed-46 gate stream: the TL 16x16 (D203, VERT_A, tx depth 1) at px(128,64) has four 8x8 luma TUs; aomdec reports n_bl=8,0,8,0 for them, ours granted bottom-left to the col_off=8 units and reconstructed a 25-pixel diagonal wedge at rows 68..71 that then propagated over the whole last superblock (2242 samples). a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact RED -> GREEN. New enumeration test encode::tests::of_tu_matches_libaom_has_top_right_and_has_bottom_left_per_unit checks of_tu against an MI-unit transcription of both libaom functions over every (block, tx, row_off, col_off, block-level answer).
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(palette2): main 4a29b4e (sub8merge mi-granular mode maps + rectx coded strips)Ahmet Kaan Gümüş · 851c4fb
merge(palette2): main 4a29b4e (sub8merge mi-granular mode maps + rectx coded strips) Resolved decode.rs by keeping both sides at all 5 hunks: main's modes_above_left()/record_mode_mi()/record_uv_mode_mi() (mi-granular maps) alongside the lane's palette ctx/cache reads, palette refusals and palette neighbour stamps in decode_block_rect / decode_block_rect64. refusal_inventory + gate_coverage auto-merged and are green (3 + 9 tests).
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).
docs(palette2): r11 report -- merge of main 096f4b8, seed 46 localized to one block (entropy exact)Ahmet Kaan Gümüş · c043c60
docs(palette2): r11 report -- merge of main 096f4b8, seed 46 localized to one block (entropy exact) The seed-46 gate is still RED and is NOT a lane regression in the entropy sense: the whole frame's symbol ladder is bit-exact vs instrumented aomdec, the mismatch is pre-loop-filter and confined to the frame's last superblock, and the first defective block is the TL 16x16 of a 32x32 PARTITION_VERT_A at px(128,64) (mode 7 / D203). Palette code, filter intra and the loop filter are ruled out with artifacts. Suite was still running at the tool cap.
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(palette2): main 096f4b8 (rectsplit r4, tx64x16 SB 1:4, gmaffine, hidden-frame compares)Ahmet Kaan Gümüş · 652ab0d
merge(palette2): main 096f4b8 (rectsplit r4, tx64x16 SB 1:4, gmaffine, hidden-frame compares) decode.rs auto-merged; decode_block_rect64's split arm (main's SB-level 1:4 path) gained the lane's RectStripModes palette fields and the r10 early-return palette stamp -- same class as decode_block_rect's arm. cdf.rs is main's byte-for-byte, main's deletion of nz_map_ctx_offset_tables_match_the_rect_rule taken. refusal_inventory.rs: kept the two lane palette strings + main's superblock-level partition value string; dropped the three no longer emitted.
docs(palette2): r10 full-suite totals -- 294/2/27, one inherited failure and one lane regressionAhmet Kaan Gümüş · 11df160
docs(palette2): r10 full-suite totals -- 294/2/27, one inherited failure and one lane regression Full `cargo test -p ec-av1 --lib` on the merged tree (the previous r10 agent was killed before it finished): 294 passed, 2 failed, 27 ignored. - nz_map_ctx_offset_tables_match_the_rect_rule fails IDENTICALLY at the merge base 06d856d (inherited from main: 44e8768 transposed the tables, the test still reads [col][row] while decode.rs:1804 reads [row][col]). - a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact PASSES at 06d856d and FAILS here (seed 46, luma (188,62) ours=116 ffmpeg=115, 2242 samples, bbox x135..191 y62..127) -- a regression this lane owns; main's gate is newer than the lane's rect-strip work, so the merge is the first time the two met.
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.