code wiki / (root) / nx_vmvpred.nx

nx_vmvpred.nx

buildroot/runtime/nx_vmvpred.nx

1063 B18 linesdepth 0pulls 0 transitivereach 2 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_vmvpred.nx -- MOTION-VECTOR PREDICTION (the H.264/VP9 MVP): instead of coding each block's absolute motion vector, predict it from the median of the left / top / top-right neighbour MVs and code only the RESIDUAL (mv - pred). On a camera pan or head-pan -- the dominant motion in a video call -- neighbouring blocks share motion, so the residual MVs collapse to ~0 and cost almost no bits. Pure integer; the predictor the codec runs identically on encode+decode. license_tier: ORIGINAL

dependencies 0 imports · 2 importers

nx_vmvpred.nx nx_vmvpred_gate.nx nx_vmvres_gate.nx

imports: none

imported by: nx_vmvpred_gate.nxnx_vmvres_gate.nx

structs

none

consts

none

functions

8func mvp_median(a: i64, b: i64, c: i64) -> i64
called by 1: mvp_predict
14func mvp_predict(L: *i64, T: *i64, TR: *i64, pred: *i64) -> i64
called by 2: mainmain calls 1: mvp_median