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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 USAGE_CONSTANT_QUALITY = 0x3, | 48 USAGE_CONSTANT_QUALITY = 0x3, |
49 } END_USAGE; | 49 } END_USAGE; |
50 | 50 |
51 | 51 |
52 typedef enum { | 52 typedef enum { |
53 MODE_GOODQUALITY = 0x1, | 53 MODE_GOODQUALITY = 0x1, |
54 MODE_BESTQUALITY = 0x2, | 54 MODE_BESTQUALITY = 0x2, |
55 MODE_FIRSTPASS = 0x3, | 55 MODE_FIRSTPASS = 0x3, |
56 MODE_SECONDPASS = 0x4, | 56 MODE_SECONDPASS = 0x4, |
57 MODE_SECONDPASS_BEST = 0x5, | 57 MODE_SECONDPASS_BEST = 0x5, |
| 58 MODE_REALTIME = 0x6, |
58 } MODE; | 59 } MODE; |
59 | 60 |
60 typedef enum { | 61 typedef enum { |
61 FRAMEFLAGS_KEY = 1, | 62 FRAMEFLAGS_KEY = 1, |
62 FRAMEFLAGS_GOLDEN = 2, | 63 FRAMEFLAGS_GOLDEN = 2, |
63 FRAMEFLAGS_ALTREF = 4, | 64 FRAMEFLAGS_ALTREF = 4, |
64 } FRAMETYPE_FLAGS; | 65 } FRAMETYPE_FLAGS; |
65 | 66 |
66 typedef enum { | 67 typedef enum { |
67 NO_AQ = 0, | 68 NO_AQ = 0, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 int lossless; | 140 int lossless; |
140 int aq_mode; // Adaptive Quantization mode | 141 int aq_mode; // Adaptive Quantization mode |
141 | 142 |
142 // two pass datarate control | 143 // two pass datarate control |
143 int two_pass_vbrbias; // two pass datarate control tweaks | 144 int two_pass_vbrbias; // two pass datarate control tweaks |
144 int two_pass_vbrmin_section; | 145 int two_pass_vbrmin_section; |
145 int two_pass_vbrmax_section; | 146 int two_pass_vbrmax_section; |
146 // END DATARATE CONTROL OPTIONS | 147 // END DATARATE CONTROL OPTIONS |
147 // ---------------------------------------------------------------- | 148 // ---------------------------------------------------------------- |
148 | 149 |
149 // Spatial scalability | 150 // Spatial and temporal scalability. |
150 int ss_number_layers; | 151 int ss_number_layers; // Number of spatial layers. |
| 152 int ts_number_layers; // Number of temporal layers. |
| 153 // Bitrate allocation (CBR mode) and framerate factor, for temporal layers. |
| 154 int ts_target_bitrate[VPX_TS_MAX_LAYERS]; |
| 155 int ts_rate_decimator[VPX_TS_MAX_LAYERS]; |
151 | 156 |
152 // these parameters aren't to be used in final build don't use!!! | 157 // these parameters aren't to be used in final build don't use!!! |
153 int play_alternate; | 158 int play_alternate; |
154 int alt_freq; | 159 int alt_freq; |
155 | 160 |
156 int encode_breakout; // early breakout : for video conf recommend 800 | 161 int encode_breakout; // early breakout : for video conf recommend 800 |
157 | 162 |
158 /* Bitfield defining the error resiliency features to enable. | 163 /* Bitfield defining the error resiliency features to enable. |
159 * Can provide decodable frames after losses in previous | 164 * Can provide decodable frames after losses in previous |
160 * frames and decodable partitions after losses in the same frame. | 165 * frames and decodable partitions after losses in the same frame. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 238 |
234 void vp9_set_svc(VP9_PTR comp, int use_svc); | 239 void vp9_set_svc(VP9_PTR comp, int use_svc); |
235 | 240 |
236 int vp9_get_quantizer(VP9_PTR c); | 241 int vp9_get_quantizer(VP9_PTR c); |
237 | 242 |
238 #ifdef __cplusplus | 243 #ifdef __cplusplus |
239 } // extern "C" | 244 } // extern "C" |
240 #endif | 245 #endif |
241 | 246 |
242 #endif // VP9_COMMON_VP9_ONYX_H_ | 247 #endif // VP9_COMMON_VP9_ONYX_H_ |
OLD | NEW |