forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to lanes/av1ibc444rect_fixture_gen.pyClear filter

2026-09-25

lane-av1-ibc444rect: intrabc rect leaves at lossless 444 walk per-4x4 unitsAhmet Kaan Gümüş · 0bfd062
lane-av1-ibc444rect: intrabc rect leaves at lossless 444 walk per-4x4 units

An unskipped intrabc BLOCK_8X4/BLOCK_4X8 leaf on a lossless frame reads
its coefficients as (bw/4)*(bh/4) inter TX_4X4 units, plane-major --
read_tx_size's lossless first line forces TX_4X4 before any tree, the
frame's TxMode is ONLY_4X4 so no var-tx tree is read either, and
av1_read_tx_type's qindex==0 return drops the tx_type the lossy 4x4
inter sets carry. The old route read one LumaRect8x4Inter /
ChromaRect8x4 rect unit and desynced (fail-before: the lossless WHT
assert (4, 8) != (4, 4) at TxParams::run).

- decode_leaf_rect8's intrabc arm: lossless non-skip leaves push the
  per-4x4 leaf list through the existing unit loop; the TXFM band
  publish defers to after the loop (set_txfm_ctxs runs at
  parse_decode_block's tail) and shrinks to (4, 4); the units' coding
  tx_type is nulled at lossless; the residual goes through TxParams
  with the frame's lossless flag (the dequant_and_inverse_typed_wh
  shortcut ran a DCT inverse over WHT-ordered levels).
- sub8_leaf_chroma444's intrabc non-square arm: lossless walks per-4x4
  TxbSet::Chroma4 units like the non-intrabc arm (lane-av1-llsub8),
  predicting the current frame at the DV.
- Counters INTRABC_RECT8_LOSSLESS_{LUMA,CHROMA}_HITS + stream
  accessors; gate a_lossless_444_intrabc_rect_leaf_walks_per_4x4_units
  pins fixtures/ll444_ibc_rect.obu (provenance + measurement in
  lanes/av1ibc444rect.report.md).

Measured vs the instrumented aomdec: EC_TRACE_COEFF ladders align and
the walked leaves' samples are 0-diff on both planes (luma 0/339 leaves,
chroma clean); remaining fixture diffs sit exclusively on skipped
intrabc blocks (the skipped-intrabc sub8 chroma predictor, escalated in
the report) behind the llintra-deferred decode_leaf8 8x8 buffers, which
this lane does not touch. 4:2:0 unchanged: the lossless 420 key/inter,
loss64, 444 key-frame, dodge2 inter and ten lossy intrabc gates all
green.