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 25 matching lines...) Expand all Loading... |
36 typedef struct { | 36 typedef struct { |
37 uint8_t *mb_stats_start; | 37 uint8_t *mb_stats_start; |
38 uint8_t *mb_stats_end; | 38 uint8_t *mb_stats_end; |
39 } FIRSTPASS_MB_STATS; | 39 } FIRSTPASS_MB_STATS; |
40 #endif | 40 #endif |
41 | 41 |
42 #define VLOW_MOTION_THRESHOLD 950 | 42 #define VLOW_MOTION_THRESHOLD 950 |
43 | 43 |
44 typedef struct { | 44 typedef struct { |
45 double frame; | 45 double frame; |
| 46 double weight; |
46 double intra_error; | 47 double intra_error; |
47 double coded_error; | 48 double coded_error; |
48 double sr_coded_error; | 49 double sr_coded_error; |
49 double pcnt_inter; | 50 double pcnt_inter; |
50 double pcnt_motion; | 51 double pcnt_motion; |
51 double pcnt_second_ref; | 52 double pcnt_second_ref; |
52 double pcnt_neutral; | 53 double pcnt_neutral; |
53 double MVr; | 54 double MVr; |
54 double mvr_abs; | 55 double mvr_abs; |
55 double MVc; | 56 double MVc; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 FIRSTPASS_STATS this_frame_stats; | 89 FIRSTPASS_STATS this_frame_stats; |
89 const FIRSTPASS_STATS *stats_in; | 90 const FIRSTPASS_STATS *stats_in; |
90 const FIRSTPASS_STATS *stats_in_start; | 91 const FIRSTPASS_STATS *stats_in_start; |
91 const FIRSTPASS_STATS *stats_in_end; | 92 const FIRSTPASS_STATS *stats_in_end; |
92 FIRSTPASS_STATS total_left_stats; | 93 FIRSTPASS_STATS total_left_stats; |
93 int first_pass_done; | 94 int first_pass_done; |
94 int64_t bits_left; | 95 int64_t bits_left; |
95 double modified_error_min; | 96 double modified_error_min; |
96 double modified_error_max; | 97 double modified_error_max; |
97 double modified_error_left; | 98 double modified_error_left; |
| 99 double mb_av_energy; |
98 | 100 |
99 #if CONFIG_FP_MB_STATS | 101 #if CONFIG_FP_MB_STATS |
100 uint8_t *frame_mb_stats_buf; | 102 uint8_t *frame_mb_stats_buf; |
101 uint8_t *this_frame_mb_stats; | 103 uint8_t *this_frame_mb_stats; |
102 FIRSTPASS_MB_STATS firstpass_mb_stats; | 104 FIRSTPASS_MB_STATS firstpass_mb_stats; |
103 #endif | 105 #endif |
104 | 106 |
105 // Projected total bits available for a key frame group of frames | 107 // Projected total bits available for a key frame group of frames |
106 int64_t kf_group_bits; | 108 int64_t kf_group_bits; |
107 | 109 |
(...skipping 21 matching lines...) Expand all Loading... |
129 void vp9_init_second_pass(struct VP9_COMP *cpi); | 131 void vp9_init_second_pass(struct VP9_COMP *cpi); |
130 void vp9_rc_get_second_pass_params(struct VP9_COMP *cpi); | 132 void vp9_rc_get_second_pass_params(struct VP9_COMP *cpi); |
131 | 133 |
132 // Post encode update of the rate control parameters for 2-pass | 134 // Post encode update of the rate control parameters for 2-pass |
133 void vp9_twopass_postencode_update(struct VP9_COMP *cpi); | 135 void vp9_twopass_postencode_update(struct VP9_COMP *cpi); |
134 #ifdef __cplusplus | 136 #ifdef __cplusplus |
135 } // extern "C" | 137 } // extern "C" |
136 #endif | 138 #endif |
137 | 139 |
138 #endif // VP9_ENCODER_VP9_FIRSTPASS_H_ | 140 #endif // VP9_ENCODER_VP9_FIRSTPASS_H_ |
OLD | NEW |