shithub: libvpx

Download patch

ref: 25b7dc08cdd1aa9998c67997a83ab9cc64075706
parent: 33afddadb9af6569bd8296ef1d48d0511b651e9d
parent: fec4ec4eddd1a02d9f8f6c14f84193cd638e2c30
author: Dmitry Kovalev <dkovalev@google.com>
date: Tue Aug 6 06:29:57 EDT 2013

Merge "Removing unused functions."

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -421,32 +421,6 @@
   *out_dist_sum = dist_sum << 4;
 }
 
-static void model_rd_for_sb_y(VP9_COMP *cpi, BLOCK_SIZE_TYPE bsize,
-                              MACROBLOCK *x, MACROBLOCKD *xd,
-                              int *out_rate_sum, int64_t *out_dist_sum) {
-  // Note our transform coeffs are 8 times an orthogonal transform.
-  // Hence quantizer step is also 8 times. To get effective quantizer
-  // we need to divide by 8 before sending to modeling function.
-  struct macroblock_plane *const p = &x->plane[0];
-  struct macroblockd_plane *const pd = &xd->plane[0];
-
-  // TODO(dkovalev) the same code in get_plane_block_size
-  const int bwl = plane_block_width_log2by4(bsize, pd);
-  const int bhl = plane_block_height_log2by4(bsize, pd);
-  const BLOCK_SIZE_TYPE bs = get_block_size(bwl, bhl);
-  unsigned int sse;
-  int rate;
-  int64_t dist;
-  (void) cpi->fn_ptr[bs].vf(p->src.buf, p->src.stride,
-                            pd->dst.buf, pd->dst.stride, &sse);
-  // sse works better than var, since there is no dc prediction used
-  model_rd_from_var_lapndz(sse, 16 << (bwl + bhl),
-                           pd->dequant[1] >> 3, &rate, &dist);
-
-  *out_rate_sum = rate;
-  *out_dist_sum = dist << 4;
-}
-
 static void model_rd_for_sb_y_tx(VP9_COMP *cpi, BLOCK_SIZE_TYPE bsize,
                                  TX_SIZE tx_size,
                                  MACROBLOCK *x, MACROBLOCKD *xd,
@@ -713,17 +687,6 @@
     cost += rdcost_plane(cm, x, plane, bsize, tx_size);
   }
   return cost;
-}
-
-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];
-  const int bwl = plane_block_width_log2by4(bsize, p);
-  const int bhl = plane_block_height_log2by4(bsize, p);
-  int64_t e = vp9_block_error(x->plane[0].coeff, x->e_mbd.plane[0].dqcoeff,
-                              16 << (bwl + bhl), sse) >> shift;
-  *sse >>= shift;
-  return e;
 }
 
 static int64_t block_error_sbuv(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize,