]> granicus.if.org Git - libvpx/commitdiff
Remove unused function block_error().
authorRonald S. Bultje <rbultje@google.com>
Thu, 11 Jul 2013 19:11:45 +0000 (12:11 -0700)
committerRonald S. Bultje <rbultje@google.com>
Fri, 12 Jul 2013 00:14:03 +0000 (17:14 -0700)
Change-Id: I78a79fc51c2d7cc3c261f35b569155397f3dc0c4

vp9/encoder/vp9_rdopt.c

index 3982cf3374e5491edc33eab94bdd84db75698818..03b35eb0fb755227ff085ddf16e7b261896f6ba7 100644 (file)
@@ -769,20 +769,6 @@ static int rdcost_uv(VP9_COMMON *const cm, MACROBLOCK *x,
   return cost;
 }
 
-static int block_error(int16_t *coeff, int16_t *dqcoeff,
-                       int block_size, int shift) {
-  int i;
-  int64_t error = 0;
-
-  for (i = 0; i < block_size; i++) {
-    int this_diff = coeff[i] - dqcoeff[i];
-    error += (unsigned)this_diff * this_diff;
-  }
-  error >>= shift;
-
-  return error > INT_MAX ? INT_MAX : (int)error;
-}
-
 static int block_error_sby(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize,
                            int shift, int64_t *sse) {
   struct macroblockd_plane *p = &x->e_mbd.plane[0];