Commits
2026-09-12
ec-vp8: review fixes — full fixture provenance + real hidden-frame coverageAhmet Kaan Gümüş · 733f426
ec-vp8: review fixes — full fixture provenance + real hidden-frame coverage P1: gen_vp8_fixtures.sh now generates ALL 12 IVF fixtures. The two ad-hoc vectors are recorded reproducible encodes (kf-16x16-black-q0: color=black 16x16 q0; clip-obs-320x192: testsrc2 320x192 q28) and altref-160x96 moved to vpxenc --auto-alt-ref=1 --passes=2 (one-pass CQ/VBR never inserts hidden altrefs for this content; two-pass vbr does). Regenerating the 9 pre-existing fixtures reproduces them byte-identical (sha256 verified). P2: the new altref-160x96 contains 6 HIDDEN frames (show_frame=0) at decode indices 1,17,33,49,65,81 of 96 total. Coverage: the interframe witness censuses the tags and refuses a shown-only stream (>=6 gate); compare() now walks every frame, requiring Ok(None) exactly on hidden frames and byte-exact planes on shown ones (ffmpeg output indexed by shown position); stream_exact's hidden_frames_update_references_and_ produce_no_picture proves decode returns None for hidden frames while the frame AFTER the first hidden altref is byte-exact vs ffmpeg — the hidden reference is live. Decoder needed NO changes: hidden frames were already handled correctly; the gap was coverage only. Suite: 55 lib + 4 header_parse + 4 keyframe_exact + 3 stream_exact, zero rustc warnings.
lanes: vp8.report.md — M3 state after census fix and clamp fixesAhmet Kaan Gümüş · 12884f5Browse files
lanes: vp8.report.md — M3 divergence localized to the r2c7 census countAhmet Kaan Gümüş · deb802dBrowse files
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: fix M2 token walk — ONE path missed sign/EOB; frame-0 byte-exact on all kf fixturesAhmet Kaan Gümüş · dd7b5a6
ec-vp8: fix M2 token walk — ONE path missed sign/EOB; frame-0 byte-exact on all kf fixtures get_coeffs' ONE-token path (p[2] branch) had the sign read, coefficient write, and EOB-after-nonzero check nested inside the magnitude branch only. The reference walk (libvpx detokenize.c GetCoeffs / RFC 6386 section 13.2) shares that tail between the ONE and magnitude paths. A ONE token therefore skipped the sign read and EOB check and re-entered the walk at the ZERO node — read counts stayed in lockstep (so stream positions matched) while the decoded stream diverged from the first ONE token, which is why the lossless single-MB fixture passed and busy fixtures split ~28 reads into block 0. Evidence: - EC_VP8_TRACE G-lines (n, band, ctx, prob, bit) vs scripts/vp8ref_model.py on kf-160x96-q20.ivf: 19131 decisions, 0 diffs (model also fixed: persistent per-partition decoders, G tracing with consulted prob + decoded bit). - examples/dump_frame frame 0 vs 'ffmpeg -frames:v 1': byte-exact on all 7 kf fixtures + mparts-160x96 kf0. - cargo test -p ec-vp8: unit 49 + header_parse 4 + webp green; keyframe_exact 1/3 (the 2 red cases decode every frame of each fixture and complete when M3 inter frames land).
lanes: vp8.report.md — divergence refined to MB(0,0) block 0 token walk, ~28 reads inAhmet Kaan Gümüş · dacc91cBrowse files