forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on ddf43e86ffb3d750efc0cd9c77848fd97ff0bf3dFiltered to scripts/gen_vp8_fixtures.shClear filter

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.
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.