forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to lanes/av1intrapred.report.mdClear filter

2026-09-24

av1intrapred: gate the intrabc TX4-split chroma frame-copy routeAhmet Kaan Gümüş · 0c936b6
av1intrapred: gate the intrabc TX4-split chroma frame-copy route

Pins the R5 stream (fixtures/intrabc_tx4_chroma_kf.obu, 7173 bytes,
aomenc screen/cq20 key frame) as a committed regression fixture and adds
stream::tests::an_intrabc_tx4_leaf_chroma_inherits_the_luma_type_and_
predicts_from_the_frame_copy. The gate runs unconditionally (no oracle
binary, no skip path): it counter-asserts the new
INTRABC_TX4_CHROMA_COPY_HITS non-vacuity counter (bumped when the TX4
arm's chroma reads consult the armed INTRABC_CHROMA_TX slot), pins the
formerly-divergent U(184,4) and U(168,0)/V(168,0) chroma patches to the
oracle bytes, and pins the whole decoded frame behind a dependency-free
FNV-1a fingerprint (345600 bytes, 0xf271df27ce4dba66).

Failure modes covered: missing INTRABC_CHROMA_TX arming (counter + patch
asserts), chroma predicting from the unwrapped palette buffer instead of
the frame copy (U(168,0)/V(168,0) asserts - verified live: removing the
wrap fails the gate with 78182 chroma bytes wrong), and any other byte
drift in the frame (fingerprint). Parent-commit non-vacuity: the decode
desyncs at byte 82216 (R5) / 352 (W2 cq8 twin).
av1intrapred: intrabc TX4 leaf chroma predicts from the frame copyAhmet Kaan Gümüş · 3ab8e30
av1intrapred: intrabc TX4 leaf chroma predicts from the frame copy

decode_leaf8 wrapped only palette_y_buf with intrabc_bufs (lane-t900
r32); the TX4 arm's chroma reads overrode prediction from the raw
palette_uv_bufs, so an intrabc leaf whose var-tx tree split to TX_4X4
predicted its chroma units INTRA from the UV mode (intrabc's is DC_PRED)
instead of copying the frame at the DV. decode_block already wraps its
palette_uv_bufs with the intrabc copies (this file's single-TU/multi-TU
chroma reads) - decode_leaf8 now does the same chroma twin wrap.

With the previous INTRABC_CHROMA_TX arming fix, R5 (testsrc2 640x360
sb64 maxp64 cq20 screen intrabc, 1 frame) is now byte-exact vs aomdec
AND ffmpeg; W2 (cq8 re-encode) byte-exact vs aomdec; R9 stays byte-exact
vs ffmpeg; cached A1-A3/D1-D3 sweep byte-exact. Targeted intrabc/
lossless/screen tests: 14 passed, 0 failed. Full suite at the parent
commit: 607 passed / 0 failed.
av1intrapred: arm INTRABC_CHROMA_TX for leaf8 TX4-split intrabc leavesAhmet Kaan Gümüş · 7fb533f
av1intrapred: arm INTRABC_CHROMA_TX for leaf8 TX4-split intrabc leaves

decode_leaf8's resolved==4 (TX4 var-tx split) arm read each luma 4x4 TU
off the 16-symbol inter tx_type set (correct) but never armed
INTRABC_CHROMA_TX, so the group's chroma reads fell back to
default_intra_tx_type(DC_PRED) = DCT_DCT and took the 2D eob row, 2D
scan and 2D nz contexts where libaom (which classifies intrabc as
is_inter_block) inherits the co-located luma TU's coded type. R5's first
fork, mi (36,66): luma TU (0,0) coded H_ADST, chroma U decoded eob=11
off the 2D row where aomdec decoded eob=13 off the class-1 row.

Also disarm the slot after the arm's two chroma reads: left set, the
next leaf's chroma inherited the intrabc leaf's luma type instead of its
own derivation (seen live at mi (54,24)).

Gates: R5 entropy now aligns 3321/3321 all_zero reads rng-for-rng vs
instrumented aomdec (was 2162); luma byte-exact; first pixel diff moved
82216 -> 231864, total chroma diffs 127862 -> 3305. W2 (cq8 re-encode)
352 -> 231848, 305032 -> 3254. R9 stays byte-exact vs ffmpeg. Suite:
607 passed / 0 failed (exit 0).

Remaining chroma diffs are a new class - intrabc chroma frame-copy
prediction (origin U(184,4), block mi (2,92), entropy identical) -
documented with a trace line in the lane report.