Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: source/libvpx/vp9/encoder/vp9_ratectrl.h

Issue 181493009: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_quantize.c ('k') | source/libvpx/vp9/encoder/vp9_ratectrl.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_quantize.c ('k') | source/libvpx/vp9/encoder/vp9_ratectrl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698