Commits
2026-10-23
Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23) On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local repository with all of its history. This commit restores the working tree from the newest surviving copy, the host-c server lane mirror. That mirror matches local main as of the testcut Phase 2 reports, including the tool cache, the nextest fast profile and changed-crates.sh. The history before this commit was not recovered.
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-28
audit: assert equal lengths before every ours-vs-oracle walk (68 sites)Ahmet Kaan Gümüş · b7b2e07
audit: assert equal lengths before every ours-vs-oracle walk (68 sites)
The prefix-truncation false PASS: an ours-vs-oracle compare that walks
`got.iter().zip(want)` without first asserting equal lengths reports EXACT
for any defect outside the compared prefix, because zip stops at the shorter
operand. A frame-count assert says nothing about a plane's byte length.
Audited 124 sites across ec-av1/ec-h264/ec-h265/ec-vp9/ec-alac/ec-flac/
ec-aac/ec-ac3 and tools/oracle: 68 UNSAFE, 38 SAFE, 18 N/A. 68 fixed by
inserting the length assert AFTER the existing diff assert, on the same
buffers, so a real divergence still fails for the same reason with the same
message and only the previously-silent short-plane case becomes loud. The
canonical shape already in the tree is decode_all_frames_vs_oracle.
encode.rs::first_difference returned None ("exact") for any length
mismatch; it now returns Some, copying first_plane_mismatch. encode.rs's
nine `encoded.frames` vs ffmpeg loops and two GOP zips gained the count
assert they never had. ec-h264's round_trip rejected only an over-long
frame, so a short one zipped to zero and four call sites printed
"bit-exact".
Truthfulness: a comment above stream.rs:29006 claimed the gate compared
every decode-order frame when it compares the shown ones; the pinned-
scratch loop truncated a three-way .min() silently; a message called a
shown-frame count "decode-order"; two frame-count asserts were tautological
and are now a comment; examples/dump_yuv.rs wears a decode-index filename
on a display index.
Red/green per crate in lanes/av1cmpaudit.report.md. Not pushed.2026-09-02
fix(av1): a 16x8/8x16 intra leaf reads tx_size_cdf[cat 1], not cat 2 -- wrong-row tx_depth desynced every 16-level rect strip under --enable-tx-size-searchAhmet Kaan Gümüş · 5f35cce
fix(av1): a 16x8/8x16 intra leaf reads tx_size_cdf[cat 1], not cat 2 -- wrong-row tx_depth desynced every 16-level rect strip under --enable-tx-size-search lane-rect1d r1. `decode_leaf_rect` read its `tx_depth` symbol from `cdfs.tx_size_cat2`, the table the 32-level strips (BLOCK_32X16/16X32) use. libaom's `bsize_to_tx_size_cat` reads `bsize_to_tx_size_depth_table` and subtracts one: BLOCK_16X8/8X16 (and the 1:4 BLOCK_16X4/4X16 this function also decodes) sit at depth 2, so they read `tx_size_cdf[1]` -- the same table a 16x16 square block reads. Both tables carry three symbols, so the wrong one still decodes a plausible depth, from the wrong probabilities: the range diverges silently at the first such leaf and every later symbol in the tile comes out of the wrong place. Found by copying lane-rectclass's 1D-tx-class gate onto this tree (main's `read_coeffs_rect` no longer refuses a 1D class, so the gate now DECODES those TUs and the merge exposed the mismatch). Bisection: pinned stream (sha256 5b3c8fc9... twice), coefficient range ladder ours vs instrumented aomdec matched for 105 transform units and diverged at the 106th; the mode ladder matched through `uv_mode` (rng 50640 both) and the next symbol was aomdec's `name=tx_depth val=0 ctx=2 cat=1 rng=60682` against our cat-2 read. Block: mi_row=24 mi_col=44, BLOCK_16X8, 10-bit seed 42. Gate: `a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact` (copied from lane-rectclass ef7a476, minus its two now-nonexistent refusal strings and the vacuous `class1_refusals == 0` assert), plus a new `rect_class1_hits` counter so the gate pins the 1D class on a RECTANGULAR transform rather than settling for the square reader's own 1D types: 12/12 pixel-exact (6 of them 10-bit), 219 rect coefficient TUs, 10 of them a 1D tx class. `enable-flip-idtx` leaves the 10-bit coverage-hole list. `examples/dump_yuv.rs`: raw u16 plane dump -- both prefilt dumps narrow to `u8`, which is blind to exactly this defect at 10 bits.