forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 84fa44cfe66f76e22181d4ff8bc06ef6ea78db07Filtered to crates/ec-av1/src/stream.rsClear filter

2026-09-28

ec-av1: lane-av1444rect -- a 1:4 inter strip's chroma context was gathered at the 4:2:0 pair extent at ss (0,0), forking the coder (H1)Ahmet Kaan Gümüş · 84fa44c
ec-av1: lane-av1444rect -- a 1:4 inter strip's chroma context was gathered at the 4:2:0 pair extent at ss (0,0), forking the coder (H1)

At 4:4:4 `is_chroma_reference` (av1_common_int.h:1454) reduces both parity
clauses to `!subsampling_y` / `!subsampling_x`, so EVERY block is its own
chroma reference and no 1:4 pair exists. `decode_inter_block`'s `around_c`
never gated on ss, so a HORZ_4 16x4 strip read its chroma coefficient
context over the 4:2:0 pair extent (16x8 luma = left[mi_r] and
left[mi_r+1]) instead of its own 4-px one. The U unit's `get_txb_ctx` then
saw a left neighbour libaom does not have and forked the arithmetic coder.

The 4:4:4 lossy + RECT cell -- the largest correctness gap the chroma-format
sweep left (lanes/av1formatsweep.report.md H1) -- had NO exactness gate at
all: the whole committed 4:4:4 base is lossless 8-bit.

Witness: testsrc2 128x96 rate=25 yuv444p, aomenc --profile=1 --passes=1
--end-usage=q --cq-level=20 --cpu-used=2 --threads=1 --row-mt=0
--lag-in-frames=0 --kf-max-dist=100 --limit=2, 6441 B, sha256 77f727e7...
Red before: frame 1, 8884/36864 samples wrong, first at Y(91,32); the first
wrong symbol was read 26263, both sides at mi (8,16) -- ours a luma-shaped
txb_skip row (re-indexed chroma ctx 1), the oracle decodetxb.c:158 on the U
plane with txb_skip_ctx 7. Green after: 2/2 frames byte-exact vs aomdec.

Gate `a_444_lossy_rect4_inter_stream_decodes_pixel_exact` pins the fixture
(len + FNV), asserts the ss (0,0) full-resolution chroma shape, the
byte-exact compare through the oracle aomdec, and non-vacuity on the
corrected route via `rect4_inter_own_chroma444_hits` (9 gathers here, 0 on
the 4:2:0 control, which also carries 16 HORZ_4 / 28 VERT_4 strips and is
itself compared byte-for-byte so a widening past ss_x 0 goes red).
Mutation proof: restoring the old arm with the counter left in place turns
the gate red at byte 4187 (ours 35 vs 38), 8884 bytes differing.

Identity: the crate's whole 444 family (9), rect_strip family (10), the
16-level rect-leaf gate, and all three new chroma-format-sweep gates
(444 lossless 10-bit, 444 12-bit, odd coded dimensions) run green against
this decode.rs. H2 (4:4:4 lossy tx-size-search chroma +/-1, 608/36864 from
frame 2) is unchanged and still divergent -- it is reconstruction
arithmetic, not entropy, and belongs to its own lane. H3's tile-column
recipe (77847 B, 6 frames) is byte-exact here.

(cherry picked from commit f92776bab2442319e32d4f56844af6956e2fc18b)
Merge lane-av1422lrless: LR-off 4:2:2 witness -- the controlled pair completes the exactness legAhmet Kaan Gümüş · e772a72
Merge lane-av1422lrless: LR-off 4:2:2 witness -- the controlled pair completes the exactness leg

- 422_residual_compound_warp_nolr_16f.obu: the reproduced LR-on recipe + exactly --enable-restoration=0; 16/16 pixel-exact vs aomdec, 244756/244756 entropy reads paired, LR counters all zero
- top-half engagement on the honest pair: 11 compound / 5 warp (vs 3/3 LR-on)
- pin + refuse-by-name gate, mutation-proven both ways; reviewer PASS after rework
- refusal still stands: breadth (chroma-format sweep) is the remaining leg
Merge branch 'lane-av1422warp'Ahmet Kaan Gümüş · 9d19aad
Merge branch 'lane-av1422warp'

# Conflicts:
#	crates/ec-av1/src/decode.rs
#	crates/ec-av1/src/stream.rs
Merge lane-av1-ibc128chunk: per-axis chroma chunk walk in decode_intrabc_128rectAhmet Kaan Gümüş · b430562
Merge lane-av1-ibc128chunk: per-axis chroma chunk walk in decode_intrabc_128rect

