]> granicus.if.org Git - libvpx/commitdiff
Making vp9_default_nmv_context static.
authorDmitry Kovalev <dkovalev@google.com>
Thu, 11 Jul 2013 00:44:45 +0000 (17:44 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Thu, 11 Jul 2013 00:44:45 +0000 (17:44 -0700)
Change-Id: Ia3d5bd45adf288de11ab59c4728266c93c17e275

vp9/common/vp9_entropymv.c
vp9/common/vp9_entropymv.h

index 50e8463f67131a6ad13e420b02b879c6bf4dbb5f..ed6af665e43ab8896fa59b50f4f87c5c765b3206 100644 (file)
@@ -56,7 +56,7 @@ const vp9_tree_index vp9_mv_fp_tree [2 * 4 - 2] = {
 };
 struct vp9_token vp9_mv_fp_encodings[4];
 
-const nmv_context vp9_default_nmv_context = {
+static const nmv_context default_nmv_context = {
   {32, 64, 96},
   {
     { /* vert component */
@@ -360,5 +360,5 @@ void vp9_entropy_mv_init() {
 }
 
 void vp9_init_mv_probs(VP9_COMMON *cm) {
-  vpx_memcpy(&cm->fc.nmvc, &vp9_default_nmv_context, sizeof(nmv_context));
+  cm->fc.nmvc = default_nmv_context;
 }
index 15f9ada439ccba5ef07866065213240a7115b884..0df92d0310c44ea8bf0307ca6b5b9e75685f6563 100644 (file)
@@ -130,7 +130,6 @@ typedef struct {
 
 void vp9_inc_mv(const MV *mv, const MV *ref, nmv_context_counts *mvctx,
                 int usehp);
-extern const nmv_context vp9_default_nmv_context;
 
 void vp9_counts_process(nmv_context_counts *NMVcount, int usehp);