Commits
2026-09-29
dump_yuv/raw_to_y4m/lr-sgr harness: derive or assert the sample depthAhmet Kaan Gümüş · 46861fe
dump_yuv/raw_to_y4m/lr-sgr harness: derive or assert the sample depth The depth-packing class the prior audit fixed in the test helpers was still live on three non-test surfaces. `examples/dump_yuv.rs` packed every sample as u16 LE unconditionally and its docstring named yuv420p10le as the companion, so an 8-bit stream got a silent 2x-size file whose cmp against aomdec --rawvideo failed on length and read like a decoder bug. The depth now comes from the stream's own parsed sequence header; --depth is an ASSERTED argument that names both depths and the consequence and writes nothing. `scripts/raw_to_y4m.py` framed at w*h*3//2 with no depth anywhere, so a 10-bit stream was cut at half frame length and its trailing partial frame dropped silently. DEPTH is now required and checked against the stdin length. `scripts/lr-sgr-pin-harness.c` read /tmp/lr_full.bin at 1 byte per sample with the depth recorded nowhere; the file length is now the assertion, and a 2x high-bit-depth capture is refused by name. Sweep rows, including the seven sites examined and NOT fixed with reasons, in lanes/av1dumpyuv.report.md.
2026-09-12
ec-vp8 M2 WIP: full key-frame decode pipeline (tokens/intra/transform/loopfilter/reconstruct) — unit tests 100% green, ffmpeg exactness witnesses RED (luma bug)Ahmet Kaan Gümüş · 5b0ae03
ec-vp8 M2 WIP: full key-frame decode pipeline (tokens/intra/transform/loopfilter/reconstruct) — unit tests 100% green, ffmpeg exactness witnesses RED (luma bug) - tokens.rs: RFC 6386 sec 13 coefficient decoding (GetCoeffs port: bands, 3-context model, EOB-skip-after-zero, dequant-on-write, Y2-first block order, dixie skip-MB context reset with Y2 preservation). - modes.rs: all mode/MV trees + tables (kf/inter ymode, bmode, uv, mv_ref, sub_mv_ref, SPLITMV partitions with RFC enum-value indexing). - decode.rs: per-row pipeline (modes -> tokens -> reconstruct), bordered planes (127/129), above-right synthesis, B_PRED interleaved predict+residual (reconstructed-pixel chaining), Y2 WHT DC override, per-MB LF level (dixie double-clamp), LF post-pass via loopfilter. - loopfilter.rs + intra.rs + transform.rs: subagent kernels, rustc-verified vs libvpx C (differential fuzz: 400k IDCT/WHT vectors, 20k intra streams, dixie-table-exact LF limits). - FIX along the way: per-MB-row token left-context reset (dixie reset_row_context) was missing. - tests/keyframe_exact.rs: ffmpeg byte-compare witnesses — FAILING: single 16x16 black q0 frame decodes chroma exact but luma ~99-130 vs 16 (B_PRED MB, coeffs plausible); suspected in luma pred/apply path, NOT yet localized. Debug: EC_VP8_DEBUG=1 dump + examples/dbg_first. - 49 lib + 4 header tests green; zero warnings in lib.