Commits
Commits on
00c1b3ff2d80d84fef71bb6208110dedbbd95fc42026-09-02
fix(av1): the luma mode-context coarse fallback ignored tile availabilityAhmet Kaan Gümüş · 353ada1
fix(av1): the luma mode-context coarse fallback ignored tile availability `Neighbours::modes_above_left` -- the entry point of every remaining coarse `kf_y_mode`/`y_mode` neighbour reader (`decode_block_rect`, `decode_block_rect64`, `decode_block`) -- took the mi-exact override first but then fell back to the raw `above_mode`/`left_mode` band with no tile-relative availability, and `decode_leaf_split4` / `decode_leaf_rect8` read those bands directly. All five now go through `modes_above_left_mi`, which yields DC_PRED where libaom's `up_available`/`left_available` are false. Measured: zero behavioural change. The new `MODE_TILE_EDGE_COARSE_LEAKS` counter -- coarse fallbacks at a tile edge holding a non-DC mode -- is 0 across the 20 attempts of the two-tile-column gate, because `above_mode` is cleared per tile in `start_tile` and `left_mode` per superblock row in `start_row`. That gate now asserts it stays 0: it is the invariant the coarse fallback rests on, and dropping either reset is exactly how lane-mtfix's chroma `above_uv_mode` twin broke. The charter's pinned mi(24,8) divergence does not reproduce on this base -- lane-rectsplitx ec0b3b5 fixed it; at cq 32 that fixture now stops on a real 16x16 AB-partition refusal (aomdec EC_PART value=4). See lanes/modectx-r1.report.md.
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.
chore(av1): script the oracle EC_TRACE_TPL + per-entry EC_STACK rungs (rung 14) so lane-interbis hand patches survive a rebuildAhmet Kaan Gümüş · 7896810Browse files
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.
fix(av1): motion_field_projection returns 0 for a key/intra start frame, so a forward key frame no longer spends a ref_stamp slot; av1_copy_frame_mvs clear portedAhmet Kaan Gümüş · 718eaba
fix(av1): motion_field_projection returns 0 for a key/intra start frame, so a forward key frame no longer spends a ref_stamp slot; av1_copy_frame_mvs clear ported
feat(av1): OBMC on a 16x8/8x16 inter leaf -- refusal lifted, gated by an --enable-obmc=1 armAhmet Kaan Gümüş · 3c024bf
feat(av1): OBMC on a 16x8/8x16 inter leaf -- refusal lifted, gated by an --enable-obmc=1 arm The r3 refusal is disproved on this tree: an EC_OBMC rung in both our decoder and the oracle aomdec emits the same 9 neighbour invocations on the exact stream r3 measured, and all six EC_AV1_PREFILT_DUMP frames are byte-identical. Ship the blend, count it (OBMC_RECT_LEAF_HITS), and prove it with 16 extra --enable-obmc=1 attempts in the 16-level rect leaf gate (10 blends 8-bit / 4 blends 10-bit, 0 mismatches). Also re-measures r2's ignored 32x16/16x32 rect-residual gate: still red, and the blocker is now rectangular INTRA prediction (10 of 12 refusals), not this lane.
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).
test(av1): the 1:4 gates code cq 63, and the chartered cq-63 "defect" is disprovenAhmet Kaan Gümüş · 1a1bbdb
test(av1): the 1:4 gates code cq 63, and the chartered cq-63 "defect" is disproven The lane-fi32x8 residue claimed the 8-px band fixture mismatches ffmpeg at --cq-level=63 even with filter intra off (8-bit seeds 58/59/64). It does not: 136 aomenc streams at cq 63 across four sweeps (both flag settings, both bit depths, attempts 0..23 of the fi32x8 family plus the 32x32 gate's own family) decode pixel-exact against ffmpeg. That control never arrived -- it spelled --enable-filter-intra=0 BEFORE the recipe's =1 and aomenc keeps the LAST occurrence, so the run measured the then-unfixed filter-intra path. So the quantiser is coded rather than argued about: the 32x32-level 1:4 gate's second cq is 63 instead of 45 (the cq-32 attempts keep their exact streams, so no attempt changes by accident), and the filter-intra 1:4 gate rotates [32,45,55,63]. Every existing hard assert stands; both gates pass at both depths with the 1:4 counters non-zero. decode_probe gains EC_PROBE_OUT16 (little-endian u16 planes) -- without it a 10-bit compare of this instrument silently diffs against a file it never wrote, which cost this round one false MISMATCH. lane-fi32x8 is merged in: the filter-intra-on half of the premise cannot be tested on main, which still refuses those strips. A real defect found on the way is bisected and reported, not shipped: an 8-bit cq-32 seed-48 stream (never coded before, not reachable from the shipped rotation) diverges at mi_row=24 mi_col=8 element `mode` -- same entry range 46952, aomdec val=12 rng=36608 vs ours val=7 rng=33744 = wrong y-mode CDF row for a 32x16 block whose above neighbour is a 32x8 1:4 strip. See lanes/band63-r1.report.md.
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.
docs(av1): lane-inter4 r3 report -- 16-level rect inter leaf, two shipped-code defects, OBMC residueAhmet Kaan Gümüş · e4c2a0bBrowse files
feat(av1): 16x16-level rectangular INTER leaves -- PARTITION_HORZ/VERT into two 16x8/8x16 inter blocksAhmet Kaan Gümüş · b2eabdd
feat(av1): 16x16-level rectangular INTER leaves -- PARTITION_HORZ/VERT into two 16x8/8x16 inter blocks Mode info, rectangular residual and prediction for the 16-level rect inter leaf, the shape lane-inter4 r2 measured as the real reach blocker (real motion content codes one before any 32-level 2:1 strip). - decode.rs: the 16x16-level PARTITION_HORZ/VERT arms (side=SUB keeps every CDF/prediction-buffer decision square, write_w/write_h carry the true footprint), `rect_inter_residual_supported` extended to 16x8/8x16, `rect_inter_luma_set`/`rect_inter_chroma_set` picking the TxbSet from the block's true shape, motion_mode/obmc CDF rows for BLOCK_8X16/BLOCK_16X8, and `size_group_wh` -- `y_mode` and `interintra` now read the block's own `size_group_lookup` row instead of its square `side`'s. - cdf_state.rs/cdf.rs: `TxbSet::LumaRect16x8Inter` (+`Set1`) -- LumaRect16x8's coefficient tables with the inter tx_type alphabet (EXT_TX_SET_DCT_IDTX reduced / EXT_TX_SET_ALL16 otherwise, both at the TX_8X8 CDF row); the missing `eob_pt_128_luma_class1` and `eob_pt_32_chroma_class1` tables, wired into the rect 16x8/8x16 luma and 8x4/4x8 chroma sets (a 1D V_DCT/H_DCT unit was reading the 2D eob alphabet) and into the per-frame counter reset. - decode.rs `obmc_blend`: libaom's real `max_neighbor_obmc` table (1 mi -> 0, 2 -> 1) instead of a row that was right only at 16 px and above. - REFUSALS: "an inter partition below 16x16 other than SPLIT" is gone; two named refusals take its place -- the 16-level AB/1:4 partitions, and OBMC on a 16x8/8x16 leaf (which mismatches the reference; see the report). Gate: a_real_aomenc_inter_sequence_with_a_16_level_rect_leaf_decodes_pixel_exact (8-bit: 3 attempts carrying a 16x8 leaf, 2 an 8x16, 2 coded rect inter TUs; 10-bit: 2/3 leaves, residual proven by the 8-bit arm), every frame Y/U/V vs ffmpeg, refusals counted and never SKIPped.
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
fix(av1): the saved motion field stored a compound block's FIRST reference, not its secondAhmet Kaan Gümüş · 72cffab
fix(av1): the saved motion field stored a compound block's FIRST reference, not its second libaom `av1_copy_frame_mvs` walks BOTH of an inter block's reference slots and the LAST qualifying one wins, skipping a slot whose reference is on the other side (`av1_calculate_ref_frame_side`: OrderHint ahead of, or equal to, this frame's) or whose mv exceeds `REFMVS_LIMIT`. `build_motion_field` kept slot 0 unconditionally, so every compound block's 8x8 motion-field cell carried the wrong (mv, reference) pair; the next frame's `add_tpl_ref_mv` then projected it with the wrong reference distance and a NEARESTMV block took a wrong temporal candidate -- entropy exact, pixels wrong. Pinned instance (lane-inter4 r2's open "decodes fully, still mismatches"): 192x128 rect-partition inter stream, cq 34, decode-order frame 5, the 32x32 block at mi(24,40) -- ours mv0=(0,72) from mfmv0=(0,24) rfo=1, aomdec mv0=(0,-230) from mfmv0=(0,-230) rfo=3. 646 luma pixels, max delta 39. Gate: a_real_aomenc_inter_sequence_with_temporal_mv_candidates_decodes_pixel_exact (8-bit + 10-bit, every fully decoded attempt compared to ffmpeg, temporal-MV counter asserted >0: 66/67 blocks). Reverting the fix reddens it at frame 5. Class saved-field-keeps-slot-0: a per-frame summary of a multi-slot field must replay the reference's slot walk (order + skips), not keep slot 0. Instruments: EC_MODE_VAL/EC_STACK on our single-ref path, EC_TPL per add_tpl_ref_mv probe (oracle side patched to match).
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).
fix(av1): the frame-edge partition bit was read and thrown awayAhmet Kaan Gümüş · 005ba23
fix(av1): the frame-edge partition bit was read and thrown away At a frame edge the partition symbol is a single gathered bit, and libaom's ec_read_partition_impl returns PARTITION_HORZ (resp. VERT) when it reads 0 -- only 1 is SPLIT. Every edge site in both tile paths read that bit and inferred SPLIT unconditionally (class parsed-then-discarded), desyncing the last superblock row of any frame whose height is not a multiple of 64. On the user's ReelB head (3840x1608, 10-bit) that surfaced two rows later as "a Golomb tail longer than this decoder reads" -- a refusal naming the symptom. libaom's own read_golomb caps at length > 20 exactly like ours; the cap is untouched. First divergent element: key frame, mi_row=400 mi_col=0, name=skip, aomdec rng=34753 vs ours 43258; aomdec codes that superblock as one BLOCK_64X32. New gate: the film's own key frame is pinned as a fixture and decodes pixel-exact against ffmpeg's 10-bit decode. Suite 337 passed / 0 failed.
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.
docs(av1): lane-inter4 r2 report -- rect inter residual, red gate, suite totalsAhmet Kaan Gümüş · 115cb3aBrowse files
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.
feat(av1): rectangular inter residual coding for 32x16/16x32 strips (gate red, refusal kept for every other shape)Ahmet Kaan Gümüş · b594919
feat(av1): rectangular inter residual coding for 32x16/16x32 strips (gate red, refusal kept for every other shape) The r1 ceiling was that no rectangular inter block could carry a residual: decode_inter_block refused every non-skip HORZ/VERT/HORZ_B strip. This ports the path for the 2:1 shapes whose coefficient tables already exist: - read_block_tx_size_rect: spec 5.11.17 from the block's own rect max_txsize_rect_lookup entry. TX_MODE_LARGEST -> one rect TU, no symbol; TX_MODE_SELECT -> one depth-0 txfm_partition symbol (new txfm_partition_ctx_rect: above vs tx_size_wide, left vs tx_size_high, category from txsize_sqr_up_map), and a split resolves to sub_tx_size_map's SQUARE sub-transforms, from which the existing square read_var_tx_size continues at depth 1. - txfm_partition_update_rect, and the skipped-inter case now records the block's own width above / height left (set_txfm_ctxs(.., skip && is_inter)). - read_inter_plane_rect: read_coeffs_rect + dequant_and_inverse_typed_wh onto the top-left w x h of the square-strided MC predictor; luma txb_skip_ctx 0 (plane_bsize == txsize_to_bsize[tx_size]); chroma at av1_get_max_uv_txsize (16x8/8x16) inheriting the luma tx_type. - TxbSet::LumaRect32x16Inter: LumaRect32x16's coefficient tables plus default_inter_ext_tx_cdf[3][TX_16X16] (EXT_TX_SET_DCT_IDTX, what av1_get_ext_tx_set_type returns for an inter TU with sqr_up == TX_32X32). - two r1 out-of-bounds fixes surfaced by the new content: a rect strip's around_mi read `side` cells left and indexed past the tile's last mi row; the rect mode/side stamps ran past the frame's last 16-px column. The refusal string is unchanged and still fires for every shape but 32x16 and 16x32, so refusal_inventory is untouched. The new gate is RED and #[ignore]d with its exact reason: on real motion content the decode stops at the 16x8/8x16 inter leaf or intra-rect-strip refusal before any 32-level 2:1 strip, so this capability is implemented but NOT proven -- see lanes/inter4-r2.report.md.
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.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üş · 5959a93
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).
(cherry picked from commit 2d5c425c515d1f6a8d5089cf2ec4d187e2d407fd)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
fix(av1): the inter-SB partition pin and the new motion_mode refusal literalAhmet Kaan Gümüş · 968076f
fix(av1): the inter-SB partition pin and the new motion_mode refusal literal The hand fixture's superblock value is PARTITION_HORZ, which this branch now decodes; it stops at the rectangular-inter-residual refusal instead. The new motion_mode refusal string carried a line continuation, so refusal_inventory's source grep saw a different literal than the list.
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).feat(av1): inter-frame superblock-level HORZ/VERT/1:4 and 32x32-level 1:4 partition armsAhmet Kaan Gümüş · 323608a
feat(av1): inter-frame superblock-level HORZ/VERT/1:4 and 32x32-level 1:4 partition arms decode_inter_block's `at` moves from 16-px cells to MI (4 px) units so a 32x32-level 1:4 strip can name its 8-px offset; motion_mode/obmc gain libaom's BLOCK_32X64/64X32/8X32/32X8/16X64/64X16 rows and are selected by the block's true footprint; interintra is no longer read on a 1:4 strip (is_interintra_allowed_bsize is enum-ordered and excludes them); delta_q/lf's is_whole_sb becomes bSize == sbSize. Gated: the superblock-level inter PARTITION_HORZ arm, 8-bit, 4 x 64x32 strips inside 2 pixel-exact attempts vs ffmpeg. NOT gated: the VERT/1:4 arms and the whole 10-bit side -- every real stream finds those strips non-skip and stops at "a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual coding". See lanes/inter4-r1.report.md.
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.