lane-av1422llpred: per-axis reach for lossless 4:2:2 chroma (r1: the found fix; r2: the class sweep)
r1 -- THE FIX (lane-av1422llpred). read_intra_chroma_lossless computed the per-TU Reach with
tu_reach(side, side, col_off, row_off, 4 << ss_x(fctx), ...), and tu_reach takes ONE transform size and
passes it as BOTH tx_w and tx_h, so the transform HEIGHT came from ss_x instead of ss_y. A TX_4x4
chroma unit is 4 << ss_x luma px WIDE but 4 << ss_y luma px TALL; at 4:2:0 and 4:4:4 the two shifts are
identical, which is exactly why both formats have been byte-exact and only 4:2:2 could reach it.
Now tu_reach_rect with tx_h = 4 << ss_y(fctx) (decode.rs:37568). The sibling walk in decode_block
already did this correctly with separate spans.
libaom: av1_dr_prediction_z3_c (reconintra.c:609) with the reach decided by has_bottom_left
(reconintra.c:411) -- row_off + tx_size_high_unit[TX_4X4] < AOMMAX(mi_size_high[bsize] >> ss_y, 1).
Ours before: row_off + tx_h < bh -> 0 + 8 < 8 -> false, so below_left was denied. After: 0 + 4 < 8 -> true.
WHY INTERIOR-ONLY: build_directional_and_filter_intra_predictors (reconintra.c:1150) fills left_col[0..3]
and only extends to [4..7] when n_bottomleft_px > 0; with the reach denied our Edges::build replicated
left_col[3] across 4..7. z3 reads left_col[base]/[base+1] with base = (23*(c+1)+r)>>6, so row0 and col0
only read [0..3] (byte-identical) while the interior reads the replicated tail. Feeding libaom's own
formula the 8-sample left column reproduces the oracle's col0 exactly -- the arithmetic was right, the
edge was short.
MEASURED by Main on a bypassed release build of this branch vs the oracle (aomdec --rawvideo, per
plane, 320x240 4:2:2 intra): ll422_allintra Y 0 / U 3126 -> 2984 / V 3139 -> 3067. Prediction-sum
disagreements 490 -> 453 of 9600 paired units. W_intrabc and X_intrabc_tiled UNCHANGED
(917974/474506/487694 and 864325/421718/414871) -- both are inter/intrabc streams and the changed
function is reached only from intra lossless 4:2:2. Oracle-flip control: one oracle V byte rotated
moves V by exactly +1.
r2 -- THE CLASS SWEEP, done by Main, because r1 fixed one instance of a shape with more. tu_reach takes
ONE size for two axes; grepping every call site for a subsampled single size found TWO more, both in
decode_rect4_16_strip (18985 and 19072), both converted to tu_reach_rect with tx_h = 4 << ss_y(fctx).
The remaining 15 tu_reach sites pass no subsampled size, and the sites that already used separate sizes
(19022/19116/37613/37783) were already correct. MEASURED: a no-op on both 4:2:2 cells we have
(W_intrabc byte-for-byte the same counts; ll422_allintra unchanged), so those two are recorded as
correct-for-the-4:2:2-port and NOT as a measured win -- they are provably an identity at 4:2:0 and 4:4:4
where ss_x == ss_y, which is the only reason they are safe to land unmeasured.
NOT GATEABLE, stated plainly: 4:2:2 is refused at the sequence header (stream.rs:1803), so no committed
test build can reach read_intra_chroma_lossless at ss (1,0) and no committed test can gate this. The
evidence is the measurement table plus the oracle-flip isolation control -- no source-scan substitute,
and this change is NOT described as gated. Regression: 422/lossless/444/warp/intra -> 175 passed,
0 failed, 2 ignored.