forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to scripts/lr-sgr-pin-harness.cClear filter

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-08-30

instrument(av1): SGR real per-tap A/B ground truth + LR gate stream pinAhmet Kaan Gümüş · fb35afc
instrument(av1): SGR real per-tap A/B ground truth + LR gate stream pin

Adds rung 6 to instrument-aom-oracle.sh: drops `static` from libaom's
calculate_intermediate_result (restoration.c) so an external harness can
call it directly. Extends lr-sgr-pin-harness.c to call it with the same
uint8->int32 border-extend copy av1_selfguided_restoration_c does, and
print the real per-tap A/B for all 9 dense-arm neighbours of the r6
failing pixel (row=61,col=6, V plane, seed 46, ep=6/xqd=[-16,-32]).

Result: real libaom's "u" tap (physical row 60) is (253,454), not the
(254,303) r6 recorded -- but this round's live EC_LR_SAMPLE_DUMP trace
(temporary, reverted) shows our own lr_sample already returns the
correct raw bytes (111/154/194 at that column across the 3 box rows,
matching the harness's own /tmp/lr_full.bin buffer bit for bit), and an
independent Python replica of compute_ab's box-sum/z/A/B formula fed
those exact 9 bytes reproduces libaom's (253,454) exactly. So neither
the samples nor the formula, evaluated in isolation, are wrong -- r6's
(254,303) could not be reproduced this round and needs re-derivation
from a uniquely-identified call, not a coordinate-matched one (multiple
frames/seeds share v_start=60).

Also wires EC_AV1_GATE_DUMP into
a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly
(mirroring the masked-compound gate's existing pattern) so a mismatching
seed writes its stream for direct, unambiguous re-decode -- ran once
this round, pinned seed 46's stream to fixtures/lr-sgr-r7.obu (gitignored,
not in this commit).
docs(av1): lane-lr r7 charter; commit r6's SGR pin harness out of the reapable scratchpadAhmet Kaan Gümüş · e33c385
docs(av1): lane-lr r7 charter; commit r6's SGR pin harness out of the reapable scratchpad