forge
Explore
Log in

Don't you dare go Hollow

Commits

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

2026-09-25

ec-av1: lane-av1-422sub8rect review rework -- 444 OBMC back to the parent corner-cut, strided claim correctedAhmet Kaan Gümüş · 66b4c76
ec-av1: lane-av1-422sub8rect review rework -- 444 OBMC back to the parent corner-cut, strided claim corrected

Review findings on 4d1527f9: the ss-shifted OBMC port (plane-block-keyed
skip_chroma_above, >>ss blend extents) is libaom-conformant but NOT 444
byte-identical, and measurement went against it: on a 10-frame 4:4:4
--enable-obmc=1 fixture (sha256 4b5c0a47..., 2 rect OBMC leaves) parent
and tip read identical symbols and differ in exactly one V sample, with
the conformant tip FARTHER from aomdec (110 vs 111); single-change revert
builds attribute the whole delta to the OBMC change. Per the review
protocol the OBMC semantics are reverted to the parent corner-cut (ss
parameter dropped; encode.rs call unchanged again), deferred to the
owning 444 lane.

The TxParams::strided justification is corrected: pre-existing h<stride
callers DO get smaller scratches; identity is empirical (4:2:0 witness,
444 frame equality with the parent, revert experiment), and the stride*h
sizing stays -- the 4:2:2 leaf's TX_4X8 unit panics on the square sizing.

t422 frame 0 re-verified byte-exact at PREFILT/POSTCDEF after the rework;
4:2:0 pixel-exact witness and the refusal gate re-run green; cargo check
0 warnings.
ec-av1: lane-av1-422sub8rect -- the sub-8 inter 4:2:2 chroma ported to its real shapesAhmet Kaan Gümüş · 19f693e
ec-av1: lane-av1-422sub8rect -- the sub-8 inter 4:2:2 chroma ported to its real shapes

decode_inter_block8's whole chroma half moves to the BLOCK_4X8 plane block:
one TX_4X8 ChromaRect8x4/SCAN_4X8 unit per plane through read_inter_plane_rect
(offset-7 ctx, inherited luma tx type, around_mi_422_chroma walk), with the
MC build, warp, masked-compound, interintra, OBMC and skip pushes reshaped
per axis; the intra-in-inter arm reads the key-frame arm's rect reader.

decode_inter_sub8_split4's shared group unit is replaced by what the oracle
traces actually code at ss (1,0): every non-skipped odd-column piece is its
plane's own chroma reference and codes U+V TX_4X4 at the floored chroma cell
(build_inter_predictors_sub8x8 halves -- left from the left piece, right from
own; mixed groups whole-from-own), intra pieces route through
sub8_leaf_chroma422, and the 4:2:0 group tail is gated off at 4:2:2.

Shared helpers made ss-exact (4:2:0/4:4:4 identical): blend_masked_compound
and interintra_blend take per-axis mask subsampling (aom blend-a64-mask's
four branches), obmc_plan/obmc_run derive chroma extents by the plane ss,
TxParams::strided sizes stride*h (equal to the old square for every existing
caller). decode_inter_block's square-cut 4:2:2 chroma blend keeps the
pre-port direct mask read (stop-note: owning parent-lane surface).

Frame 0 of the pinned t422 fixture stays byte-exact at all four stages;
inter frames 1..10 decode and diverge ~15% less than the parent ladder
(no frame exactness claimed -- further 4:2:2 classes remain, trace:
EC_RECTCHROMA_GAP 16x8/8x32). Refusal unchanged; bypass never committed.
cargo check 0 warnings; 4:2:0 inter pixel-exact witness and refusal gates
green.