]> granicus.if.org Git - libvpx/commitdiff
Inlining and removing vp9_set_mbmode_and_mvs().
authorDmitry Kovalev <dkovalev@google.com>
Wed, 5 Mar 2014 19:22:09 +0000 (11:22 -0800)
committerDmitry Kovalev <dkovalev@google.com>
Wed, 5 Mar 2014 22:22:31 +0000 (14:22 -0800)
Change-Id: I9717ef611ef9c39b109b2358c9771bf7fae2dd50

vp9/encoder/vp9_firstpass.c
vp9/encoder/vp9_mbgraph.c
vp9/encoder/vp9_rdopt.c
vp9/encoder/vp9_rdopt.h

index b507c6e7c2e769270c5427d0148691bcb9a3b4ea..d83c4357b1be5139147fb03b3ab56c982a700654 100644 (file)
@@ -676,7 +676,8 @@ void vp9_first_pass(VP9_COMP *cpi) {
           mv.as_mv.row *= 8;
           mv.as_mv.col *= 8;
           this_error = motion_error;
-          vp9_set_mbmode_and_mvs(xd, NEWMV, &mv.as_mv);
+          xd->mi_8x8[0]->mbmi.mode = NEWMV;
+          xd->mi_8x8[0]->mbmi.mv[0] = mv;
           xd->mi_8x8[0]->mbmi.tx_size = TX_4X4;
           xd->mi_8x8[0]->mbmi.ref_frame[0] = LAST_FRAME;
           xd->mi_8x8[0]->mbmi.ref_frame[1] = NONE;
index d3e19b4b9f0a8df5874cb626dac19a786b35a7c3..65203895055da23d73bd8ab7de8e928578a9192f 100644 (file)
@@ -61,7 +61,9 @@ static unsigned int do_16x16_motion_iteration(VP9_COMP *cpi,
         &sse);
   }
 
-  vp9_set_mbmode_and_mvs(xd, NEWMV, dst_mv);
+  xd->mi_8x8[0]->mbmi.mode = NEWMV;
+  xd->mi_8x8[0]->mbmi.mv[0].as_mv = *dst_mv;
+
   vp9_build_inter_predictors_sby(xd, mb_row, mb_col, BLOCK_16X16);
 
   /* restore UMV window */
index 510615ccc9191e934607b9e8ae239fe774e36686..6c42a8b414c64d4873accf8aae27b9b957043f27 100644 (file)
@@ -1463,12 +1463,6 @@ static int cost_mv_ref(VP9_COMP *cpi, MB_PREDICTION_MODE mode,
   }
 }
 
-void vp9_set_mbmode_and_mvs(MACROBLOCKD *xd, MB_PREDICTION_MODE mode,
-                            const MV *mv) {
-  xd->mi_8x8[0]->mbmi.mode = mode;
-  xd->mi_8x8[0]->mbmi.mv[0].as_mv = *mv;
-}
-
 static void joint_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
                                 BLOCK_SIZE bsize,
                                 int_mv *frame_mv,
index b5baa337d0331b692f7c8d2e2d65621778f5cd5e..e1a4676a10556f4185732daf72aa69a767938190 100644 (file)
@@ -77,9 +77,6 @@ int64_t vp9_rd_pick_inter_mode_sub8x8(VP9_COMP *cpi, MACROBLOCK *x,
 
 void vp9_init_me_luts();
 
-void vp9_set_mbmode_and_mvs(MACROBLOCKD *xd, MB_PREDICTION_MODE mode,
-                            const MV *mv);
-
 void vp9_get_entropy_contexts(BLOCK_SIZE bsize, TX_SIZE tx_size,
                               const struct macroblockd_plane *pd,
                               ENTROPY_CONTEXT t_above[16],