]> granicus.if.org Git - libvpx/commitdiff
Remove some unused rate control variables
authorJohn Koleszar <jkoleszar@google.com>
Sat, 16 Mar 2013 00:37:01 +0000 (17:37 -0700)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Sat, 16 Mar 2013 00:53:45 +0000 (17:53 -0700)
These variables are unused, and are subject to overflowing, causing
assertions when built with -ftrapv.

Change-Id: Ia00a3201af309906c05bcd4b23a643925ed6ea86

vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_onyx_int.h

index b7b270031fb3cae74c3f8deb3d3f82369b856288..dd2004b0153b91211e59a5e9eca5823e7119cc9c 100644 (file)
@@ -594,9 +594,6 @@ static void update_state(VP9_COMP *cpi,
           [vp9_switchable_interp_map[mbmi->interp_filter]];
     }
 
-    cpi->prediction_error += ctx->distortion;
-    cpi->intra_error += ctx->intra_error;
-
     cpi->rd_comp_pred_diff[SINGLE_PREDICTION_ONLY] += ctx->single_pred_diff;
     cpi->rd_comp_pred_diff[COMP_PREDICTION_ONLY]   += ctx->comp_pred_diff;
     cpi->rd_comp_pred_diff[HYBRID_PREDICTION]      += ctx->hybrid_pred_diff;
@@ -1265,8 +1262,6 @@ static void encode_frame_internal(VP9_COMP *cpi) {
   // Reset frame count of inter 0,0 motion vector usage.
   cpi->inter_zz_count = 0;
 
-  cpi->prediction_error = 0;
-  cpi->intra_error = 0;
   cpi->skip_true_count[0] = cpi->skip_true_count[1] = cpi->skip_true_count[2] = 0;
   cpi->skip_false_count[0] = cpi->skip_false_count[1] = cpi->skip_false_count[2] = 0;
 
index 300e12869467f8c47b646a2af171a8a52536f39e..2e9f96c096f99e515b98ec56d1c2b94c1953a410 100644 (file)
@@ -390,11 +390,6 @@ typedef struct VP9_COMP {
   CODING_CONTEXT coding_context;
 
   // Rate targetting variables
-  int64_t prediction_error;
-  int64_t last_prediction_error;
-  int64_t intra_error;
-  int64_t last_intra_error;
-
   int this_frame_target;
   int projected_frame_size;
   int last_q[2];                   // Separate values for Intra/Inter