shithub: libvpx

Download patch

ref: b60d23f3084c1b5a0db0f41f74c9399115f450ab
parent: 7cc78c06e0edad1ece8b8ae186cd42b603e9eec9
author: Dmitry Kovalev <dkovalev@google.com>
date: Wed Apr 9 09:42:26 EDT 2014

Removing unused code from vp9_onyx_if.c.

Change-Id: I0462bf1ca1b4e5a1c06259979b4daff949b8a2c6

--- a/vp9/encoder/vp9_onyx_if.c
+++ b/vp9/encoder/vp9_onyx_if.c
@@ -81,8 +81,6 @@
 FILE *keyfile;
 #endif
 
-void vp9_init_quantizer(VP9_COMP *cpi);
-
 static INLINE void Scale2Ratio(VPX_SCALING mode, int *hr, int *hs) {
   switch (mode) {
     case NORMAL:
@@ -365,27 +363,6 @@
       seg->update_data = 0;
     }
   }
-}
-
-// DEBUG: Print out the segment id of each MB in the current frame.
-static void print_seg_map(VP9_COMP *cpi) {
-  VP9_COMMON *cm = &cpi->common;
-  int row, col;
-  int map_index = 0;
-  FILE *statsfile = fopen("segmap.stt", "a");
-
-  fprintf(statsfile, "%10d\n", cm->current_video_frame);
-
-  for (row = 0; row < cpi->common.mi_rows; row++) {
-    for (col = 0; col < cpi->common.mi_cols; col++) {
-      fprintf(statsfile, "%10d", cpi->segmentation_map[map_index]);
-      map_index++;
-    }
-    fprintf(statsfile, "\n");
-  }
-  fprintf(statsfile, "\n");
-
-  fclose(statsfile);
 }
 
 static void update_reference_segmentation_map(VP9_COMP *cpi) {