diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2013-04-17 11:21:28 -0700 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2013-04-17 11:21:28 -0700 |
commit | 0db175ffed7f82c3b2216081f5a180b914c14309 (patch) | |
tree | 9bc6e2f070acaadffca3e152179544d43794a566 /vp9/common/vp9_entropymv.c | |
parent | 642ac924abfd24664335910d540742b4b71d58dd (diff) | |
download | libvpx-0db175ffed7f82c3b2216081f5a180b914c14309.tar libvpx-0db175ffed7f82c3b2216081f5a180b914c14309.tar.gz libvpx-0db175ffed7f82c3b2216081f5a180b914c14309.tar.bz2 libvpx-0db175ffed7f82c3b2216081f5a180b914c14309.zip |
Changing argument type of vp9_get_mv_joint from MV to MV*.
Change-Id: I28c3026946fc1bde7074e6e0198da93bb0d75dfe
Diffstat (limited to 'vp9/common/vp9_entropymv.c')
-rw-r--r-- | vp9/common/vp9_entropymv.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vp9/common/vp9_entropymv.c b/vp9/common/vp9_entropymv.c index fe3667725..0a81015cb 100644 --- a/vp9/common/vp9_entropymv.c +++ b/vp9/common/vp9_entropymv.c @@ -87,12 +87,12 @@ const nmv_context vp9_default_nmv_context = { }, }; -MV_JOINT_TYPE vp9_get_mv_joint(MV mv) { - if (mv.row == 0 && mv.col == 0) +MV_JOINT_TYPE vp9_get_mv_joint(const MV *mv) { + if (mv->row == 0 && mv->col == 0) return MV_JOINT_ZERO; - else if (mv.row == 0 && mv.col != 0) + else if (mv->row == 0 && mv->col != 0) return MV_JOINT_HNZVZ; - else if (mv.row != 0 && mv.col == 0) + else if (mv->row != 0 && mv->col == 0) return MV_JOINT_HZVNZ; else return MV_JOINT_HNZVNZ; @@ -209,13 +209,13 @@ static void counts_to_context(nmv_component_counts *mvcomp, int usehp) { void vp9_increment_nmv(const MV *mv, const MV *ref, nmv_context_counts *mvctx, int usehp) { - const MV_JOINT_TYPE type = vp9_get_mv_joint(*mv); - mvctx->joints[type]++; + const MV_JOINT_TYPE j = vp9_get_mv_joint(mv); + mvctx->joints[j]++; usehp = usehp && vp9_use_nmv_hp(ref); - if (mv_joint_vertical(type)) + if (mv_joint_vertical(j)) increment_nmv_component_count(mv->row, &mvctx->comps[0], 1, usehp); - if (mv_joint_horizontal(type)) + if (mv_joint_horizontal(j)) increment_nmv_component_count(mv->col, &mvctx->comps[1], 1, usehp); } |