shithub: libvpx

Download patch

ref: d548de69cb86ad4e3f79dae58341d64bd48536c6
parent: 29beeff11dd957af3f28d52fea9433ec43603bc7
author: Dmitry Kovalev <[email protected]>
date: Mon Mar 10 12:24:38 EDT 2014

Removing unused select_cq_level() function.

Change-Id: I612a5d2b3ab1f9202d5b0421a82a80849603c40d

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -62,22 +62,6 @@
   *b = temp;
 }
 
-static int select_cq_level(int qindex) {
-  int ret_val = QINDEX_RANGE - 1;
-  int i;
-
-  double target_q = (vp9_convert_qindex_to_q(qindex) * 0.5847) + 1.0;
-
-  for (i = 0; i < QINDEX_RANGE; ++i) {
-    if (target_q <= vp9_convert_qindex_to_q(i)) {
-      ret_val = i;
-      break;
-    }
-  }
-
-  return ret_val;
-}
-
 static int gfboost_qadjust(int qindex) {
   const double q = vp9_convert_qindex_to_q(qindex);
   return (int)((0.00000828 * q * q * q) +