]> granicus.if.org Git - libvpx/commitdiff
Removing SECTIONBITS_OUTPUT.
authorDmitry Kovalev <dkovalev@google.com>
Wed, 29 Jan 2014 22:15:34 +0000 (14:15 -0800)
committerDmitry Kovalev <dkovalev@google.com>
Wed, 29 Jan 2014 22:15:34 +0000 (14:15 -0800)
This code seems to be unmaintaned for a long time (e.g. because of __int64
type usage).

Change-Id: I35fd60d985032fe824f6fd6266910378adcca519

vp9/encoder/vp9_bitstream.c
vp9/encoder/vp9_onyx_if.c
vp9/encoder/vp9_writer.c
vp9/encoder/vp9_writer.h

index 8db517a9a5291a5c1733f788e60a4f5d9d964c06..bd2bf84cbe262f461c0633d7894040d29db096c8 100644 (file)
 #include "vp9/encoder/vp9_tokenize.h"
 #include "vp9/encoder/vp9_write_bit_buffer.h"
 
-
-#if defined(SECTIONBITS_OUTPUT)
-unsigned __int64 Sectionbits[500];
-#endif
-
 #ifdef ENTROPY_STATS
 vp9_coeff_stats tree_update_hist[TX_SIZES][PLANE_TYPES];
 extern unsigned int active_section;
index c28d01cebf0c88d2c04196e2983ce829b2fbe4b7..da3fe98160bd1a76cd76146842f7aa20988669e5 100644 (file)
@@ -98,10 +98,6 @@ unsigned int frames_at_speed[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                                     0, 0, 0};
 #endif
 
-#if defined(SECTIONBITS_OUTPUT)
-extern unsigned __int64 Sectionbits[500];
-#endif
-
 extern void vp9_init_quantizer(VP9_COMP *cpi);
 
 static const double in_frame_q_adj_ratio[MAX_SEGMENTS] =
@@ -1956,21 +1952,6 @@ void vp9_remove_compressor(VP9_PTR *ptr) {
     }
 #endif
 
-#if defined(SECTIONBITS_OUTPUT)
-
-    if (0) {
-      int i;
-      FILE *f = fopen("tokenbits.stt", "a");
-
-      for (i = 0; i < 28; i++)
-        fprintf(f, "%8d", (int)(Sectionbits[i] / 256));
-
-      fprintf(f, "\n");
-      fclose(f);
-    }
-
-#endif
-
 #if 0
     {
       printf("\n_pick_loop_filter_level:%d\n", cpi->time_pick_lpf / 1000);
index 3d13d07b64012e7885f20c118d31aa15eae801e1..fda1b390e1d50057e2b9560a5dbc7df820b93a75 100644 (file)
 #include "vp9/encoder/vp9_writer.h"
 #include "vp9/common/vp9_entropy.h"
 
-#if defined(SECTIONBITS_OUTPUT)
-unsigned __int64 Sectionbits[500];
-
-#endif
-
 #ifdef ENTROPY_STATS
 unsigned int active_section = 0;
 #endif
index 62f555c99e20759051a52b710211fba57e1cd5ff..defeec377b1d1c3a486843dae4b07ab4efca7ec4 100644 (file)
@@ -44,17 +44,6 @@ static void vp9_write(vp9_writer *br, int bit, int probability) {
   unsigned int lowvalue = br->lowvalue;
   register unsigned int shift;
 
-#ifdef ENTROPY_STATS
-#if defined(SECTIONBITS_OUTPUT)
-
-  if (bit)
-    Sectionbits[active_section] += vp9_prob_cost[255 - probability];
-  else
-    Sectionbits[active_section] += vp9_prob_cost[probability];
-
-#endif
-#endif
-
   split = 1 + (((range - 1) * probability) >> 8);
 
   range = split;