]> granicus.if.org Git - libvpx/commitdiff
Replace memcpy with vpx_memcpy
authorYaowu Xu <yaowu@google.com>
Tue, 24 Sep 2013 16:07:08 +0000 (09:07 -0700)
committerYaowu Xu <yaowu@google.com>
Tue, 24 Sep 2013 17:56:06 +0000 (10:56 -0700)
Also removed obselete comment

Change-Id: Iae1664777d76383639c637ee786e0d50fc45819a

vp9/common/vp9_convolve.c
vp9/common/vp9_findnearmv.c
vp9/encoder/vp9_rdopt.c

index abedf6b27517e98623f7cb105e84609ea064ec57..1705402c262f54db341ae334d5904041f5704b3c 100644 (file)
@@ -282,7 +282,7 @@ void vp9_convolve_copy_c(const uint8_t *src, ptrdiff_t src_stride,
   int r;
 
   for (r = h; r > 0; --r) {
-    memcpy(dst, src, w);
+    vpx_memcpy(dst, src, w);
     src += src_stride;
     dst += dst_stride;
   }
index 49a731fdbee492e5bb2b15105f7cfce26f960572..73f6b4c1939b37a4206f31fa9e660f1f905b507a 100644 (file)
@@ -54,7 +54,7 @@ void vp9_append_sub8x8_mvs_for_idx(VP9_COMMON *cm, MACROBLOCKD *xd,
 
   dst_list[1].as_int = 0;
   if (block_idx == 0) {
-    memcpy(dst_list, mv_list, MAX_MV_REF_CANDIDATES * sizeof(int_mv));
+    vpx_memcpy(dst_list, mv_list, MAX_MV_REF_CANDIDATES * sizeof(int_mv));
   } else if (block_idx == 1 || block_idx == 2) {
     int dst = 0, n;
     union b_mode_info *bmi = mi->bmi;
index 041316b4f7ddd2f1173baa2c3459924043ae35f7..f00cd14f85fae49475e71b4cba1c34276b639cde 100644 (file)
@@ -2242,11 +2242,9 @@ static void store_coding_context(MACROBLOCK *x, PICK_MODE_CONTEXT *ctx,
   vpx_memcpy(ctx->zcoeff_blk, x->zcoeff_blk[xd->this_mi->mbmi.tx_size],
              sizeof(ctx->zcoeff_blk));
 
-  // FIXME(rbultje) does this memcpy the whole array? I believe sizeof()
-  // doesn't actually work this way
-  memcpy(ctx->tx_rd_diff, tx_size_diff, sizeof(ctx->tx_rd_diff));
-  memcpy(ctx->best_filter_diff, best_filter_diff,
-         sizeof(*best_filter_diff) * (SWITCHABLE_FILTERS + 1));
+  vpx_memcpy(ctx->tx_rd_diff, tx_size_diff, sizeof(ctx->tx_rd_diff));
+  vpx_memcpy(ctx->best_filter_diff, best_filter_diff,
+             sizeof(*best_filter_diff) * (SWITCHABLE_FILTERS + 1));
 }
 
 static void setup_pred_block(const MACROBLOCKD *xd,