| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 int last_boosted_qindex; // Last boosted GF/KF/ARF q | 27 int last_boosted_qindex; // Last boosted GF/KF/ARF q |
| 28 | 28 |
| 29 int gfu_boost; | 29 int gfu_boost; |
| 30 int last_boost; | 30 int last_boost; |
| 31 int kf_boost; | 31 int kf_boost; |
| 32 | 32 |
| 33 double rate_correction_factor; | 33 double rate_correction_factor; |
| 34 double key_frame_rate_correction_factor; | 34 double key_frame_rate_correction_factor; |
| 35 double gf_rate_correction_factor; | 35 double gf_rate_correction_factor; |
| 36 | 36 |
| 37 unsigned int frames_since_golden; | 37 int frames_since_golden; |
| 38 unsigned int frames_till_gf_update_due; // Count down till next GF | 38 int frames_till_gf_update_due; |
| 39 unsigned int max_gf_interval; | 39 int max_gf_interval; |
| 40 unsigned int baseline_gf_interval; | 40 int baseline_gf_interval; |
| 41 unsigned int frames_to_key; | 41 int frames_to_key; |
| 42 unsigned int frames_since_key; | 42 int frames_since_key; |
| 43 unsigned int this_key_frame_forced; | 43 int this_key_frame_forced; |
| 44 unsigned int next_key_frame_forced; | 44 int next_key_frame_forced; |
| 45 unsigned int source_alt_ref_pending; | 45 int source_alt_ref_pending; |
| 46 unsigned int source_alt_ref_active; | 46 int source_alt_ref_active; |
| 47 unsigned int is_src_frame_alt_ref; | 47 int is_src_frame_alt_ref; |
| 48 | 48 |
| 49 int av_per_frame_bandwidth; // Average frame size target for clip | 49 int av_per_frame_bandwidth; // Average frame size target for clip |
| 50 int min_frame_bandwidth; // Minimum allocation used for any frame | 50 int min_frame_bandwidth; // Minimum allocation used for any frame |
| 51 int max_frame_bandwidth; // Maximum burst rate allowed for a frame. | 51 int max_frame_bandwidth; // Maximum burst rate allowed for a frame. |
| 52 | 52 |
| 53 int ni_av_qi; | 53 int ni_av_qi; |
| 54 int ni_tot_qi; | 54 int ni_tot_qi; |
| 55 int ni_frames; | 55 int ni_frames; |
| 56 int avg_frame_qindex[3]; // 0 - KEY, 1 - INTER, 2 - ARF/GF | 56 int avg_frame_qindex[3]; // 0 - KEY, 1 - INTER, 2 - ARF/GF |
| 57 double tot_q; | 57 double tot_q; |
| 58 double avg_q; | 58 double avg_q; |
| 59 | 59 |
| 60 int buffer_level; | 60 int64_t buffer_level; |
| 61 int bits_off_target; | 61 int64_t bits_off_target; |
| 62 | 62 |
| 63 int decimation_factor; | 63 int decimation_factor; |
| 64 int decimation_count; | 64 int decimation_count; |
| 65 | 65 |
| 66 int rolling_target_bits; | 66 int rolling_target_bits; |
| 67 int rolling_actual_bits; | 67 int rolling_actual_bits; |
| 68 | 68 |
| 69 int long_rolling_target_bits; | 69 int long_rolling_target_bits; |
| 70 int long_rolling_actual_bits; | 70 int long_rolling_actual_bits; |
| 71 | 71 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 int target); | 159 int target); |
| 160 // Utility to set frame_target into the RATE_CONTROL structure | 160 // Utility to set frame_target into the RATE_CONTROL structure |
| 161 // This function is called only from the vp9_rc_get_..._params() functions. | 161 // This function is called only from the vp9_rc_get_..._params() functions. |
| 162 void vp9_rc_set_frame_target(struct VP9_COMP *cpi, int target); | 162 void vp9_rc_set_frame_target(struct VP9_COMP *cpi, int target); |
| 163 | 163 |
| 164 #ifdef __cplusplus | 164 #ifdef __cplusplus |
| 165 } // extern "C" | 165 } // extern "C" |
| 166 #endif | 166 #endif |
| 167 | 167 |
| 168 #endif // VP9_ENCODER_VP9_RATECTRL_H_ | 168 #endif // VP9_ENCODER_VP9_RATECTRL_H_ |
| OLD | NEW |