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

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

Issue 592203002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 2 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_encoder.c ('k') | source/libvpx/vp9/encoder/vp9_firstpass.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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 FIRSTPASS_STATS this_frame_stats; 86 FIRSTPASS_STATS this_frame_stats;
87 const FIRSTPASS_STATS *stats_in; 87 const FIRSTPASS_STATS *stats_in;
88 const FIRSTPASS_STATS *stats_in_start; 88 const FIRSTPASS_STATS *stats_in_start;
89 const FIRSTPASS_STATS *stats_in_end; 89 const FIRSTPASS_STATS *stats_in_end;
90 FIRSTPASS_STATS total_left_stats; 90 FIRSTPASS_STATS total_left_stats;
91 int first_pass_done; 91 int first_pass_done;
92 int64_t bits_left; 92 int64_t bits_left;
93 double modified_error_min; 93 double modified_error_min;
94 double modified_error_max; 94 double modified_error_max;
95 double modified_error_left; 95 double modified_error_left;
96 double kf_intra_err_min;
97 double gf_intra_err_min;
98 96
99 #if CONFIG_FP_MB_STATS 97 #if CONFIG_FP_MB_STATS
100 uint8_t *frame_mb_stats_buf; 98 uint8_t *frame_mb_stats_buf;
101 uint8_t *this_frame_mb_stats; 99 uint8_t *this_frame_mb_stats;
102 FIRSTPASS_MB_STATS firstpass_mb_stats; 100 FIRSTPASS_MB_STATS firstpass_mb_stats;
103 #endif 101 #endif
104 102
105 // Projected total bits available for a key frame group of frames 103 // Projected total bits available for a key frame group of frames
106 int64_t kf_group_bits; 104 int64_t kf_group_bits;
107 105
108 // Error score of frames still to be coded in kf group 106 // Error score of frames still to be coded in kf group
109 int64_t kf_group_error_left; 107 int64_t kf_group_error_left;
110 int sr_update_lag; 108 int sr_update_lag;
111 109
112 int kf_zeromotion_pct; 110 int kf_zeromotion_pct;
111 int last_kfgroup_zeromotion_pct;
113 int gf_zeromotion_pct; 112 int gf_zeromotion_pct;
114 113
115 int active_worst_quality; 114 int active_worst_quality;
116 115
117 GF_GROUP gf_group; 116 GF_GROUP gf_group;
118 } TWO_PASS; 117 } TWO_PASS;
119 118
120 struct VP9_COMP; 119 struct VP9_COMP;
121 120
122 void vp9_init_first_pass(struct VP9_COMP *cpi); 121 void vp9_init_first_pass(struct VP9_COMP *cpi);
123 void vp9_rc_get_first_pass_params(struct VP9_COMP *cpi); 122 void vp9_rc_get_first_pass_params(struct VP9_COMP *cpi);
124 void vp9_first_pass(struct VP9_COMP *cpi, const struct lookahead_entry *source); 123 void vp9_first_pass(struct VP9_COMP *cpi, const struct lookahead_entry *source);
125 void vp9_end_first_pass(struct VP9_COMP *cpi); 124 void vp9_end_first_pass(struct VP9_COMP *cpi);
126 125
127 void vp9_init_second_pass(struct VP9_COMP *cpi); 126 void vp9_init_second_pass(struct VP9_COMP *cpi);
128 void vp9_rc_get_second_pass_params(struct VP9_COMP *cpi); 127 void vp9_rc_get_second_pass_params(struct VP9_COMP *cpi);
129 128
130 // Post encode update of the rate control parameters for 2-pass 129 // Post encode update of the rate control parameters for 2-pass
131 void vp9_twopass_postencode_update(struct VP9_COMP *cpi); 130 void vp9_twopass_postencode_update(struct VP9_COMP *cpi);
132 #ifdef __cplusplus 131 #ifdef __cplusplus
133 } // extern "C" 132 } // extern "C"
134 #endif 133 #endif
135 134
136 #endif // VP9_ENCODER_VP9_FIRSTPASS_H_ 135 #endif // VP9_ENCODER_VP9_FIRSTPASS_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_encoder.c ('k') | source/libvpx/vp9/encoder/vp9_firstpass.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698