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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 int last_kf_qindex; // Q index of the last key frame coded. | 66 int last_kf_qindex; // Q index of the last key frame coded. |
67 | 67 |
68 int gfu_boost; | 68 int gfu_boost; |
69 int last_boost; | 69 int last_boost; |
70 int kf_boost; | 70 int kf_boost; |
71 | 71 |
72 double rate_correction_factors[RATE_FACTOR_LEVELS]; | 72 double rate_correction_factors[RATE_FACTOR_LEVELS]; |
73 | 73 |
74 int frames_since_golden; | 74 int frames_since_golden; |
75 int frames_till_gf_update_due; | 75 int frames_till_gf_update_due; |
| 76 int min_gf_interval; |
76 int max_gf_interval; | 77 int max_gf_interval; |
77 int static_scene_max_gf_interval; | 78 int static_scene_max_gf_interval; |
78 int baseline_gf_interval; | 79 int baseline_gf_interval; |
79 int constrained_gf_group; | 80 int constrained_gf_group; |
80 int frames_to_key; | 81 int frames_to_key; |
81 int frames_since_key; | 82 int frames_since_key; |
82 int this_key_frame_forced; | 83 int this_key_frame_forced; |
83 int next_key_frame_forced; | 84 int next_key_frame_forced; |
84 int source_alt_ref_pending; | 85 int source_alt_ref_pending; |
85 int source_alt_ref_active; | 86 int source_alt_ref_active; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // Computes a q delta (in "q index" terms) to get from a starting q value | 232 // Computes a q delta (in "q index" terms) to get from a starting q value |
232 // to a value that should equate to the given rate ratio. | 233 // to a value that should equate to the given rate ratio. |
233 int vp9_compute_qdelta_by_rate(const RATE_CONTROL *rc, FRAME_TYPE frame_type, | 234 int vp9_compute_qdelta_by_rate(const RATE_CONTROL *rc, FRAME_TYPE frame_type, |
234 int qindex, double rate_target_ratio, | 235 int qindex, double rate_target_ratio, |
235 vpx_bit_depth_t bit_depth); | 236 vpx_bit_depth_t bit_depth); |
236 | 237 |
237 int vp9_frame_type_qdelta(const struct VP9_COMP *cpi, int rf_level, int q); | 238 int vp9_frame_type_qdelta(const struct VP9_COMP *cpi, int rf_level, int q); |
238 | 239 |
239 void vp9_rc_update_framerate(struct VP9_COMP *cpi); | 240 void vp9_rc_update_framerate(struct VP9_COMP *cpi); |
240 | 241 |
241 void vp9_rc_set_gf_max_interval(const struct VP9_COMP *const cpi, | 242 void vp9_rc_set_gf_interval_range(const struct VP9_COMP *const cpi, |
242 RATE_CONTROL *const rc); | 243 RATE_CONTROL *const rc); |
243 | 244 |
244 void vp9_set_target_rate(struct VP9_COMP *cpi); | 245 void vp9_set_target_rate(struct VP9_COMP *cpi); |
245 | 246 |
246 #ifdef __cplusplus | 247 #ifdef __cplusplus |
247 } // extern "C" | 248 } // extern "C" |
248 #endif | 249 #endif |
249 | 250 |
250 #endif // VP9_ENCODER_VP9_RATECTRL_H_ | 251 #endif // VP9_ENCODER_VP9_RATECTRL_H_ |
OLD | NEW |