ENTROPY_STATS -> VP8_ENTROPY_STATS in vp8/. Change-Id: I0027483e47900de84394de47c3273cc8292e6119
diff --git a/vp8/encoder/bitstream.c b/vp8/encoder/bitstream.c index e666b6c..3831969 100644 --- a/vp8/encoder/bitstream.c +++ b/vp8/encoder/bitstream.c
@@ -50,7 +50,7 @@ unsigned __int64 Sectionbits[500]; #endif -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS int intra_mode_stats[10][10][10]; static unsigned int tree_update_hist [BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [ENTROPY_NODES] [2]; extern unsigned int active_section; @@ -531,7 +531,7 @@ vp8_convert_rfct_to_prob(cpi); -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS active_section = 1; #endif @@ -580,7 +580,7 @@ xd->mb_to_top_edge = -((mb_row * 16)) << 3; xd->mb_to_bottom_edge = ((pc->mb_rows - 1 - mb_row) * 16) << 3; -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS active_section = 9; #endif @@ -593,7 +593,7 @@ if (rf == INTRA_FRAME) { vp8_write(w, 0, cpi->prob_intra_coded); -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS active_section = 6; #endif write_ymode(w, mode, pc->fc.ymode_prob); @@ -633,13 +633,13 @@ vp8_mv_ref_probs(mv_ref_p, ct); -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS accum_mv_refs(mode, ct); #endif } -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS active_section = 3; #endif @@ -649,7 +649,7 @@ { case NEWMV: -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS active_section = 5; #endif @@ -692,7 +692,7 @@ if (blockmode == NEW4X4) { -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS active_section = 11; #endif write_mv(w, &blockmv.as_mv, &best_mv, (const MV_CONTEXT *) mvc); @@ -769,7 +769,7 @@ const B_PREDICTION_MODE L = left_block_mode(m, i); const int bm = m->bmi[i].as_mode; -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS ++intra_mode_stats [A] [L] [bm]; #endif @@ -1154,7 +1154,7 @@ #endif -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS ++ tree_update_hist [i][j][k][t] [u]; #endif @@ -1175,7 +1175,7 @@ while (++t < ENTROPY_NODES); /* Accum token counts for generation of default statistics */ -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS t = 0; do @@ -1521,7 +1521,7 @@ if (pc->frame_type != KEY_FRAME) vp8_write_bit(bc, pc->refresh_last_frame); -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS if (pc->frame_type == INTER_FRAME) active_section = 0; @@ -1544,7 +1544,7 @@ vp8_update_coef_probs(cpi); #endif -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS active_section = 2; #endif @@ -1555,7 +1555,7 @@ { write_kfmodes(cpi); -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS active_section = 8; #endif } @@ -1563,7 +1563,7 @@ { pack_inter_mode_mvs(cpi); -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS active_section = 1; #endif } @@ -1681,7 +1681,7 @@ #endif } -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS void print_tree_update_probs() { int i, j, k, l;
diff --git a/vp8/encoder/boolhuff.c b/vp8/encoder/boolhuff.c index 74770a2..3b0c03a 100644 --- a/vp8/encoder/boolhuff.c +++ b/vp8/encoder/boolhuff.c
@@ -16,7 +16,7 @@ #endif -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS unsigned int active_section = 0; #endif
diff --git a/vp8/encoder/boolhuff.h b/vp8/encoder/boolhuff.h index 8309063..39ab586 100644 --- a/vp8/encoder/boolhuff.h +++ b/vp8/encoder/boolhuff.h
@@ -67,7 +67,7 @@ unsigned int lowvalue = br->lowvalue; register unsigned int shift; -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS #if defined(SECTIONBITS_OUTPUT) if (bit)
diff --git a/vp8/encoder/encodemv.c b/vp8/encoder/encodemv.c index 0c43d06..2a74ff4 100644 --- a/vp8/encoder/encodemv.c +++ b/vp8/encoder/encodemv.c
@@ -16,7 +16,7 @@ #include <math.h> -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS extern unsigned int active_section; #endif @@ -359,7 +359,7 @@ vp8_writer *const w = cpi->bc; MV_CONTEXT *mvc = cpi->common.fc.mvc; int flags[2] = {0, 0}; -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS active_section = 4; #endif write_component_probs( @@ -374,7 +374,7 @@ if (flags[0] || flags[1]) vp8_build_component_cost_table(cpi->mb.mvcost, (const MV_CONTEXT *) cpi->common.fc.mvc, flags); -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS active_section = 5; #endif }
diff --git a/vp8/encoder/mcomp.c b/vp8/encoder/mcomp.c index a34af64..2c59872 100644 --- a/vp8/encoder/mcomp.c +++ b/vp8/encoder/mcomp.c
@@ -18,7 +18,7 @@ #include <math.h> #include "vp8/common/findnearmv.h" -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS static int mv_ref_ct [31] [4] [2]; static int mv_mode_cts [4] [2]; #endif @@ -1912,7 +1912,7 @@ + mv_err_cost(&this_mv, center_mv, mvcost, x->errorperbit); } -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS void print_mode_context(void) { FILE *f = fopen("modecont.c", "w"); @@ -1965,8 +1965,8 @@ fclose(f); } -/* MV ref count ENTROPY_STATS stats code */ -#ifdef ENTROPY_STATS +/* MV ref count VP8_ENTROPY_STATS stats code */ +#ifdef VP8_ENTROPY_STATS void init_mv_ref_counts() { vpx_memset(mv_ref_ct, 0, sizeof(mv_ref_ct)); @@ -2020,6 +2020,6 @@ } } -#endif/* END MV ref count ENTROPY_STATS stats code */ +#endif/* END MV ref count VP8_ENTROPY_STATS stats code */ #endif
diff --git a/vp8/encoder/mcomp.h b/vp8/encoder/mcomp.h index 890113f..e36c515 100644 --- a/vp8/encoder/mcomp.h +++ b/vp8/encoder/mcomp.h
@@ -15,7 +15,7 @@ #include "block.h" #include "vp8/common/variance.h" -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS extern void init_mv_ref_counts(); extern void accum_mv_refs(MB_PREDICTION_MODE, const int near_mv_ref_cts[4]); #endif
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 92f9818..124b1cb 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c
@@ -111,7 +111,7 @@ #endif -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS extern int intra_mode_stats[10][10][10]; #endif @@ -1806,7 +1806,7 @@ else cpi->cyclic_refresh_map = (signed char *) NULL; -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS init_context_counters(); #endif @@ -1924,7 +1924,7 @@ cpi->mb.rd_thresh_mult[i] = 128; } -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS init_mv_ref_counts(); #endif @@ -2061,7 +2061,7 @@ #endif -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS print_context_counters(); print_tree_update_probs(); print_mode_context(); @@ -2243,7 +2243,7 @@ } #endif -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS { int i, j, k; FILE *fmode = fopen("modecontext.c", "w");
diff --git a/vp8/encoder/tokenize.c b/vp8/encoder/tokenize.c index 3b5268b..11559a7 100644 --- a/vp8/encoder/tokenize.c +++ b/vp8/encoder/tokenize.c
@@ -20,7 +20,7 @@ /* Global event counters used for accumulating statistics across several compressions, then generating context.c = initial stats. */ -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS _int64 context_counters[BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [MAX_ENTROPY_TOKENS]; #endif void vp8_stuff_mb(VP8_COMP *cpi, MACROBLOCK *x, TOKENEXTRA **t) ; @@ -413,7 +413,7 @@ } -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS void init_context_counters(void) {
diff --git a/vp8/encoder/tokenize.h b/vp8/encoder/tokenize.h index c2d1438..1e6cea1 100644 --- a/vp8/encoder/tokenize.h +++ b/vp8/encoder/tokenize.h
@@ -33,7 +33,7 @@ int rd_cost_mby(MACROBLOCKD *); -#ifdef ENTROPY_STATS +#ifdef VP8_ENTROPY_STATS void init_context_counters(); void print_context_counters();