forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 552edc4cede0dfd9bebbc4e344242802802d15ccFiltered to lanes/rectsplitx-r1.report.mdClear filter

2026-09-02

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).