Commits
Commits on
cd61dc00762fbbffd07101cda5eb3c4e12923875Filtered to crates/ec-av1/src/mvstack.rsClear filter2026-08-27
fix(av1): mvstack extended row/col scan, intra-aware coverage; enable 16x16 inter leavesAhmet Kaan Gümüş · b26ee9f
fix(av1): mvstack extended row/col scan, intra-aware coverage; enable 16x16 inter leaves
Ports spec 7.10.2.4's extended row/col scan (libaom scan_row_mbmi/
scan_col_mbmi's idx=2..MVREF_ROW_COLS positions), invisible at pure
8-mi geometry because the immediate scan's own processed_rows/cols
coverage already reaches as far -- but only once that coverage counts
every *coded* neighbour cell, intra or inter, the way libaom's
processed_rows update sits outside add_ref_mv_candidate's ref-frame
match. The straddle-test attempt this round started from computed
coverage only from ref-matching (inter) cells, so an intra neighbour
above an 8-mi query silently un-suppressed the extended scan -- a real
8-mi behavior change, caught by two new differential tests
(extended_{row,col}_scan_is_a_no_op_at_8mi_geometry_even_behind_an_intra_neighbour)
that place a distinctively-MV'd tracer candidate at the extended
offsets and assert it never gets picked up. MiGrid now records intra
cells (encode.rs/tile.rs's else branches) so mvstack sees them.
With the no-op proven, lifts the `false &&` gate on 16x16-leaf
NEARESTMV (encode.rs:1231, wired r1, gated since dead code never
touched write_inter_frame_leaf's real symbol chain): full suite
130+3 new = 133/0/9, straddle and real_clip both green with the gate
live. The 640x384 real-clip fixture tiles exactly into 32x32
quadrants (no true-edge straddle), so its numbers are unchanged
(45.41 dB / 69861 bytes) -- the gate's leaf path is unexercised there;
the straddle test is what proves it live.2026-08-26
fix(av1): new_mv_ctx case-0 takes the corner-derived ref_match_count bitAhmet Kaan Gümüş · d5bf53b
fix(av1): new_mv_ctx case-0 takes the corner-derived ref_match_count bit Real-motion content desynced from inter frame 3-4 at aligned sizes: a block whose only neighbour match is the diagonal corner has nearest_match == 0 but ref_match_count == 1, and libaom sets mode_context |= 1 there (mvref_common.c ~621) while our arm hardcoded 0 — wrong NEWMV CDF row, rng drift, decoder rejects the tile. Sibling of the ref_mv_ctx corner fix; zero_mv_ctx checked, no such dependency. New test pins the corner-only-match shape. Both I8 failing clips re-encode to 10/10 clean aomdec+ffmpeg decodes, byte-exact vs reconstruction.
Merge branch 'lane-av1-size': pad-to-32 with cropped reconstructionsAhmet Kaan Gümüş · 77b8ab9
Merge branch 'lane-av1-size': pad-to-32 with cropped reconstructions The merge exposed a latent mvstack defect the two lanes could only trip together: real inter residuals (lane-av1-desync) on padded content (lane-av1-size) hit a block whose ref_mv context libaom derives from a diagonal corner probe our reduction never ran. Folded into this merge: - port libaom's scan_blk_mbmi(-1,-1) corner probe; ref_mv_ctx now splits (nearest_match, ref_match_count) exactly as mvref_common.c does - fix the REF_CAT_LEVEL DRL boost comparison (was trivially true); weights are boosted in place before the corner probe can add an unboosted entry - SymbolEncoder::tell(), the od_ec_enc_tell mirror the hunt relied on Gate: cargo test -p ec-av1 --release = 116 passed, 5 ignored.
fix(av1): exact spec 7.10.2.8 mvstack contexts, 7.10.2.14 MV clampingAhmet Kaan Gümüş · 23d548c
fix(av1): exact spec 7.10.2.8 mvstack contexts, 7.10.2.14 MV clamping Replaces the documented monotonic stand-in NewMvContext/RefMvContext/ ZeroMvContext/DrlCtx with an exact port of libaom's av1_find_mv_stack mode_context switch and av1_drl_ctx (mvref_common.c/.h), which collapse to closed forms given this module's already-reduced scan (no extended row/col offsets, no temporal MV projection): ref_match_count == nearest_match always, so drl_ctx is always 0 (every candidate gets the REF_CAT_LEVEL nearest-bonus), and zero_mv_ctx is always 0 (GLOBALMV_OFFSET is only ever set by temporal MV projection). Adds MiInfo::is_new_mv so new_mv_ctx can read whether a neighbour was itself coded NEWMV, matching libaom's newmv_count. Adds clamp_mv_ref (7.10.2.14) applied to nearest_mv/near_mv/pred_mv, requiring find_mv_stack's new mi_cols/mi_rows params. Adds single_ref_ctx: the LAST-only reduction collapses libaom's three single_ref_p1/p3/p4 context functions to one two-valued test since LAST2/LAST3/GOLDEN/backward counts are always zero here. Ledger: does not include the inter tile writer (ec-av1 tile.rs) this lane's charter also scoped -- see HANDOFF for the exact block-writer design (symbol order, size groups, MV component coding) worked out but not yet landed.
feat(av1): MV prediction stack (spec 7.10.2, single-ref reduction)Ahmet Kaan Gümüş · ec98d16
feat(av1): MV prediction stack (spec 7.10.2, single-ref reduction) find_mv_stack scans row-above/col-left/top-right neighbours over a block's whole 4x4-mi span, dedupes into a weighted RefStackMv, and derives NearestMv/NearMv/PredMv plus NewMv/RefMv/ZeroMv/DRL contexts. Compound refs, temporal MV projection and bit-exact context tables are deliberately out of scope until a consumer needs them.