Commits
2026-09-19
ec-vp9: decode intra-only frames and scaled references, byte-exact vs libvpxAhmet Kaan Gümüş · 2251b71
ec-vp9: decode intra-only frames and scaled references, byte-exact vs libvpx Two header/frame-setup refusals replaced with the libvpx 1.15.0 behaviour: * intra-only frames (an INTER frame with intra_only=1, show_frame=0) decode through the keyframe body, but load their frame context from storage (reset only for reset_frame_context 2/3 or error-resilient mode), read the const vp9_kf_partition_probs, and refresh only the slots their refresh_frame_flags names. * a reference whose coded size differs from the current frame is SCALED during prediction: ScaleFactors (vp9_setup_scale_factors_for_frame / vp9_scale_mv), the sf->predict kernel selection and the step-aware convolve walk. Witnesses (committed fixtures, generators in lanes/vp9refsetup/) are byte-identical to libvpx; the whole 8-bit regression corpus is unchanged (including the 120-frame 60fps stream and the 2160p stream). The odd reference case (1279x719 -> 640x360) is covered too. Tests fail pre-fix with the named refusals.
2026-09-17
vp9kf: VP9 inter-frame syntax parses block-for-block identical to libvpxAhmet Kaan Gümüş · 834983e
vp9kf: VP9 inter-frame syntax parses block-for-block identical to libvpx
Slice 1 of inter-frame support: an inter frame is now parsed end to end
(compressed header, mode info, MVs, references) and every block matches
libvpx 1.15's own instrumented decoder on the test stream - frame 1
1213/1213, frame 2 1851/1851 on row/col/bsize/tx/mode/skip/seg/ref0/ref1/
interp/MV - with the frame-1 compressed header bit-identical (1200/1200
bools) and frame 2 likewise.
Causes closed while getting there, each ported from libvpx with its line:
update_mv_probs is MV_UPDATE_PROB + seven literal bits + (lit<<1)|1, NOT
diff_update_prob; keyframe partition probs are a const selected by
get_partition_probs and must never be stored in a FrameContext (stored
contexts are new(false), the active keyframe copy new(true) + a
reset_inter_partition before the save); vp9_switchable_interp_tree is
{0,2,-1,-2} (libvpx's EIGHTTAP/EIGHTTAP_SMOOTH/EIGHTTAP_SHARP #defines,
not the spec's naming order); mv_ref_blocks' POSITION is {row,col} and one
accessor added .0 to the column; clamp_mv_ref's edge arithmetic is signed
(usize underflowed on a frame's partial last row) and clamps the COLUMN
with the left/right edges and the ROW with the top/bottom ones; and the
mode-derived candidate-count override sits AFTER libvpx's Done: label, so
an early exit skips it - reproduced bug-for-bug.
This slice is SYNTAX ONLY: decode() still refuses inter frames by name and
no inter pixel is produced. The keyframe path still decodes to pixels and
keyframe_exact is green.
Verified by an independent reviewer in three passes (structural claims
re-derived from libvpx source, the identity comparison re-implemented
independently, a dropped-field audit of the two stale fields, and
delta re-verification of the clamp/error-propagation/gate fixes).2026-09-14
vp9kf: libvpx-1.15 marker bit, lossless ONLY_4X4 header, tile-info rows/cols bounds, tx-row left-ctx fix; oracle-diff HANDOFF #3Ahmet Kaan Gümüş · 76c8a77Browse files
vp9kf: entropy round 2 — trees, kf partition probs, 8x8 partition symbol, tile-info boundsAhmet Kaan Gümüş · c445467
vp9kf: entropy round 2 — trees, kf partition probs, 8x8 partition symbol, tile-info bounds - INTRA_MODE_TREE leaf order fixed to libvpx vp9_intra_mode_tree; the invented spec-doc chain UV_MODE_TREE deleted (v1.15 decodes uv with the same tree, decodemv.c:232). SEGMENT_TREE corrected to vp9_seg_common.c:58 balanced form. - Keyframes now code partitions with vp9_kf_partition_probs (added; spec 7.2), not the inter defaults. FrameContext::new(key_frame). - The 8x8-level partition symbol is read (decodeframe.c:1188 runs before the !hbs branch); sub-8x8 shapes occupy the full 8x8 mi area (luma 2x2 4x4 TUs, chroma 4x4 once per 8x8). bsize_of_n4 mapping fixed (2->16x16, 1->8x8). Duplicate kf_uv_probs removed from modes.rs (kept in tables). - ec-vp9-syntax DEVIATION (flagged for merge review): tile_cols_log2_bounds returned max-1, skipping the terminating tile-cols increment bit; bounds are now inclusive and rows mirrors vp9_get_tile_n_bits. Test re-pinned to libvpx/spec values (1920 -> (0,3), 3840 -> (0,4), 1 -> (0,1)). - keyframes_match_ffmpeg still FAILING (ours 120 vs 72 at pixel (0,0); was 133). inter_is_named_unsupported PASSES as a named Error. Debug traces (TILE/B/C/RC, EC_VP9_FORCE_TAIL) and scratch_* harnesses kept for the next round; see lanes/vp9kf.report.md HANDOFF #2.
vp9kf: ec-vp9 first lane scaffold — full keyframe pipeline (bool, header, tiles, modes, intra, tokens, transforms, loopfilter, stream) + extracted libvpx tables; bool roundtrips 7/7, profile-1 4:4:4 refusal pinned; byte-exactness vs ffmpeg still off (uv-mode entropy divergence, see lanes/vp9kf.report.md HANDOFF)Ahmet Kaan Gümüş · aee9373Browse files