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 |
11 #ifndef VP9_ENCODER_VP9_FIRSTPASS_H_ | 11 #ifndef VP9_ENCODER_VP9_FIRSTPASS_H_ |
12 #define VP9_ENCODER_VP9_FIRSTPASS_H_ | 12 #define VP9_ENCODER_VP9_FIRSTPASS_H_ |
13 | 13 |
14 #include "vp9/encoder/vp9_lookahead.h" | 14 #include "vp9/encoder/vp9_lookahead.h" |
15 #include "vp9/encoder/vp9_ratectrl.h" | 15 #include "vp9/encoder/vp9_ratectrl.h" |
16 | 16 |
17 #ifdef __cplusplus | 17 #ifdef __cplusplus |
18 extern "C" { | 18 extern "C" { |
19 #endif | 19 #endif |
20 | 20 |
21 #if CONFIG_FP_MB_STATS | 21 #if CONFIG_FP_MB_STATS |
| 22 |
| 23 #define FPMB_DCINTRA_MASK 0x01 |
| 24 |
| 25 #define FPMB_MOTION_ZERO_MASK 0x02 |
| 26 #define FPMB_MOTION_LEFT_MASK 0x04 |
| 27 #define FPMB_MOTION_RIGHT_MASK 0x08 |
| 28 #define FPMB_MOTION_UP_MASK 0x10 |
| 29 #define FPMB_MOTION_DOWN_MASK 0x20 |
| 30 |
| 31 #define FPMB_ERROR_SMALL_MASK 0x40 |
| 32 #define FPMB_ERROR_LARGE_MASK 0x80 |
| 33 #define FPMB_ERROR_SMALL_TH 2000 |
| 34 #define FPMB_ERROR_LARGE_TH 48000 |
| 35 |
22 typedef struct { | 36 typedef struct { |
23 uint8_t *mb_stats_start; | 37 uint8_t *mb_stats_start; |
24 uint8_t *mb_stats_end; | 38 uint8_t *mb_stats_end; |
25 } FIRSTPASS_MB_STATS; | 39 } FIRSTPASS_MB_STATS; |
26 #endif | 40 #endif |
27 | 41 |
28 typedef struct { | 42 typedef struct { |
29 double frame; | 43 double frame; |
30 double intra_error; | 44 double intra_error; |
31 double coded_error; | 45 double coded_error; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 void vp9_init_second_pass(struct VP9_COMP *cpi); | 127 void vp9_init_second_pass(struct VP9_COMP *cpi); |
114 void vp9_rc_get_second_pass_params(struct VP9_COMP *cpi); | 128 void vp9_rc_get_second_pass_params(struct VP9_COMP *cpi); |
115 | 129 |
116 // Post encode update of the rate control parameters for 2-pass | 130 // Post encode update of the rate control parameters for 2-pass |
117 void vp9_twopass_postencode_update(struct VP9_COMP *cpi); | 131 void vp9_twopass_postencode_update(struct VP9_COMP *cpi); |
118 #ifdef __cplusplus | 132 #ifdef __cplusplus |
119 } // extern "C" | 133 } // extern "C" |
120 #endif | 134 #endif |
121 | 135 |
122 #endif // VP9_ENCODER_VP9_FIRSTPASS_H_ | 136 #endif // VP9_ENCODER_VP9_FIRSTPASS_H_ |
OLD | NEW |