- de-square-cuts the mu-chunk chroma read walk and the mu_chroma replay (chunk-then-unit, the twin's shape); witnessed red/green on two pinned 4:2:2 intrabc sb128 fixtures, byte-exact vs aomdec
- reviewer PASS after rework (replay coverage regression found and fixed)
- suite 640/0 on server-3

# Conflicts:
#	crates/ec-av1/src/decode.rs
lane-av1422lrless: add the gate FOR REAL, and re-pin from a truly controlled recipeAhmet Kaan Gümüş · 78b7b48
lane-av1422lrless: add the gate FOR REAL, and re-pin from a truly controlled recipe

Reviewer P0 and P2, both accepted. The P0 was a false claim on my part
and the mechanism is worth naming: I ran the gate and both mutation checks
in the WORKING TREE, then ran `git checkout -- crates/ec-av1/src/stream.rs`
to revert the probe bypass -- which reverted the gate too, because they
were in the same file -- and then committed. `git show --stat 4a18a77b`
is one binary fixture and zero lines of stream.rs. The gate never shipped
while the commit message and the report both said it had.

P0, THE GATE NOW EXISTS. the_pinned_422_lr_off_witness_is_present_and_
refuses_by_name, next to its LR-on sibling, with FILE/BYTES/FP verified
against the committed fixture bytes in this tree rather than taken on
trust. `cargo test -p ec-av1 --lib -- 422_lr_off` runs 1 test, not 0.
Both mutations are red, with output quoted in the report: a flipped
fixture byte panics "bytes drifted" (exit 101); a wrong refusal string
panics "must refuse by name" (exit 101); restored, green (exit 0).

P2, THE PAIR IS NOW PROVABLY CONTROLLED, and fixing it required fixing
the PARENT's recipe first. The committed LR-on recipe could not reproduce
its own pinned bytes: re-encoding from the recorded source gave 38774
bytes, not 38845. Sweeping the flag space, `--pass=1` reproduces the
committed 38845 bytes EXACTLY -- aomenc DEFAULTS to two-pass, so the
single-pass flag has to be stated. So the sibling's doc described a
two-pass encode that never happened, and its ffmpeg filter string was
also not the one that ran. Both are corrected in place, with the
measurement that pins them.

The LR-off arm is then re-encoded from that same reproduced recipe with
EXACTLY ONE flag added, `--enable-restoration=0`:

    aomenc ... --enable-global-motion=1 --pass=1 --enable-restoration=0 ...

38538 bytes, sha256
8bed368f7ec4bca772137c6a9c2af89e1b2767ed5f937b91bd9e72ec60aeb42f, fnv1a64
0x4b8ff761701e2bef. (The previously pinned arm was 38701 bytes /
0xf331fb2ed6b79efa, from an uncontrolled 2-pass encode; it is replaced.)

Results on the honest pair, and the engagement advantage survives it:
- 16/16 pixel-exact vs aomdec --rawvideo, sha256
  1cf47bc9e06a6e286452dfe4ffe457a85b6badd25657dfd36af48262e8eb2464
- entropy 244756-for-244756 paired, no divergence, against the sibling's
  246735 -- the corners skip visible in the symbol stream
- LR proved off: all five LR counters 0 (sibling 22/10/0/26/28)
- top-half compound 11 vs the sibling's 3; top-half warp 5 vs 3
  (the earlier 14/10 was measured on the uncontrolled 2-pass arm and is
  withdrawn)

The engagement comparison is now honest, which is what the regeneration
was for.
lane-av1422warp: fix the 4:2:2 loop-restoration corner bug; pin the coverage witnessAhmet Kaan Gümüş · 7373100
lane-av1422warp: fix the 4:2:2 loop-restoration corner bug; pin the coverage witness

The 4:2:2 sequence header refusal is UNCHANGED and unconditional. This
commits the fix that makes a second 4:2:2 coverage witness decode
pixel-exact through the env-gated probe bypass, and pins that witness.

THE DEFECT. Two errors in the per-superblock restoration-unit range that
had been cancelling each other:

1. `read_lr` derived the ROW corners from the COLUMN axis. libaom's
   `av1_loop_restoration_corners_in_sb` (restoration.c:1303-1338) steps
   rows by `MI_SIZE >> subsampling_y` and columns by `MI_SIZE >>
   subsampling_x` -- the axes are not symmetric. This decoder had one
   `mi_size = 4 >> subsampling_x` for both, on a base of 4 where
   libaom's `MI_SIZE` is 8. At 4:2:2 (ss_x 1, ss_y 0) that made the row
   range 4x too small, so `rrow0 == rrow1` -- an empty range, zero
   `read_lr_unit` calls -- wherever libaom reads a chroma unit.

2. The 128x128 superblock's mode-info extent was passed as `SB_MI * 2`,
   and the two 64px call sites carried the same half-mi convention. Both
   are 2x too large.

The two cancelled exactly at 4:2:0 (4*32 == 8*16), which is why 4:2:0 and
4:4:4 decoded byte-exact while carrying the bug and why the 4:2:0 evidence
was never evidence of correctness here. At 4:2:2 the cancellation breaks,
because the row term stops following the column axis.

A third, smaller correction: the `read_lr` call is the ONE consumer that
turns a superblock's mode-info origin into ABSOLUTE frame space (it
divides by the restoration-unit size, a real pixel count), and it was
handed `(sb_r & !1) * SB_MI` -- twice the true mi row, since `sb_r`
indexes 64px superblocks. The partition decode is self-consistent with
that value (relative offsets only), which is why the 128 path decoded
correctly everywhere else; the origin is corrected only where it is
converted to absolute frame space.

EVIDENCE. The entropy stream pairs bit-for-bit against the instrumented
oracle -- 246735 symbol reads on each side, no divergence anywhere in the
stream, not merely at the window this lane spent nine rounds narrowing.
All 16 frames pixel-exact vs `aomdec --rawvideo` (2359296 bytes, sha256
4bfc2395e5ca6ea178f606e6b1ced773e26fc2d85bc3a6cdb63a402939aeb203 both
sides). 4:2:0 control byte-exact, 4:4:4 LR witness byte-identical to its
pre-lane decode, both previously pinned 4:2:2 witnesses pixel-exact. LR
gate family 12/12. Scoped battery over 420/444/inter/superres/cdef 118
passed, 0 failed, 7 ignored.

The wide gate is pin + refuse-by-name, the established 4:2:2 pattern: with
the header refusal standing, no committed test can decode a 4:2:2 stream,
because the bypass that would allow it must never be committed. The
exactness and engagement figures live in the gate's doc comment with the
encode recipe. Mutation-proven both ways -- a flipped fixture byte panics
"bytes drifted", a wrong refusal string panics "must refuse by name".

ENGAGEMENT, measured above the vertical midpoint on the exact stream.
Every pre-existing warp counter is frame-global, so this adds
`top_half_warp_hits` and `top_half_compound_hits`: 248 upper-half blocks
on a non-TRANSLATION global-motion model, 3 upper-half GLOBAL_GLOBALMV
compound blocks. Frame-globally: compound_warp 25, compound_warp_8 18,
rotzoom_gm_warp 84, lr_wiener 22, lr_sgrproj 10, cdef_idx 53,
part128_split 95.

Fixture: crates/ec-av1/fixtures/422_residual_compound_warp_16f.obu,
38845 bytes, sha256
d78e2afb43ce311d3d82335a945c6f80f62db4537966d881c1349a68b3aecb95, fnv1a64
0x0e73a51e2cc0c424.
ec-av1: lane-av1-ibc128chunk r2 -- the mu_chroma replay walks chunk THEN unit, report red counts correctedAhmet Kaan Gümüş · fda214d
ec-av1: lane-av1-ibc128chunk r2 -- the mu_chroma replay walks chunk THEN unit, report red counts corrected

Review r1 found a real coverage regression this lane introduced, and a
wrong attribution in the report.

P2, the defect. r1 gave the mu_chroma replay per-axis EXTENTS but kept the
old STEP: rows/cols count mu CHUNKS (ch / chunk_chroma_h) while the loop
body advanced the mi origin and read the grid PER UNIT (cr *
(unit_luma_h / MI), grid (cr * chunk_chroma_h)). Those agree only when a
chunk holds exactly one unit. At 4:2:0 (chunk_chroma == cu == 32) it is
line-identical to the parent, so nothing measured it; at 4:2:2
(chunk_chroma_h = 64 = 2 * cu) the body reached only the FIRST of the two
stacked units per chunk, so rows mi_r+8 .. mi_r+16 kept the composed-grid
smearing the replay exists to undo. The parent reached those rows (wrong
span, full coverage), so this was a regression r1 added, not a pre-existing
gap.

