forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 00c1b3ff2d80d84fef71bb6208110dedbbd95fc4Filtered to lanes/inter4-r2.report.mdClear filter

2026-09-02

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.