From 8c3886df7812e5242c61a3c379ac89e9053770df Mon Sep 17 00:00:00 2001 From: James Zern Date: Sat, 2 Aug 2014 14:42:48 -0700 Subject: [PATCH] remove unused fields from BOOL_CODER / vp9_writer measure_cost, bit_counter, value Change-Id: I8f93444ddddbee4ece7db6076a922ad96786044c --- vp8/encoder/boolhuff.h | 4 ---- vp9/encoder/vp9_writer.c | 1 - vp9/encoder/vp9_writer.h | 5 ----- 3 files changed, 10 deletions(-) diff --git a/vp8/encoder/boolhuff.h b/vp8/encoder/boolhuff.h index 6114215..7c012a8 100644 --- a/vp8/encoder/boolhuff.h +++ b/vp8/encoder/boolhuff.h @@ -35,10 +35,6 @@ typedef struct unsigned char *buffer; unsigned char *buffer_end; struct vpx_internal_error_info *error; - - /* Variables used to track bit costs without outputing to the bitstream */ - unsigned int measure_cost; - unsigned long bit_counter; } BOOL_CODER; extern void vp8_start_encode(BOOL_CODER *bc, unsigned char *buffer, unsigned char *buffer_end); diff --git a/vp9/encoder/vp9_writer.c b/vp9/encoder/vp9_writer.c index 8398fc0..ff461f2 100644 --- a/vp9/encoder/vp9_writer.c +++ b/vp9/encoder/vp9_writer.c @@ -15,7 +15,6 @@ void vp9_start_encode(vp9_writer *br, uint8_t *source) { br->lowvalue = 0; br->range = 255; - br->value = 0; br->count = -24; br->buffer = source; br->pos = 0; diff --git a/vp9/encoder/vp9_writer.h b/vp9/encoder/vp9_writer.h index 7f4fa1e..02a4003 100644 --- a/vp9/encoder/vp9_writer.h +++ b/vp9/encoder/vp9_writer.h @@ -22,14 +22,9 @@ extern "C" { typedef struct { unsigned int lowvalue; unsigned int range; - unsigned int value; int count; unsigned int pos; uint8_t *buffer; - - // Variables used to track bit costs without outputing to the bitstream - unsigned int measure_cost; - uint64_t bit_counter; } vp9_writer; void vp9_start_encode(vp9_writer *bc, uint8_t *buffer); -- 2.7.4