The reshape is the twin's chunk-then-unit loop (decode_inter_block's
mu_chroma_units, lane-av1-444 c8): (ur, uc) = (chunk_chroma_h / cu,
chunk_chroma_w / cu), inner `for kr in 0..ur { for kc in 0..uc {`, mi
origin (cr * 64 + kr * unit_luma_h) / MI per axis -- cr * 64 is the mu
chunk's LUMA-px step, 64 on both axes at every subsampling, which is why
the twin can write it unshifted -- and grid origin (cr * chunk_chroma_h +
kr * cu). At 4:2:0 ur/uc are 1 so kr/kc are 0 and the whole thing
collapses to r1's walk, line for line.

The LOSSLESS arm is pre-existing and deliberately untouched. On a lossless
frame cu is 4 and the composed grid is a raster of TX_4x4 units, so the
chunk-counted rows/cols do not enumerate it at all: that arm re-stamps
only the 4x4 at each chunk's top-left with a 2x2-mi span, where the twin
raster-walks the whole plane block (lane-av1-llinter). It is a 4:2:0
defect, not a subsampling square-cut, so it is out of this lane's class,
and fixing it would change 4:2:0 LOSSLESS output on a reconstruction with
no witness to verify it. Measured unreachability: a temporary env-gated
counter in the arm records 0 hits across the whole lossless and intrabc
gate battery (13 + 19 tests). Unblock named in the report.

P3, the report. The red counts were attributed to the wrong fixture: the
primary witness 422_intrabc_sb128_strip.obu is 46891 (f0) / 44842 (f3) on
the parent, 45135 / 44540 is the _notxsearch arm's. Both re-measured per
fixture and the table now reports each arm separately. The first
difference is byte 98368 = f0 Y row 256 col 64 on both -- the top-left of
the first 128x64 intrabc block at mi(64,0) -- and green is 0/0/0/0/0.

Re-measured after the reshape: both witnesses byte-identical to r1's
output (6 blocks, 48 chroma units, 5/5 frames exact vs aomdec), so the
reshape is a pure coverage repair. Gate battery 7/0 -- the four named
gates, both new gates and the bigblock pin gate -- plus intrabc 19/0 and
422+444+lossless 20/0; cargo check --all-targets 0 warnings. The source
scan gains the chunk-then-unit pins and its non-vacuity is measured twice:
forcing (ur, uc) = (1, 1) fails it (found 0), and re-introducing the
square cut at the read-walk site fails it (left: 1, right: 0). The
EC_AV1_ALLOW_422_PROBE bypass is NOT in the commit.
ec-av1: lane-av1-ibc128chunk -- the 128-root intrabc strip's mu-chunk chroma walk de-square-cut, with a red/green 4:2:2 witnessAhmet Kaan Gümüş · a50f363
ec-av1: lane-av1-ibc128chunk -- the 128-root intrabc strip's mu-chunk chroma walk de-square-cut, with a red/green 4:2:2 witness

decode_intrabc_128rect cut each mu chunk's chroma plane block with
`chunk_chroma = cside * 64 / side` -- a `chroma_side`-SQUARE chunk, i.e.
the 4:2:0 unit count on BOTH axes. This is the same defect
lane-av1-422bigblock fixed and witnessed in decode_inter_block and
decode_block_128rect; this copy was deferred there as unwitnessed. It is
now witnessed: a real `aomenc --i422 --profile=2 --sb-size=128
--enable-intrabc=1` stream reaches the shape.

A 64x64 mu chunk's chroma plane block is (64 >> ss_x) x (64 >> ss_y) --
32x32 at 4:2:0, 32x64 at 4:2:2 (TWO STACKED TX_32X32 per plane, which
av1_get_max_uv_txsize still caps at 32 per axis), 64x64 at 4:4:4. At
4:2:2 the square cut read one chroma unit per plane per chunk instead of
two, left the chunk's lower 32 chroma rows with no residual at all, and
stamped each unit's entropy context over a 16x16-mi luma square instead
of 16x8; the block's own plane block was still the 4:2:0-hardcoded
`bw/2 x bh/2` (and `px/2, py/2`) even though the same function's two
mv_to_q4 calls already scaled the DV per axis by ss_y. The halved unit
count desynced the tile.

Fix: per-axis at BOTH sites (the mu-chunk read walk and the mu_chroma
per-unit context replay) in the same expression shape the two witnessed
twins carry -- chunk_chroma_w/h = 64 >> ss, unit_luma_w/h = cu_tx << ss,
around_mi_rect/record_mi_chroma on the per-axis spans, per-axis unit
origins and composed-grid offsets, and cw/ch = bw/bh >> ss for the
block's chroma plane block.

Red before (parent a7d22aec, on the EC_AV1_ALLOW_422_PROBE
patch-run-restore build): 8 chroma units stamped over 2 reached blocks,
frames 0 and 3 diverge from aomdec (45135 / 44540 of 245760 samples),
first difference at Y row 256 col 64 -- the top-left of the first 128x64
intrabc block. Green after: 48 chroma units, all 6 blocks decoded, and
all FIVE frames byte-identical to aomdec --rawvideo. The recovered 4
blocks are the signal as much as the pixel count.

