Remove per frame-type stats collection Change-Id: I13d528e61661602ad5e35187cf0a094a162b4850
diff --git a/av1/encoder/encoder.c b/av1/encoder/encoder.c index 119ad9e..3ea31e3 100644 --- a/av1/encoder/encoder.c +++ b/av1/encoder/encoder.c
@@ -74,8 +74,6 @@ #if CONFIG_ENTROPY_STATS FRAME_COUNTS aggregate_fc; -// Aggregate frame counts per frame context type -FRAME_COUNTS aggregate_fc_per_type[FRAME_CONTEXTS]; #endif // CONFIG_ENTROPY_STATS #define AM_SEGMENT_ID_INACTIVE 7 @@ -2676,7 +2674,6 @@ #endif #if CONFIG_ENTROPY_STATS av1_zero(aggregate_fc); - av1_zero_array(aggregate_fc_per_type, FRAME_CONTEXTS); #endif // CONFIG_ENTROPY_STATS cpi->first_time_stamp_ever = INT64_MAX; @@ -3006,8 +3003,6 @@ fprintf(stderr, "Writing counts.stt\n"); FILE *f = fopen("counts.stt", "wb"); fwrite(&aggregate_fc, sizeof(aggregate_fc), 1, f); - fwrite(aggregate_fc_per_type, sizeof(aggregate_fc_per_type[0]), - FRAME_CONTEXTS, f); fclose(f); } #endif // CONFIG_ENTROPY_STATS @@ -5237,9 +5232,6 @@ #if CONFIG_ENTROPY_STATS av1_accumulate_frame_counts(&aggregate_fc, &cm->counts); - assert(cm->frame_context_idx < FRAME_CONTEXTS); - av1_accumulate_frame_counts(&aggregate_fc_per_type[cm->frame_context_idx], - &cm->counts); #endif // CONFIG_ENTROPY_STATS if (cm->refresh_frame_context == REFRESH_FRAME_CONTEXT_BACKWARD) { make_update_tile_list_enc(cpi, cm->largest_tile_id, 1, tile_ctxs);