forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on fd10b924bfc2d6773a872b16cbce918456d4e846Filtered to scripts/shape422-diff.pyClear filter

2026-09-30

lane-av1422seed: the frame-0 4:2:2 seed is decode_rect4_16_intrabc's 4:2:0 pair geometry at ss (1,0) -- LOCALISED, fix not landedAhmet Kaan Gümüş · 74d4dbb
lane-av1422seed: the frame-0 4:2:2 seed is decode_rect4_16_intrabc's 4:2:0 pair geometry at ss (1,0) -- LOCALISED, fix not landed

ATTRIBUTION. A wrong-sample diff cannot say whether a block was written at all.
The crate's own EC_AV1_PLANE_SENTINEL fill (0xDEAD into the uninitialised plane)
can: on s422_320x246 decode frame 0 it reports luma 0 unwritten runs and, for U
and V alike, exactly four -- rows 128..131, cols 144..151. The only three MC
writes in that frame are plane=0 x=288 y=128 w=16 h=4 (the strip's luma, exact)
and plane=1/plane=2 x=144 y=62 w=8 h=4 (its chroma, 66 rows too high). The
strip's own 8x4 chroma at (144,128) is never written. Owner:
decode.rs:18162 decode_rect4_16_intrabc, whose 4:2:0 1:4 PAIR rule
(is_chroma_reference, av1_common_int.h:1454) is applied at every ss except the
4:4:4 own444 arm. 4:2:2 is the SECOND ss where the rule does not hold --
is_chroma_reference ends in `|| (subsampling_x == 1 && subsampling_y == 0)` --
and it was never given an arm. Three constants carry it: cw/ch (accidentally
already right at 8x4), pair_mi (lmi, not lmi.0-1), and cpx/cpy
((px>>ss_x, py>>ss_y) = (144,128), not (pair_mi.1*MI/2, pair_mi.0*MI/2) = (144,62)).
The two chroma coefficient gathers at 18574/18635 must move with them.

MEASURED, and NOT LANDED. The write-side half regresses luma: 0 -> 5958 wrong
luma samples in frame 0 of s422_320x246, and all five slice cells then fail
luma identity. Control: git stash push the one file, rebuild, re-run -> main's
numbers reproduce to the sample (0/7810/5531, 0/22003/21625, ...), and two runs
of one binary are sha-identical, so it is the change, not a flake. Moving the
gather as well does not restore luma, so the remaining half is not the gather's
extent alone -- most likely has_chroma itself (at ss (1,0) EVERY strip codes
chroma, so an even-row HORZ strip passed has_chroma=false must become true).
Write the 4:2:2 arm whole: origin, extent, has_chroma, entropy set and context
gather together. lane-av1422luma (Agent07-4) independently localised a LUMA
desync in this same function; ownership split by message, this lane's write-side
hunk is not landed and no decoder change is in this commit.

INSTRUMENT (committed). scripts/cmp422-ffmpeg.py + run422-ffmpeg.py: ffmpeg
8.1.3 is the pixel oracle, geometry from the SEQUENCE HEADER via ffprobe, per-
frame plane attribution, bps-wide wrong samples, a zero-frame count is a hard
error, and the decode->display mapping is DERIVED: ffmpeg emits 16 shown frames
against our 17 decode-order dumps and a real altref REORDERS display against
decode (measured: decode f2..f8 -> display 7,3,1,2,5,4,6), so frame identity is
carried by the luma plane under an enumerated assignment that must agree on the
counts. Five controls (4:2:0 x3 incl. 10-bit, 4:4:4 x2) read BYTE-EXACT 0/0/0
before and after. All five slice cells reproduced: chroma only, luma exact,
first divergence decode frame 0 U row 62, region 16 chroma columns from the
right edge in all five -- one defect at five geometries, not a depth property.

NOT MEASURED, stated: the sample-flip control was NOT run (the controls above
are byte-exact cells, not flip arms); no permanent gate was added, because with
the fix unlanded it could only assert a failure. s422_384x240 (first bad frame
1) is a different seed. The 4:2:2 sequence-header refusal is untouched:
stream.rs:1803 reads `if seq.subsampling_x != seq.subsampling_y`.