Both witnesses pinned (422_intrabc_sb128_strip.obu sha f92000db,
422_intrabc_sb128_strip_notxsearch.obu sha 80dd0d4e) and gated by
the_pinned_422_intrabc_sb128_strip_witnesses_refuse_by_name (byte pins
plus the unconditional refusal-by-name contract; decode_stream still
refuses 4:2:2 in committed code, so the decode-level assertions are
probe-measured and reproducible from the lane report's recipe) and a
comment-stripped source-scan arm
the_intrabc_128rect_chroma_chunk_walk_stays_per_axis, whose non-vacuity
is measured: re-introducing the square cut fails it. Two new counters
(INTRABC_128RECT_CHROMA_CHUNK_HITS, INTRABC_128RECT_CHUNK_SHAPE) pin
the walk for the probe arms.

4:2:0 is byte-identical (64 >> 1 = 32, 32 << 1 = 64, bw >> 1 = bw/2) and
proven by the tree's own sb128 intrabc-rect gate -- same recipe as the
witness, at yuv420p/yuv420p10le, 30 blocks through the changed walk, all
three arms decode-order pixel-exact. DISCLOSED 4:4:4 behavior change:
at ss (0,0) the walk now codes four TX_32X32 per chunk per plane and the
block's chroma plane block is luma-sized; the parent's was provably wrong
there (chroma_side is the 4:2:0 half-side, so the old 32x32 chunk covered
a quarter of a 64x64 4:4:4 chunk and the origin was off by half a
superblock). No committed 4:4:4 fixture engages this function at all
(ibc128=0 on all six), so the change is landed on the twins' geometry
argument and flagged as needing its own 4:4:4 witness.

Battery green: an_sb128_rect_strip_with_intrabc_decodes_pixel_exact,
an_sb128_screen_stream_with_intrabc_decodes_pixel_exact,
a_444_sb128_root_rect_stream_with_restoration_decodes_pixel_exact,
a_lossless_sb128_rect_intra_block_decodes_sample_exact, the two other
intrabc gates, the bigblock pin gate; intrabc filter 19/0, 422+444
filters 12/0; cargo check --all-targets 0 warnings. The
EC_AV1_ALLOW_422_PROBE bypass is NOT in the commit.
ec-av1: stamp the 128-root tail replay per axisAhmet Kaan Gümüş · 8fb4cf6
ec-av1: stamp the 128-root tail replay per axis

`decode_block_128rect`'s end-of-block replay re-stamped every coded
chroma transform unit with the block's LUMA WIDTH on both axes, while
the walk that read those units stamped them with the per-axis height
(`luma_span_h`). `record_mi_chroma`'s height drives the `left[]` rows,
so wherever the two spans differ the replay reached 8 mi rows past the
block's own extent on its last unit. At 4:2:2 (ss 1,0, luma spans
64x32) that is exactly the shape's tall axis; 4:2:0 (ss 1,1) and 4:4:4
(ss 0,0) have equal spans, so the line is a no-op on every stream this
decoder admits and 4:2:2 -- the one format where they differ -- is
refused by name at the sequence header.

The comment at the site pins that, and `SB128RECT_CHROMA_REPLAY_HITS` /
`SB128RECT_REPLAY_SPAN_MISMATCH_HITS` make the arm and the 4:2:2
signature observable: the 4:4:4 superblock-128 rect gate and the 4:2:0
lossless superblock-128 rect gate now assert the replay fired (32 and
512 chroma units on their pinned streams) with no span mismatch.

Two same-class sites are marked, not fixed: `decode_intrabc_128rect`'s
chroma walk and the tile 128-root writer both hardcode a square
per-axis chroma unit (one TX_32X32 per 64x64 mu chunk at span 64 on
both axes). That is a 4:2:2 port, not a one-line span fix, and it is
unreachable while the format is refused.

2026-09-27

Merge 39f45c31 (422bigblock) — suite green: 422bigblock 624/0Ahmet Kaan Gümüş · 4f37b0b
Merge 39f45c31 (422bigblock) — suite green: 422bigblock 624/0

# Conflicts:
#	crates/ec-av1/src/decode.rs
Merge e93418a9 (ibcskip2) — suite green: ibcskip2-suite GREEN 629/0 23997s on server-3Ahmet Kaan Gümüş · 4df88f7
Merge e93418a9 (ibcskip2) — suite green: ibcskip2-suite GREEN 629/0 23997s on server-3

# Conflicts:
#	crates/ec-av1/src/stream.rs
Merge cc09f390 (444interband) — suite green: 444interband 628/0Ahmet Kaan Gümüş · 64940fd
Merge cc09f390 (444interband) — suite green: 444interband 628/0

# Conflicts:
#	crates/ec-av1/src/stream.rs

2026-09-26

ec-av1: lane-av1-422bigblock -- the 128-root 4:2:2 chroma chunk de-square-cut on the per-axis plane-block model and the reference plane resolution taught the third subsampling shapeAhmet Kaan Gümüş · c74c912
ec-av1: lane-av1-422bigblock -- the 128-root 4:2:2 chroma chunk de-square-cut on the per-axis plane-block model and the reference plane resolution taught the third subsampling shape

Both witnessed defects are fixed and both pinned witnesses decode pixel-exact
vs aomdec on the local EC_AV1_ALLOW_422_PROBE patch-run-restore build.

Defect 1 (422_allskip_2f.obu) does NOT reproduce at this HEAD: the block-half
port already entropy-locks it -- all 20 key-frame coefficient units pair
rng-for-rng with the instrumented oracle and the all-skip inter frame reads
zero units on both sides; the shown frame is byte-identical to aomdec.
Re-verified, no change needed.

Defect 2 (422_sb128_3f.obu, the f2 128x128 PARTITION_NONE non-skip inter
block) had three stacked causes under the historical range-end panic:
decode_inter_block's mu-chunk chroma walk cut each chunk's 32x64 chroma into
a chroma_side-square 64x64 (twice the oracle's 16 units, 8 per plane, 2
stacked per chunk) -- now per-axis with per-unit luma spans through
around_mi_rect and per-axis record_mi_chroma; the unit prediction window was
indexed at the square chroma_side instead of the buffer's own chroma_stride
(the empty-slice densify panic) -- now the real stride while the assembled
grid keeps the square stride the block-tail re-stamp already indexes; and
RefPix::planes guessed every non-4:4:4 reference quarter-height, so inter
prediction off the slot read a clamped row-63 edge over chroma rows 64..127
-- now a three-way length inference (luma-sized, half-width, quarter) that is
exact for every dimension.

Defect 3 (s2.obu crash, via parent IRC): the same class in
decode_block_128rect's intra chroma walk -- square cn, chunk offsets and
clamp strides, square around_mi/tu_reach -- now per-axis; s2 decodes all 16
frames with no panic. Its remaining frame-0 divergence is named in the report
for the owning lane: an entropy desync from coefficient unit 38, a plane-2
TX_4X8 chroma unit at mi(12,24) (oracle 1089 units, ours 541), the sub-8
4:2:2 class, pre-existing -- the base tree panics at frame 0 and never
produced pixels. decode_intrabc_128rect carries the same square-cut walk
unwitnessed; deferred with its unblock named in the report.

4:2:0/4:4:4 identity: the 10-bit inter sequence gate, the two-tile-rows
aomenc gate, the 4:4:4 lossless sb128 gate and both 128-root encoder
round-trip gates are green; t422 frame 0 stays byte-exact vs the instrumented
oracle at PREFILT, POSTDEBLOCK, POSTCDEF and FINAL on all three planes.
Both witnesses are pinned with git add -f and gated by
the_pinned_422_bigblock_witnesses_are_present_and_refuse_by_name (byte pins
plus the unconditional refusal-by-name contract; the decode-level assertions
are probe-measured and reproducible from the report's recipe because
decode_stream still refuses 4:2:2 unconditionally). cargo check: 0 warnings.

