Merge "Cleaning up calculate_section_intra_ratio()."
authorDmitry Kovalev <dkovalev@google.com>
Thu, 22 May 2014 20:49:28 +0000 (13:49 -0700)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Thu, 22 May 2014 20:49:28 +0000 (13:49 -0700)
1  2 
vp9/encoder/vp9_firstpass.c

@@@ -1506,10 -1508,9 +1498,9 @@@ static void define_gf_group(VP9_COMP *c
    vp9_zero(next_frame);
  
    twopass->gf_group_bits = 0;
-   start_pos = twopass->stats_in;
  
    // Load stats for the current frame.
 -  mod_frame_err = calculate_modified_err(cpi, this_frame);
 +  mod_frame_err = calculate_modified_err(twopass, oxcf, this_frame);
  
    // Note the error of the frame at the start of the group. This will be
    // the GF frame error if we code a normal gf.
@@@ -1875,9 -1877,8 +1868,9 @@@ static void find_next_key_frame(VP9_COM
    int i, j;
    RATE_CONTROL *const rc = &cpi->rc;
    TWO_PASS *const twopass = &cpi->twopass;
 +  const VP9EncoderConfig *const oxcf = &cpi->oxcf;
    const FIRSTPASS_STATS first_frame = *this_frame;
-   const FIRSTPASS_STATS *start_position = twopass->stats_in;
+   const FIRSTPASS_STATS *const start_position = twopass->stats_in;
    FIRSTPASS_STATS next_frame;
    FIRSTPASS_STATS last_frame;
    double decay_accumulator = 1.0;