Commits
2026-09-19
vp9: decode profile 2 (10-bit 4:2:0) byte-exact vs libvpx 1.15Ahmet Kaan Gümüş · 9025ed3
vp9: decode profile 2 (10-bit 4:2:0) byte-exact vs libvpx 1.15 Store every plane as u16 and thread the frame's bd through the pixel kernels (clip_pixel_bd, bd-scaled loop-filter thresholds, base = 128 << (bd-8) intra fills, highbd idct guard), so one decode walk serves 8- and 10-bit. The one depth-dependent bitstream element is the CAT6 coefficient token: 14 bits/vp9_cat6_prob at 8-bit, 16 bits/ vp9_cat6_prob_high12 + 2 at 10/12-bit -- ported. Profile gate now accepts 0 and 2; profiles 1/3 and 12-bit are refused by name; non-4:2:0 subsampling stays refused. Byte-exact vs libvpx 1.15 on both 10-bit corpus streams (48 and 120 frames) and the whole 8-bit regression corpus. cargo test -p ec-vp9 green; warning parity (the 5 pre-existing). See lanes/vp9hbd.report.md.
2026-09-17
vp9kf: tile-ROW streams decode byte-exact -- MI-aligned extents, frame-scoped contextsAhmet Kaan Gümüş · 332f251
vp9kf: tile-ROW streams decode byte-exact -- MI-aligned extents, frame-scoped contexts Tile-row streams (log2_tile_rows > 0) now decode byte-exact: tr.ivf and tr2.ivf 3 of 3 frames, previously 0 of 3. Seven fixes, each ported from libvpx with its line: 1. tx probabilities come from the frame's FrameContext tables (get_tx_probs, vp9_pred_common.h:173), not the TX_* const defaults. 2. the tx-size context carries libvpx's "if (!has_above) above_ctx = left_ctx" fallback (vp9_pred_common.h:156-170). 3. above availability is gated on the FRAME (mi_row != 0, set_mi_row_col vp9_onyxc_int.h:430), not on the tile-row start; tile_row_start is gone from the decode chain. 4. ectx/mi are frame-scoped: allocated once per frame, above cleared once, left per SB row (vp9_decodeframe.c:2079-2083 / :2260-2261). 5. the above entropy/partition arrays are sized mi_cols_aligned_to_sb, closing a pre-existing OOB panic at widths not a multiple of 8 (decode.rs:767 on a 1366-wide frame; the baseline panicked too). 6. intra edge extension is a branch-for-branch port of vp9_reconintra.c:300-394: the extend-vs-direct decision comes from mb_to_bottom_edge/mb_to_right_edge, the extension length from the MI-ALIGNED buffer extent (vp9_alloc_frame_buffer sets y_width = (width+7)&~7 -- yv12config.c:173-174,250-251), and the arithmetic is isize, closing an "attempt to subtract with overflow" at intra.rs:72 on 320x242. 7. the chroma loop filter takes no plane-width bound: all five uv_w column clamps are gone, matching vp9_filter_block_plane_ss11's unclamped MI_BLOCK_SIZE>>1 groups (vp9_loopfilter.c:1394, :313-399) which write into the padded plane. At 1366 wide the last chroma group overhangs the visible plane by 4, so every clamped edge was dropped: luma stayed byte-exact while chroma was off by one (U 4/5/6, V 37/33/16). Matrix (scratch_realsweep, 3 frames each): h242, h1082, h1082tr, h1082trc, tr, tr2, t1080, t1080-single, single1080, w1366, w1366tc and the 320x240 tile0 sweep are all byte-exact. Still unexercised: odd width x odd height x tile ROWS -- the encoder declines -tile-rows at those heights. Verified by an independent reviewer with revert-alone discrimination: a visible-length extent fails h242/h1082, a 64-aligned extent fails the 1080p fixtures, the MI-aligned extent passes all; restoring the uv_w clamps reproduces the chroma-only residue exactly. cargo test -p ec-vp9 is green and cargo check prints the 5 baseline warnings.
2026-09-14
vp9kf: d153 row, idct32 stage 8, flat2 q0, chroma tx-grid — Y byte-exactAhmet Kaan Gümüş · 82ca712
vp9kf: d153 row, idct32 stage 8, flat2 q0, chroma tx-grid — Y byte-exact generic d153 no longer skips row 1; idct32 runs vpx stage 8; flat_mask5 compares q4..q7 to q0 (not p0). Pre-LF Y matches libvpx; post-LF Y matches ffmpeg. Chroma still 16 U + 20 V off (HANDOFF #6). Not pushed.
vp9kf: sub8x8 mode-ctx order, D117 anchor, 4x4 specialized predictors, have_right, ctx span read, SB walk units, loop-filter rewrite; lossless 4096/4096 (HANDOFF #4)Ahmet Kaan Gümüş · 7ed859cBrowse files
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