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-12
ec-vp8 perf: per-bool env lookups were 46% of decode profileAhmet Kaan Gümüş · 1a98a0f
ec-vp8 perf: per-bool env lookups were 46% of decode profile std::env::var_os ran per bool read (bool.rs read_bool) and per MB (decode.rs reconstruct) — each call takes std's ENV lock and allocates; perf showed 46% of samples in getenv/__strlen. OnceLock::get_or_init was no better (closure re-entry still hit the env path). Now both flags resolve once per process into an AtomicU8 (relaxed load-only hot path). Before -> after (decode MP/s): gop-160x96 32->82, clip-obs 51->122, altref 16->55, gop-1280x720 137->211, big-obs-2560x1320 121->175 (35.7 -> 51.9 fps). Full witness suite byte-exact green.
ec-vp8 M3 WIP: full inter-frame pipeline decodes; walled on one mode-record divergenceAhmet Kaan Gümüş · 10ef9be
ec-vp8 M3 WIP: full inter-frame pipeline decodes; walled on one mode-record divergence Lands: inter mode/MV parse (prob_intra/last/gf, mv_ref census port of libvpx read_mb_modes_mv incl. the dead CNT_SPLITMV merge, SPLITMV with mbsplit leader/fill tables, NEAREST/NEAR clamps, NEW/SPLIT best-MV deltas), chroma MV derivation (round-half-away mv/2 whole-MB; sum/8 SPLITMV), motion compensation in new mc.rs (6-tap luma + bilinear chroma + 32px border extension; 6 unit tests plus 31,000-case differential fuzz vs verbatim libvpx filter.c/extend.c - byte-identical; chroma whole-MB path re-clamps unconditionally per reconinter.c:336), reference buffer management in libvpx swap_frame_buffers order (copy_arf, copy_gf, refresh_gf, refresh_arf, refresh_last), entropy save/restore gated on refresh_entropy (probs only, like libvpx fc/lfc), persisted segment map, inter LF levels with ref/mode deltas and skip_lf inner-edge rule, EC_VP8_TRACE B-line per-read tracing in BoolDecoder mirroring scripts/vp8ref_model.py. State: inter frames decode end-to-end with no desync error; gop frame 1 matches ffmpeg 51% (frame 0 100%), diverging from MB(0,5) rightward - one remaining mode-record/token divergence. Next: diff the B streams (python3 scripts/vp8ref_model.py vs EC_VP8_TRACE=1) to localize it; the python model still needs the inter-frame header/mode extension. Suite: 55 lib (incl. 6 mc) + 4 header_parse + webp witness green; keyframe_exact 1/3 (2 cases need the M3 fix to pass).
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.
ec-vp8 M1: bool arithmetic decoder, frame tag + full first-partition header parsing, RFC-transcribed tablesAhmet Kaan Gümüş · 5233d88
ec-vp8 M1: bool arithmetic decoder, frame tag + full first-partition header parsing, RFC-transcribed tables - bool.rs: RFC 6386 section 7.3 decoder (read_bool/literal/signed_literal/ maybe_signed/prob7/tree incl. the EOB-skipping token-tree form), plus a test-only reference bool encoder; round-trip tests at probability extremes, long LCG streams, literals to 19 bits, tree paths. - frame.rs: 3-byte LE frame tag, key-frame start code + dimensions/scaling, MB geometry. - header.rs: complete partition-1 header in dixie field order — colour space/clamping, segmentation (with cross-frame state), loop filter type/level/sharpness/deltas, token partition size table, quant indices, reference refresh/copies/sign-bias, coefficient probability updates, mb_no_skip_coeff, inter prob_intra/last/gf + ymode/uv/MV probability updates. PersistedState carries entropy/segmentation/filter deltas across frames and resets at key frames. - tables.rs: GENERATED verbatim from the RFC text by scripts/extract_vp8_tables.py (element counts asserted): default + update coefficient probs, kf_bmode_prob, coeff_bands, dequant lookups, Pcat1-6 (sentinel kept), default + update MV probs. - scripts/gen_vp8_fixtures.sh: libvpx-encoded IVF witnesses (6 sizes/q, 60-frame GOP, 8-token-partition vector via local vpxenc, WebP still). - Witness: real vpxenc/ffmpeg-produced streams parse with exact tiling of partition sizes, correct dims (incl. 76x52 non-MB-aligned), 8 partitions; VP8-in-WebP still decodes its header. 12 tests green, zero warnings.