2026-09-25

ec-av1: 444 intra-in-inter tail reads its four chroma unitsAhmet Kaan Gümüş · 77c2b16
ec-av1: 444 intra-in-inter tail reads its four chroma units

lane-av1-rect128recon: decode_inter_block's intra tail read ONE whole-plane chroma unit (block-level ctx, no +10 offset, TX_64X64 dqDenom corner) where 4:4:4 codes four plane-major TX_32X32 units. New ss00 arm walks per-unit contexts/stamps/reach. Witness 444_sb128rect_lr_witness.obu all 3 frames FINAL byte-exact vs aomdec and ffmpeg; gate extended take(2)->take(3).
lane-av1-444interband: pin t6 as the 444 inter-strip band gateAhmet Kaan Gümüş · edc72e0
lane-av1-444interband: pin t6 as the 444 inter-strip band gate

Main-review P2: the t6 exactness claim had no in-tree gate. Pin the
fixture (force-added, 32487 bytes, sha256 1e6dd4e05038c8d51e2c8d29f8c337
130c4fea0aed629415535e6e53af9a2c72, FNV1a64 52789f0fce2d1e52 per the
crate's pin convention) and add a_lossless_444_defaultp_inter_strip_
stream_decodes_byte_exact: len+FNV pin, the 1:4 counter delta pinned to
horz4=20 vert4=28 chroma_pairs=0, and the env-conditional aomdec arm
requiring all 6 frames sample-exact (av1llpredgate2's pattern).

Mutation-proven load-bearing: reverting the ss-0 filter makes the gate
fail at the pre-fix Golomb-tail refusal; restored, green -- the
a_lossless battery is now 8 passed 0 failed, cargo check 0 warnings.
ec-av1: lane-av1lrflush -- honest pipeline row-0 witness (r4 review)Ahmet Kaan Gümüş · 4c11025
ec-av1: lane-av1lrflush -- honest pipeline row-0 witness (r4 review)

Replace the gate's LR_STRIPE0_HITS delta with a new process-global
LR_PIPELINE_ROW0 counter bumped by pipe_run_lr's own worker when a plane's
RU row 0 enters the processed range: the thread-local stripe counter was
satisfiable by frame 0's whole-frame LR on the gate's thread alone, so it
witnessed nothing about the pipeline. Expected delta is 5 (frame 1 restores
all three planes, frame 2 all but U). Mutation re-verified: disabling the
RU-row-0 band release now goes red at the row-0 assert itself (0 vs 5);
reverted, green. Report updated. cargo check 0 warnings; both a_444_sb128
gates and the EC_AV1_REQUIRE_AOMENC=1 restoration battery (10/10) green.
ec-av1: lane-av1lrflush -- r2's RU-row-0 flush defect refuted by measurementAhmet Kaan Gümüş · 3274825
ec-av1: lane-av1lrflush -- r2's RU-row-0 flush defect refuted by measurement

The pipelined LR band release provably flushes RU row 0: with the filter
pipeline engaged (EC_AV1_FILTER_THREADS=4, recon serial, pipe_on witnessed
by a new unconditional PIPELINE_TAKEN counter) the witness decodes
byte-identical to the whole-frame path on all three frames, including the
128-root-rect inter frame; r2's stop-with-site was a stage-ladder mixup
(its FINAL numbers are today's POSTCDEF numbers; f2 already diverges at
PREFILT). The real f2 residual re-enters at column 128 inside the inter
64x128 at (128,0) -- the entropy lane's inter rect-strip site, untouched
here. New defect named for its own lane: wavefront recon (recon threads>1)
loses chroma writes at PREFILT on the inter frames (Y exact).

Lands the refutation as a doubly non-vacuous gate (PIPELINE_TAKEN delta +
LR_STRIPE0_HITS delta + pipeline==serial byte-exact + frames 0/1 vs
aomdec and ffmpeg through the pipeline), mutation-verified red by
disabling the RU-row-0 band release. cargo check 0 warnings; restoration
battery (EC_AV1_REQUIRE_AOMENC=1) 10/10 green.
lane-av1-ibcskip2: skipped-intrabc sub8 chroma predicts the DV frame copyAhmet Kaan Gümüş · f97f58c
lane-av1-ibcskip2: skipped-intrabc sub8 chroma predicts the DV frame copy

sub8_leaf_chroma444's skip arm pushed the intra mode (DC for an intrabc
leaf) with zero residual where libaom's av1_build_inter_predictors_sb
runs for an intrabc block regardless of skip: a skipped intrabc leaf's
chroma is the bare frame copy at the DV. Measured fail-before on
ll444_ibc_rect.obu at this HEAD (the leaf8 chroma-extent fix upstream
lets the fixture decode through): luma clean, U 2794 / V 2830 differing
samples across 180 4x4 cells, 175 of them exactly the frame's 150
skipped intrabc leaves, 5 their poisoned neighbours.

Fix: new first arm in sub8_leaf_chroma444 -- when intrabc_dv is Some and
skip, bilinear MC of the current frame's U/V at the DV armed through
set_palette_pred and pushed with ZERO_RESIDUAL (the luma skip arms'
route); the inherited chroma tx_type slot is disarmed unconsumed.
SKIPPED_INTRABC_DV_COPY_HITS pins the route. The 4:2:0 group-tail skip
arms are RESERVED territory: untouched, byte-for-byte, and 4:2:0 call
sites pass intrabc_dv = None so control flow through the edited function
is identical (420-heavy intrabc/lossless/sb128 batteries green).

The ibc444rect gate a_lossless_444_intrabc_rect_leaf_walks_per_4x4_units
pinned the leaf8 palette_window panic b6d4b528 removed and went red at
this HEAD ((339,339) walk census vs the pinned (3,3)); flipped per its
own r1 doc to the full-frame exact aomdec comparison with the census and
==150 DV-copy counter asserts. Mutation check: count-but-predict-flat
arm leaves the gate red at 'aomdec plane U: 2503 samples differ'.

Green: the flipped gate reports frame sample-exact vs oracle aomdec
(339+339 rect walks, 150 skipped-intrabc DV copies, 0 differing samples
on Y/U/V); every intrabc-named gate (17), lossless-named gate (12) and
sb128-named gate (9) passes; cargo check -p ec-av1 --all-targets 0
warnings. Report: lanes/av1ibcskip2.report.md.
lane-av1leaf8oob: derive leaf8 intrabc chroma extent from subsamplingAhmet Kaan Gümüş · 9aeafc1
lane-av1leaf8oob: derive leaf8 intrabc chroma extent from subsampling

decode_leaf8's intrabc frame-copy closure hardcoded the 4:2:0 chroma
halving (vec![0u16; 4 * 4], predict_with_filter at 4, 4) for the U/V
prediction buffers. At 4:4:4 the leaf's own chroma plane block is 8x8,
so the 16-sample override reached PlaneBuf::reconstruct as an 8x8
prediction and indexed prediction[16] of the 16-sample buffer
(len 16, index 16, decode.rs:3774). Size both buffers from
(8 >> ss_x, 8 >> ss_y) instead -- identical at 4:2:0, 8x8 at 4:4:4 --
which also heals the stride-8 palette windows the TX4 4:4:4-lossless
arm cuts from the same buffers.

Gate: stream::tests::an_intrabc_8x8_leaf_chroma_frame_copy_at_444_
decodes_without_the_oob pins the witness-hunt reproducer
(fixtures/444_leaf8_oob.obu, force-added, sha256 72bed279...) with a
red-before run reproducing the exact panic and a leaf8_intrabc_hits
0 -> 4 non-vacuity delta. The gate pins no pixel baseline: the stream
diverges from the oracle aomdec and reads never-written chroma samples
in 458 whole 8x8 blocks (nondeterministic output) -- one pre-existing
decode desync, deferred to a divergence lane, measured in
lanes/av1leaf8oob.report.md. intrabc + lossless filters green, cargo
check 0 warnings.
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.
lane-av1-llinter2: port 13a262a6, firing gate for the 444 lossless inter fixAhmet Kaan Gümüş · 66a6553
lane-av1-llinter2: port 13a262a6, firing gate for the 444 lossless inter fix

Pins the min-partition-64 dodge2 stream (aomenc profile 1, testsrc2
128x96 yuv444p, --lossless=1, --sb-size=64 --min/max-partition-size=64,
6 frames; 37658 bytes, sha256 5a070fa351a3f2109de855234f2b3d0a872970f3e
7f658db21f65c12eeb135b4) and asserts every frame pixel-exact through
both aomdec --rawvideo and ffmpeg (new ffmpeg_decode_sequence_444
helper), with the existing chroma_split_tx_hits counter as non-vacuity.
stream.rs resolved keeping both this lane's key-frame gate and the new
inter gate. Lane report records the same-panic proof and the two
deferrals: decode_rect4_16_strip (owning lane) and the ll444 rect64
64x32 chroma gap (named, non-panic).
lane-av1-llband2: port 01a34bc8, 444 lossless rect-strip chroma unit spanAhmet Kaan Gümüş · f3e2fd4
lane-av1-llband2: port 01a34bc8, 444 lossless rect-strip chroma unit span

decode_rect_split's lossless chroma arm here is the same writer the
reviewed sibling commit 01a34bc8 (edith_codecs-av1llband) fixed for the
av1llsub8 stop at aligned step 19228 (16x8 leaf, U bc=2 br=0, txb_skip
base 1 vs oracle base 0 off a polluted above-band cell). Same base tree
6cf92769, same defect site (hardcoded luma_span=8 at decode.rs:10458).
Ported that fix instead of authoring a second one: unit luma span now
derived from the plane subsampling (span_x=4<<ss_x, span_y=4<<ss_y) for
the cu_mi step, around_mi_rect, tu_reach and the immediate + replayed
record_mi_chroma stamps, plus the rect_split_lossless_chroma444_hits
non-vacuity counter, the a_real_aomenc_lossless_444_key_frame gate over
the pinned fixtures/ll444-lossless-key.obu, and the decode_probe llband
line. Post-images cmp-identical to 01a34bc8; 4:2:0 arithmetic unchanged.

Measured here: 444 lossless key frame 178 -> 0 differing bytes
(sample-exact all planes, counter 160 units on the fixture); 4:2:0
lossless key + inter gates green; cargo check -p ec-av1 --all-targets
0 warnings. decode_rect4_16_strip, read_inter_rect_chroma,
restoration.rs and the intra write-back untouched. Details in
lanes/av1llband2.report.md.
ec-av1: 12-bit single-ref ROTZOOM global-warp witnessAhmet Kaan Gümüş · 0f27d4e
ec-av1: 12-bit single-ref ROTZOOM global-warp witness

The open half from the 12-bit warp lift: single-ref GLOBAL-warp had no
stream of its own (engagement 0 on every prior content). The lever is
composition: rotation + uniform zoom (similarity = ROTZOOM's family) with
the compound tools OFF so a global model can only ride a single-ref
GLOBALMV block, warped-motion OFF so the global arm owns warp_params, and
the 32 partition pin keeping the 8x8 leaf arm out. First recipe: 152
single-ref ROTZOOM global-warp blocks at 12 bits, pixel-exact vs ffmpeg
and vs aomdec.

- decode.rs: ROTZOOM_GM_WARP_HITS counter at decode_inter_block's
  single-ref global-warp arm (vanilla aomenc pins gm search to ROTZOOM,
  so this is the only >TRANSLATION single-ref gm model a real stream
  carries; the 8x8 leaf arm's copy untouched)
- stream.rs: y4m_12bit_rotzoom_gm_source + the witness gate with hard
  rotzoom-gm-warp and zero-compound-warp asserts
- lanes/av1gwarp12.report.md: recipes, oracle evidence, audit

2026-09-24

intra merge: close the ibcrect witness before the TX4 chroma gateAhmet Kaan Gümüş · 2b75a46
intra merge: close the ibcrect witness before the TX4 chroma gate

The two added tests were concatenated without the first function's brace.
Merge lane-av1intrapred: intrabc TX4 chroma predicts from the frame copyAhmet Kaan Gümüş · 7bb8e2c
Merge lane-av1intrapred: intrabc TX4 chroma predicts from the frame copy

Reviewer PASS on face0a6d. Gate re-ran, fixture committed, hits asserted.
stream.rs conflict was two added witnesses at the same insertion point; both kept.
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).
Merge lane-av1mixloss: per-segment lossless gates onto main's qmatrix/ss tree; mixed-lossless witness sample-exact (3 aq arms) + 8 lossless gates greenAhmet Kaan Gümüş · 8a5feaa
Merge lane-av1mixloss: per-segment lossless gates onto main's qmatrix/ss tree; mixed-lossless witness sample-exact (3 aq arms) + 8 lossless gates green

decode.rs conflict composition:
- all lane per-segment !lossless gates kept (10 sites incl. the six
  tx-depth readers); main's fctx-aware smooth_uv_neighbour, qmatrix
  dequant and usize mv_to_q4 kept.
- main's forced-4x4 lossless rewrite was MOVED by the lane to after
  read_intra_mode: at the old top-of-function site lossless(fctx)
  resolved against the PREVIOUS block's segment, so a mixed frame
  forced 4x4 units on lossy blocks (48807-sample frame-0 divergence).
  The merge had kept both copies; the stale copy is dropped and its
  4:4:4 chroma arm is folded into the relocated one.
Merge commit 'c5ae648c' into lane-av1-qm-mergeAhmet Kaan Gümüş · f3c3235
Merge commit 'c5ae648c' into lane-av1-qm-merge

# Conflicts:
#	crates/ec-av1/src/decode.rs
#	crates/ec-av1/src/refusal_inventory.rs
#	crates/ec-av1/src/stream.rs
Merge lane-av1-12bit-warp: 12-bit warp pixel-exactAhmet Kaan Gümüş · bddda13
Merge lane-av1-12bit-warp: 12-bit warp pixel-exact

Reviewer PASS, including the 8x8 compound-warp leaf (hits_8=81).
Local suite 607/6/60; the 6 panics were a missing TMPDIR. Re-ran 6/6 pass.
Inventory conflict with the grain merge: both refusals stay lifted, both comments kept.
Merge lane-av1-12bit-grain: 12-bit film grain pixel-exactAhmet Kaan Gümüş · 8d28480
Merge lane-av1-12bit-grain: 12-bit film grain pixel-exact

Reviewer PASS. Witness byte-exact, grain_hits=2, not a skip.
Local suite 605/6/60; the 6 panics were a missing TMPDIR. Re-ran 6/6 pass.
Merge lane-av1-ibcrect: 128-root intrabc strips pixel-exactAhmet Kaan Gümüş · 64f82ca
Merge lane-av1-ibcrect: 128-root intrabc strips pixel-exact

Reviewer PASS. Witness an_sb128_rect_strip_with_intrabc_decodes_pixel_exact
byte-exact, hits advanced on HORZ, VERT, and 10-bit. The 10-bit comment
that called that arm a coverage gap is corrected in e0bc18bd.
ibcrect: the 10-bit arm engages the 128-strip shapeAhmet Kaan Gümüş · 7c12512
ibcrect: the 10-bit arm engages the 128-strip shape

The witness comment still said aomenc never takes that partition at 10 bit.
The re-run measured intrabc_128rect_hits +15 on arm 3. That is not a coverage gap.
lane-av1-ibcrect: intrabc on 128-root HORZ/VERT strips decodes pixel-exact; per-unit chroma replay after the end-of-block recordAhmet Kaan Gümüş · 6f2548b
lane-av1-ibcrect: intrabc on 128-root HORZ/VERT strips decodes pixel-exact; per-unit chroma replay after the end-of-block record

Lift the refusal "intra block copy on a HORZ/VERT/1:4 rect intra strip
(reconstruction is not ported at this shape)" for its last site, the
128 root: decode_block_128rect now routes use_intrabc blocks to the new
decode_intrabc_128rect (BLOCK_128X64 / BLOCK_64X128), porting libaom
decode_token_recon_block's inter arm at that shape -- the whole-block
prediction, the TX_64X64-rooted var-tx tree per 64x64 mu chunk, chroma
at av1_get_max_uv_txsize(BLOCK_128X64) = TX_32X32 one unit per plane per
chunk (av1_get_tx_type inheritance of the covering luma leaf's coded
tx_type), the lossless TX_4X4-chroma walk, and the skip arm's
av1_reset_entropy_context band reset. refusal_inventory.rs drops the
string and its pairing; decode_probe.rs prints the new counters
(intrabc_128rect, part128 census) and stream.rs exposes
intrabc_128rect_hits().

Root cause of the r2 desync (class override-slot-on-one-arm): the mu
chunk loop stamped each TX_32X32 chroma unit's own entropy state
(av1_set_entropy_contexts), but the end-of-block
record_split_luma_rect_mi re-stamped BOTH chroma planes over the whole
128x64 span with ONE neighbour_state composed from the full grids --
level = the SUM of both 64x64 chunks' units, dc = chunk-0's top-left
sign. The next block read txb_skip off the smeared state ("chunk-1 U
level 1 pollutes block 3's left band"). Fix mirrors the inter-128 path's
proven shape: a mu_chroma flag set on the lossless and TX_32X32 arms,
then after the record a per-unit replay -- slice each chunk's TX_32X32
(TX_4X4 when lossless) grid out of the composed plane grid and
record_mi_chroma it at its own luma-mi origin, in mu-chunk raster order
so a later unit still wins the shared seam cells.

Witness (the name refusal_inventory cites):
an_sb128_rect_strip_with_intrabc_decodes_pixel_exact -- real aomenc
--sb-size=128 --tune-content=screen --enable-intrabc=1 over the
deterministic geq sinusoid sources (gradients ignores its seed, the
flakes were that):
- arm 1 HORZ 384x320 cq32: 5 decode-order frames pixel-exact vs the
  instrumented aomdec, intrabc_128rect_hits +14 (all skip=false 128x64);
- arm 2 VERT 512x512 cq45: 5 frames pixel-exact, +1 (unskipped 64x128
  at mi(64,96));
- arm 3 10-bit decode-only: 5 frames pixel-exact, +15 -- the encoder
  engages the shape at 10 bit here, so the per-depth firing assert was
  NOT needed as a gated gap.
Both orientations hard-assert engagement + exactness; every
decode-order frame (hidden alt-refs included) compared via
decode_all_frames_vs_oracle.

Hunt r2 sweep (fixtures ~/.cache/ibcrect-hunt, Agent11-2): all four
128rect-engaging fixtures E1(hits=3)/E2(14)/E5/E8 decode 0 diff bytes
vs ffmpeg; the five diffing ones (A1/A2/A3/B1/D1) have
intrabc_128rect=0 -- pre-existing rect/leaf8-intrabc and part128-split
paths, not this lane's shape; C1/C2/E3/E4/E6/E7/F1/F2 clean. Sibling
gates green on the merged tree: intrabc family 13 passed, sb128 family
9 passed, lossless/rect_strip 16 passed, 128-none roots 6 passed,
screen/palette/leaf8 18 passed.
lane-av1-mixloss: per-segment lossless table (WIP, not yet sample-exact)Ahmet Kaan Gümüş · 7531ed9
lane-av1-mixloss: per-segment lossless table (WIP, not yet sample-exact)

The mixed-lossless/lossy lift: header lossless[MAX_SEGMENTS] goes into
FrameCtx::lossless_per_seg and decode::lossless() resolves it through the
block's own cur_segment_id (set before every mode/tx symbol by the spec-order
segment_id read). read_tx_size takes libaom's TX_4X4 first line, intrabc
var-tx tree is gated on !lossless, the old by-name refusal is lifted, and the
witness gate is rewritten as a sample-exact witness (WHT-unit counter + ffmpeg
pixel compare).

STATE: 4 frames decode but frame 0 diverges -- Y first diff (40,0), U/V
(16,0) [luma (32,0)]. EC_COEFF rng-chain alignment vs the aom oracle is exact
through oracle TU#18 (mi 4,2, incl. its full eob/level/sign trail); the
divergence starts in the following all_zero reads around blocks mi(6,0)/(6,1)
(the oracle reads 2-TU luma groups there -- sub8/8x4 chroma-ref placement).
Full traces in ~/.cache/tmp-av1mix/ (oraclesteps.txt, oursteps2.txt,
oraclepred2.txt, ourpred2.txt, oracleistep2.txt, ouristep2.txt).
Merge 7f2c85c5 (lane-av1-444 10-bit film fix) into main: keep 12-bit compound MC and 4:4:4 chroma portAhmet Kaan Gümüş · c5a3cd1
Merge 7f2c85c5 (lane-av1-444 10-bit film fix) into main: keep 12-bit compound MC and 4:4:4 chroma port

- decode.rs: unify on the lane's ss-aware mv_to_q4(pos, mv, ss) signature;
  main's luma=false call sites become ss_x(fctx)/ss_y(fctx) (identical math
  for 4:2:0), luma=true becomes 0. Intrabc chroma arm keeps main's structure
  with ss-aware MVs. Compound intermediate calls pass fctx and use the lane's
  chroma_side sizing (444-native, degenerates to 420 behavior).
- encode.rs, refusal_inventory.rs, restoration.rs, stream.rs, tile.rs:
  auto-merged clean by git, both sides retained.
- Verified: a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_decode_pixel_exact
  and a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_reach_decode_pixel_exact
  both PASS (not skipped) on this merge.
Merge lane-av1-12bit and lane-av1-12bit-comp: 12-bit gate and compound liftAhmet Kaan Gümüş · 60c70a0
Merge lane-av1-12bit and lane-av1-12bit-comp: 12-bit gate and compound lift

server-4 suite on the 12-bit commit: 611 passed, 0 failed, 60 ignored.
Local compound suite: 605 passed, 6 failed, 60 ignored. The 6 panics were
fs::write NotFound because TMPDIR did not exist. Re-ran those 6 by full name
with the temp dir present: 6 passed.
lane-av112bitg: lift the 12-bit film grain refusal to the witnessed setAhmet Kaan Gümüş · 04d7851
lane-av112bitg: lift the 12-bit film grain refusal to the witnessed set

aomenc emits film grain at 12 bits on the first try (--film-grain-test=N
maps to film_grain_test_vectors[N-1] with bit_depth overwritten from the
sequence, encoder_utils.c:792); all of vectors 1..8 emit apply_grain=1 on
key and inter frames alike.

- film_grain.rs: no arithmetic change -- every bit-depth-sensitive site
  (grain_range, gauss_sec_shift, scale_lut/LUT expansion, chroma index
  combine and offsets, legal-range clamps, overlap-blend clamp) re-diffed
  against the oracle grain_synthesis.c and already 12-bit exact.
- stream.rs: grain_refusal and its four call sites deleted; the refusal
  gate becomes a_real_aomenc_12bit_film_grain_stream_decodes_pixel_exact
  (--film-grain-test=5, 2 luma + 9 cb + 9 cr points, overlap on, clip on,
  inter frame inheriting via update_grain=0) -- byte-exact vs ffmpeg on
  every plane of both frames, grain_hits asserted. Warp pinned off by
  name: this lane lifts GRAIN only, and the unpinned arm trips the
  sibling's intact 12-bit warp refusal.
- refusal_inventory: 37 -> 36, every proven refusal still names a test.
- Regressions: parent 12-bit key/inter/compound witnesses, five 10-bit
  film gates, warp + screen-content refusals, full inventory module --
  26/26 green, 0 warnings on --all-targets.
lane-av112bitc: lift the 12-bit compound gate to the witnessed setAhmet Kaan Gümüş · 70849e0
lane-av112bitc: lift the 12-bit compound gate to the witnessed set

The parent lifted single-ref 12-bit MC and left compound refused by name.
A reaching stream existed already in its own battery recipe (six frames,
warp off): the pre-fix tree refuses it at the compound mode read, so the
witness is non-vacuous.

- decode.rs: both 12-bit compound refusal sites deleted; nothing else in
  the parse changes (the guard sat after the mode symbol read, before any
  prediction).
- mc.rs: no arithmetic change -- the parent's combines already absorb the
  CONV_BUF gain drop (INTER_POST_ROUND - delta; diffwtd + (bd-8) - delta,
  reconinter.c:307). Stale doc sentence corrected; mc_subpel_hits carries
  the test-only-reader allow so --all-targets checks warning-free.
- refusal_inventory: 38 -> 37, every proven refusal still names a test.
- stream.rs: the refusal gate becomes the two-arm witness
  a_real_aomenc_12bit_compound_inter_sequence_decodes_pixel_exact --
  default recipe (15 compound blocks, 1 diffwtd) and
  --enable-dist-wtd-comp=0 (18 compound, 6 diffwtd), both byte-exact vs
  ffmpeg on every plane, hard-asserting compound/masked/diffwtd counters.
- fixtures: av112bit-compound.obu (a839cff5...),
  av112bit-compound-masked.obu (83625de2...), re-encode cmp clean,
  dump_yuv == ffmpeg whole-stream on all 6 frames.
- warp, grain, screen content stay refused by name; the parent's 12-bit
  key and single-ref inter witnesses and both 10-bit film gates stay
  exact. Wedge-masked compound at 12 bits recorded as an open half
  (unwitnessed; same blend function, bit-depth-free mask codebook).