]> granicus.if.org Git - libvpx/commitdiff
Removing print_prob_tree function and vp9_coeff_probs typedef.
authorDmitry Kovalev <dkovalev@google.com>
Tue, 15 Oct 2013 04:08:21 +0000 (21:08 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Tue, 15 Oct 2013 04:08:21 +0000 (21:08 -0700)
Change-Id: If14265084e9b4c85c75b43e8d33a6fafad468cbc

vp9/common/vp9_entropy.h
vp9/encoder/vp9_bitstream.c

index 02178b5794547b08eaa05f796b1f48e617b3b43b..d3b5bba7c4c11df046062ffe4019262fbcd76e61 100644 (file)
@@ -95,8 +95,6 @@ typedef unsigned int vp9_coeff_count[REF_TYPES][COEF_BANDS][PREV_COEF_CONTEXTS]
                                     [MAX_ENTROPY_TOKENS];
 typedef unsigned int vp9_coeff_stats[REF_TYPES][COEF_BANDS][PREV_COEF_CONTEXTS]
                                     [ENTROPY_NODES][2];
-typedef vp9_prob vp9_coeff_probs[REF_TYPES][COEF_BANDS][PREV_COEF_CONTEXTS]
-                                [ENTROPY_NODES];
 
 #define SUBEXP_PARAM                4   /* Subexponential code parameter */
 #define MODULUS_PARAM               13  /* Modulus parameter */
index 428ca7e2ba64af1688ec6e925a0c3007a4318f11..ab11c740e26d8e236c148080e79f4ea5759ff1a2 100644 (file)
@@ -696,35 +696,6 @@ static void write_modes(VP9_COMP *cpi, vp9_writer* const bc,
   }
 }
 
-/* This function is used for debugging probability trees. */
-static void print_prob_tree(vp9_coeff_probs *coef_probs, int block_types) {
-  /* print coef probability tree */
-  int i, j, k, l, m;
-  FILE *f = fopen("enc_tree_probs.txt", "a");
-  fprintf(f, "{\n");
-  for (i = 0; i < block_types; i++) {
-    fprintf(f, "  {\n");
-    for (j = 0; j < REF_TYPES; ++j) {
-      fprintf(f, "  {\n");
-      for (k = 0; k < COEF_BANDS; k++) {
-        fprintf(f, "    {\n");
-        for (l = 0; l < PREV_COEF_CONTEXTS; l++) {
-          fprintf(f, "      {");
-          for (m = 0; m < ENTROPY_NODES; m++) {
-            fprintf(f, "%3u, ",
-                    (unsigned int)(coef_probs[i][j][k][l][m]));
-          }
-        }
-        fprintf(f, " }\n");
-      }
-      fprintf(f, "    }\n");
-    }
-    fprintf(f, "  }\n");
-  }
-  fprintf(f, "}\n");
-  fclose(f);
-}
-
 static void build_tree_distribution(VP9_COMP *cpi, TX_SIZE tx_size) {
   vp9_coeff_probs_model *coef_probs = cpi->frame_coef_probs[tx_size];
   vp9_coeff_count *coef_counts = cpi->coef_counts[tx_size];