code wiki / (root) / nx_h264_mvpred.nx

nx_h264_mvpred.nx

buildroot/runtime/nx_h264_mvpred.nx

3656 B83 linesdepth 2pulls 2 transitivereach 7 importersview sourcekind librarytopic h264
docsdependenciesstructsconstsfunctions

about

nx_h264_mvpred.nx -- H.264 motion-vector prediction (spec 8.4.1.3 / 8.4.1.3.1). The predicted MV mvp for a partition from its neighbours A(left) B(top) C(top-right; D=top-left substitutes when C unavailable). mv = mvp + mvd. Unavailable neighbour: ref = -1, mv = (0,0). rule (8.4.1.3.1): if exactly ONE of A,B,C has refIdxN == refIdx -> mvp = that mvN; else mvp = component-wise MEDIAN(mvA,mvB,mvC). availability sub: if B and C both unavailable but A available -> B := A, C := A. directional (8.4.1.3): P_16x8 top->B / bottom->A ; P_8x16 left->A / right->C, when ref matches. genealogy_id: itu_t_h264_sec8_4_1_3_mv_prediction lineage_id: median_predictor + ref_match_special_case + directional_partition license_tier: ORIGINAL

dependencies 1 imports · 3 importers

nx_syscalls.nx nx_h264_mvpred.nx nx_h264_brecon.nx nx_h264_mvgrid.nx nx_h264_mvpred_gate.nx

imports: nx_syscalls.nx

imported by: nx_h264_brecon.nxnx_h264_mvgrid.nxnx_h264_mvpred_gate.nx

structs

none

consts

none

functions

13func nx_mv_min3(a: i64, b: i64, c: i64) -> i64
called by 1: nx_mv_median
19func nx_mv_max3(a: i64, b: i64, c: i64) -> i64
called by 1: nx_mv_median
26func nx_mv_median(a: i64, b: i64, c: i64) -> i64
called by 1: nx_h264_mvp calls 2: nx_mv_min3nx_mv_max3
32func nx_h264_mvp(mvAx: i64, mvAy: i64, refA: i64,
69func nx_h264_mvp_directional(part_shape: i64, part_idx: i64,
called by 2: nx_mvg_part_mvpmain calls 1: nx_h264_mvp