Commits
2026-09-19
vp9444: decode profiles 1/3 (4:4:4/4:2:2/4:4:0) and 12-bitAhmet Kaan Gümüş · f81eeb9
vp9444: decode profiles 1/3 (4:4:4/4:2:2/4:4:0) and 12-bit Thread the frame's subsampling through plane geometry, n4 counts, uv transform size, crop extents and the loop-filter plane dispatch; add the non420 loop filter, the uv_txsize_lookup table and the 18-bit CAT6 token for 12-bit. Byte-exact vs a libvpx 1.15.0 oracle across the full corpus.
Merge lane-vp9-refsetup: intra-only frames + scaled references onto the u16 planesAhmet Kaan Gümüş · c67d95a
Merge lane-vp9-refsetup: intra-only frames + scaled references onto the u16 planes The lane was cut from 79984549 and wrote its scaling against the u8 kernels; main had since absorbed lane-vp9-hbd, which converted every ec-vp9 plane to u16 (`ec_vp9::Sample`) and threaded `bd` through every kernel. Not a mechanical merge — resolved by porting the lane's semantics onto the u16 substrate. - mc.rs (conflicts at the convolve signatures / inter_predictor / the predictor entry): main's u16 kernels + `bd` win as the substrate; the lane's `ScaleFactors`, step-aware `convolve_horiz`/`convolve_vert` (x_step/y_step alongside bd, both defaults `SUBPEL_SHIFTS`), the scaled dispatch in `inter_predictor`, the extracted `convolve_2d` and the scaled block/MV mapping in `build_inter_predictors` are ported onto it. The scale arithmetic is depth-independent and kept verbatim. - decode.rs (conflict was the capability doc only): combined doc; the lane's `decode_intra_only_frame`, `frame_is_intra_only` dispatch, `ScaleFactors` setup + `valid_ref_frame_size` refusal, and the removed size-change refusal kept as written. - The lane's tests compared u16 planes against ffmpeg's u8 rawvideo; they now go through `as u8` like the rest of the crate. Verified on the merged tree: full `cargo test -p ec-vp9` green (0 failed, 0 ignored), warning parity = the 5 pre-existing, and the 10-stream corpus re-swept from this build byte-identical vs libvpx 1.15.0 (8-bit, 10-bit, odd, scaled-reference, intra-only).
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.
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-18
vp9: decode inter-frame pixels byte-exactly (MC, residual, loop filter, ref slots)Ahmet Kaan Gümüş · 83125b4
vp9: decode inter-frame pixels byte-exactly (MC, residual, loop filter, ref slots) decode() no longer refuses inter frames. New mc.rs ports libvpx's inter predictor: umv-border MV clamping, per-block reference border extension (build_mc_border), the direct path window read, the four 8-tap/bilinear convolve kernels, compound averaging and average_split_mvs. decode.rs gains the prediction/residual/reconstruction driver, an 8-slot reference DPB that stores each frame at its 64-aligned extent after the loop filter, and the skip/skip_inter loop-filter mask rules. Byte-exact against a locally built libvpx 1.15 oracle: the 1080p single-tile inter stream (3/3 frames), both static fixture GOPs (48 frames at 1080p and 2160p), the altref stream (60/60) and a two-tile-column stream (3/3). Loop filter verified separately by per-superblock mask identity (0 of 510 SBs differ) and by edge-set containment. A 120-frame 60fps stream decodes identically through frame 71 and hits an open entropy desync at frame 72, filed in lanes/vp9pix.report.md with its disposition. Also fixes a two-entry mv_ref_list overflow in the merged inter syntax path: the successful second candidate add inside the different-reference loop is a goto Done in libvpx and must leave the loop; without the break a later candidate wrote past the list (the altref fixture panicked at frame 14). Refusals kept/added by name: intra-only, other profiles, other subsamplings, a reference whose coded size differs from the current frame, odd dimensions.