forge
Explore
Log in

Don't you dare go Hollow

Commits

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

2026-09-20

lanes: record merge-side follow-ups for av1mono (merge 7806fd0d)Ahmet Kaan Gümüş · 5f21de3
lanes: record merge-side follow-ups for av1mono (merge 7806fd0d)

Pin-drop resolution, merged-tree gate numbers (592/0/60, 0 warnings), the
probe spot-checks, and the worktree/target cleanup.

2026-09-19

av1: monochrome luma byte-exact (salvage lane-av1-mono)Ahmet Kaan Gümüş · 672ceb9
av1: monochrome luma byte-exact (salvage lane-av1-mono)

Salvage the previous continuation's uncommitted work. The dirty tree WAS the
fix, buried under ~24k lines of omp edit-tool format-on-save rustfmt churn
(decode.rs read 17300 changed lines). Recovered the semantic-only delta with
the rustfmt-image oracle: S = diff(rustfmt(7f4e8301), W), applied to the
committed file, proven equivalent by rustfmt(HEAD + S) == W byte-for-byte.
Result: 19 hunks, 211 insertions / 19 deletions; decoded call sites
hand-fixed for indentation the fuzzy apply left behind.

Root cause of the mono luma mismatch: decode_intra_sub8_leaf published the
palette neighbour band only on the chroma-reference path, AFTER the
`if !has_chroma` early-out. On a monochrome frame EVERY sub-8x8 leaf takes
that early-out, so the band kept an earlier palette block's size and the next
block read palette_y_mode off CDF row 1 where libaom reads row 0 (measured:
gray 320x240, decode-order frame 33, mi(42,50)). The publish is not chroma
work and now runs before the return, matching libaom, which clears the band
in every cell of such a group whatever the plane count.

Second class closed: the rect-strip paths (decode_block_rect, decode_leaf_rect,
decode_block_rect4, decode_rect4_16_strip, decode_block_rect64) call
read_coeffs_rect on planes 1/2 DIRECTLY, bypassing read_plane's own mono gate,
so a mono frame consumed chroma coefficient symbols libaom never coded. New
read_chroma_coeffs_rect gates those 8 call sites.

Witnesses (luma byte-exact vs ffmpeg's own decode): gray testsrc2 320x240
60-frame key frame; the same recipe at 120 frames with inter frames; and the
committed av1-monochrome.ivf (now 60/60 -- its named intrabc-rect refusal was
itself a symptom of the desync, so it is gone). New test
a_real_libaom_monochrome_key_frame_decodes_pixel_exact is the inverse of the
pilot's pinning gate (on main since d71084ae); a merge must drop that pin.

Regression: 8 of 9 av1 corpus fixtures bit-identical to lane base 7f4e8301
(only av1-monochrome moves); all 13 film windows byte-identical to the
pilot's ffmpeg references; a_real_libaom_monochrome... suite 592 passed /
0 failed / 60 ignored (6724 s); check -p ec-av1 --all-targets rc 0, 0 warnings.