]> granicus.if.org Git - libvpx/commitdiff
Renaming vp9_boolcoder.{h, c} to vp9_writer.{h, c}.
authorDmitry Kovalev <dkovalev@google.com>
Fri, 20 Dec 2013 19:10:24 +0000 (11:10 -0800)
committerDmitry Kovalev <dkovalev@google.com>
Fri, 20 Dec 2013 19:10:24 +0000 (11:10 -0800)
Change-Id: I9b9a5fcce8530284df0f270706ee060a0edc1517

test/vp9_boolcoder_test.cc
vp9/encoder/vp9_subexp.c
vp9/encoder/vp9_treewriter.h
vp9/encoder/vp9_writer.c [moved from vp9/encoder/vp9_boolhuff.c with 98% similarity]
vp9/encoder/vp9_writer.h [moved from vp9/encoder/vp9_boolhuff.h with 85% similarity]
vp9/vp9cx.mk

index 5edde902095dec8a9cf53f364a548f0d244094f5..d9c3750dff00025f19e8617b77a087145dd70ccb 100644 (file)
@@ -15,8 +15,8 @@
 #include "third_party/googletest/src/include/gtest/gtest.h"
 
 extern "C" {
-#include "vp9/encoder/vp9_boolhuff.h"
 #include "vp9/decoder/vp9_dboolhuff.h"
+#include "vp9/encoder/vp9_writer.h"
 }
 
 #include "test/acm_random.h"
index f31e568b763b69d2f7f7bdfed3893b850291f0e0..def99d18ee39c393c222026259b94c627600db30 100644 (file)
@@ -11,8 +11,8 @@
 #include "vp9/common/vp9_common.h"
 #include "vp9/common/vp9_entropy.h"
 
-#include "vp9/encoder/vp9_boolhuff.h"
 #include "vp9/encoder/vp9_treewriter.h"
+#include "vp9/encoder/vp9_writer.h"
 
 #define vp9_cost_upd256  ((int)(vp9_cost_one(upd) - vp9_cost_zero(upd)))
 
index 913b5f0cab84010700214d38994c0d359aedc29c..09f80b0bad567ccb1212a47d97676d88aaf8aab3 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef VP9_ENCODER_VP9_TREEWRITER_H_
 #define VP9_ENCODER_VP9_TREEWRITER_H_
 
-#include "vp9/encoder/vp9_boolhuff.h"       /* for now */
+#include "vp9/encoder/vp9_writer.h"
 
 #define vp9_cost_zero(prob) (vp9_prob_cost[prob])
 
similarity index 98%
rename from vp9/encoder/vp9_boolhuff.c
rename to vp9/encoder/vp9_writer.c
index 32c136e0f70e4c0da27c2ce80644de654f1d4604..3d13d07b64012e7885f20c118d31aa15eae801e1 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #include <assert.h>
-#include "vp9/encoder/vp9_boolhuff.h"
+#include "vp9/encoder/vp9_writer.h"
 #include "vp9/common/vp9_entropy.h"
 
 #if defined(SECTIONBITS_OUTPUT)
similarity index 85%
rename from vp9/encoder/vp9_boolhuff.h
rename to vp9/encoder/vp9_writer.h
index 343c1bb9b719e02770ed420c103b26817b0cbfae..9cac7a84f4802589523c4eb9cf2fc1761ae49391 100644 (file)
@@ -8,16 +8,8 @@
  *  be found in the AUTHORS file in the root of the source tree.
  */
 
-
-/****************************************************************************
-*
-*   Module Title :     vp9_boolhuff.h
-*
-*   Description  :     Bool Coder header file.
-*
-****************************************************************************/
-#ifndef VP9_ENCODER_VP9_BOOLHUFF_H_
-#define VP9_ENCODER_VP9_BOOLHUFF_H_
+#ifndef VP9_ENCODER_VP9_WRITER_H_
+#define VP9_ENCODER_VP9_WRITER_H_
 
 #include "vpx_ports/mem.h"
 
@@ -33,7 +25,7 @@ typedef struct {
 
   // Variables used to track bit costs without outputing to the bitstream
   unsigned int  measure_cost;
-  unsigned long bit_counter;
+  uint64_t bit_counter;
 } vp9_writer;
 
 extern const unsigned int vp9_prob_cost[256];
@@ -113,4 +105,4 @@ static void vp9_write_literal(vp9_writer *w, int data, int bits) {
 
 #define vp9_write_prob(w, v) vp9_write_literal((w), (v), 8)
 
-#endif  // VP9_ENCODER_VP9_BOOLHUFF_H_
+#endif  // VP9_ENCODER_VP9_WRITER_H_
index ce83a6703f2d194c6a4b8ed26a4f6b7ec6db6bb8..9114a30e75310324ec9bd53b154eb86505ad72bc 100644 (file)
@@ -18,7 +18,6 @@ VP9_CX_SRCS_REMOVE-no  += $(VP9_COMMON_SRCS_REMOVE-no)
 VP9_CX_SRCS-yes += vp9_cx_iface.c
 
 VP9_CX_SRCS-yes += encoder/vp9_bitstream.c
-VP9_CX_SRCS-yes += encoder/vp9_boolhuff.c
 VP9_CX_SRCS-yes += encoder/vp9_dct.c
 VP9_CX_SRCS-yes += encoder/vp9_dct.h
 VP9_CX_SRCS-yes += encoder/vp9_encodeframe.c
@@ -28,7 +27,8 @@ VP9_CX_SRCS-yes += encoder/vp9_encodemv.c
 VP9_CX_SRCS-yes += encoder/vp9_extend.c
 VP9_CX_SRCS-yes += encoder/vp9_firstpass.c
 VP9_CX_SRCS-yes += encoder/vp9_block.h
-VP9_CX_SRCS-yes += encoder/vp9_boolhuff.h
+VP9_CX_SRCS-yes += encoder/vp9_writer.h
+VP9_CX_SRCS-yes += encoder/vp9_writer.c
 VP9_CX_SRCS-yes += encoder/vp9_write_bit_buffer.h
 VP9_CX_SRCS-yes += encoder/vp9_bitstream.h
 VP9_CX_SRCS-yes += encoder/vp9_encodemb.h