forge
Explore
Log in

Don't you dare go Hollow

Commits

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

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