Removed unused data structure.
authorpaulwilkins <paulwilkins@google.com>
Fri, 27 May 2016 11:59:25 +0000 (12:59 +0100)
committerpaulwilkins <paulwilkins@google.com>
Fri, 3 Jun 2016 12:18:09 +0000 (13:18 +0100)
Removed unused element from TWOPASS data structure.

Change-Id: I9b662fd8eea727a7978055bc14f7c7328f048a5e

vp9/encoder/vp9_firstpass.c
vp9/encoder/vp9_firstpass.h

index a56baf7..0c50dba 100644 (file)
@@ -2582,16 +2582,6 @@ static void find_next_key_frame(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) {
   kf_bits = calculate_boost_bits((rc->frames_to_key - 1),
                                   rc->kf_boost, twopass->kf_group_bits);
 
-  // Work out the fraction of the kf group bits reserved for the inter frames
-  // within the group after discounting the bits for the kf itself.
-  if (twopass->kf_group_bits) {
-    twopass->kfgroup_inter_fraction =
-      (double)(twopass->kf_group_bits - kf_bits) /
-      (double)twopass->kf_group_bits;
-  } else {
-    twopass->kfgroup_inter_fraction = 1.0;
-  }
-
   twopass->kf_group_bits -= kf_bits;
 
   // Save the bits to spend on the key frame.
index 20923d7..7607288 100644 (file)
@@ -122,9 +122,6 @@ typedef struct {
   // Error score of frames still to be coded in kf group
   int64_t kf_group_error_left;
 
-  // The fraction for a kf groups total bits allocated to the inter frames
-  double kfgroup_inter_fraction;
-
   double bpm_factor;
   int rolling_arf_group_target_bits;
   int rolling_arf_group_actual_bits;