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 #ifndef VPX_VP8CX_H_ | 10 #ifndef VPX_VP8CX_H_ |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 | 188 |
189 /* TODO(jkoleszar): Move to vp9cx.h */ | 189 /* TODO(jkoleszar): Move to vp9cx.h */ |
190 VP9E_SET_LOSSLESS, | 190 VP9E_SET_LOSSLESS, |
191 VP9E_SET_TILE_COLUMNS, | 191 VP9E_SET_TILE_COLUMNS, |
192 VP9E_SET_TILE_ROWS, | 192 VP9E_SET_TILE_ROWS, |
193 VP9E_SET_FRAME_PARALLEL_DECODING, | 193 VP9E_SET_FRAME_PARALLEL_DECODING, |
194 VP9E_SET_AQ_MODE, | 194 VP9E_SET_AQ_MODE, |
195 | 195 |
196 VP9E_SET_SVC, | 196 VP9E_SET_SVC, |
197 VP9E_SET_SVC_PARAMETERS | 197 VP9E_SET_SVC_PARAMETERS, |
| 198 VP9E_SET_SVC_LAYER_ID |
198 }; | 199 }; |
199 | 200 |
200 /*!\brief vpx 1-D scaling mode | 201 /*!\brief vpx 1-D scaling mode |
201 * | 202 * |
202 * This set of constants define 1-D vpx scaling modes | 203 * This set of constants define 1-D vpx scaling modes |
203 */ | 204 */ |
204 typedef enum vpx_scaling_mode_1d { | 205 typedef enum vpx_scaling_mode_1d { |
205 VP8E_NORMAL = 0, | 206 VP8E_NORMAL = 0, |
206 VP8E_FOURFIVE = 1, | 207 VP8E_FOURFIVE = 1, |
207 VP8E_THREEFIVE = 2, | 208 VP8E_THREEFIVE = 2, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 } vp8e_tuning; | 279 } vp8e_tuning; |
279 | 280 |
280 /*!\brief vp9 svc parameters | 281 /*!\brief vp9 svc parameters |
281 * | 282 * |
282 * This defines parameters for svc encoding. | 283 * This defines parameters for svc encoding. |
283 * | 284 * |
284 */ | 285 */ |
285 typedef struct vpx_svc_parameters { | 286 typedef struct vpx_svc_parameters { |
286 unsigned int width; /**< width of current spatial layer */ | 287 unsigned int width; /**< width of current spatial layer */ |
287 unsigned int height; /**< height of current spatial layer */ | 288 unsigned int height; /**< height of current spatial layer */ |
288 int layer; /**< current layer number - 0 = base */ | 289 int spatial_layer; /**< current spatial layer number - 0 = base */ |
| 290 int temporal_layer; /**< current temporal layer number - 0 = base */ |
289 int flags; /**< encode frame flags */ | 291 int flags; /**< encode frame flags */ |
290 int max_quantizer; /**< max quantizer for current layer */ | 292 int max_quantizer; /**< max quantizer for current layer */ |
291 int min_quantizer; /**< min quantizer for current layer */ | 293 int min_quantizer; /**< min quantizer for current layer */ |
292 int distance_from_i_frame; /**< frame number within current gop */ | 294 int distance_from_i_frame; /**< frame number within current gop */ |
293 int lst_fb_idx; /**< last frame frame buffer index */ | 295 int lst_fb_idx; /**< last frame frame buffer index */ |
294 int gld_fb_idx; /**< golden frame frame buffer index */ | 296 int gld_fb_idx; /**< golden frame frame buffer index */ |
295 int alt_fb_idx; /**< alt reference frame frame buffer index */ | 297 int alt_fb_idx; /**< alt reference frame frame buffer index */ |
296 } vpx_svc_parameters_t; | 298 } vpx_svc_parameters_t; |
297 | 299 |
| 300 typedef struct vpx_svc_layer_id { |
| 301 int spatial_layer_id; |
| 302 int temporal_layer_id; |
| 303 } vpx_svc_layer_id_t; |
| 304 |
298 /*!\brief VP8 encoder control function parameter type | 305 /*!\brief VP8 encoder control function parameter type |
299 * | 306 * |
300 * Defines the data types that VP8E control functions take. Note that | 307 * Defines the data types that VP8E control functions take. Note that |
301 * additional common controls are defined in vp8.h | 308 * additional common controls are defined in vp8.h |
302 * | 309 * |
303 */ | 310 */ |
304 | 311 |
305 | 312 |
306 /* These controls have been deprecated in favor of the flags parameter to | 313 /* These controls have been deprecated in favor of the flags parameter to |
307 * vpx_codec_encode(). See the definition of VP8_EFLAG_* above. | 314 * vpx_codec_encode(). See the definition of VP8_EFLAG_* above. |
308 */ | 315 */ |
309 VPX_CTRL_USE_TYPE_DEPRECATED(VP8E_UPD_ENTROPY, int) | 316 VPX_CTRL_USE_TYPE_DEPRECATED(VP8E_UPD_ENTROPY, int) |
310 VPX_CTRL_USE_TYPE_DEPRECATED(VP8E_UPD_REFERENCE, int) | 317 VPX_CTRL_USE_TYPE_DEPRECATED(VP8E_UPD_REFERENCE, int) |
311 VPX_CTRL_USE_TYPE_DEPRECATED(VP8E_USE_REFERENCE, int) | 318 VPX_CTRL_USE_TYPE_DEPRECATED(VP8E_USE_REFERENCE, int) |
312 | 319 |
313 VPX_CTRL_USE_TYPE(VP8E_SET_ROI_MAP, vpx_roi_map_t *) | 320 VPX_CTRL_USE_TYPE(VP8E_SET_ROI_MAP, vpx_roi_map_t *) |
314 VPX_CTRL_USE_TYPE(VP8E_SET_ACTIVEMAP, vpx_active_map_t *) | 321 VPX_CTRL_USE_TYPE(VP8E_SET_ACTIVEMAP, vpx_active_map_t *) |
315 VPX_CTRL_USE_TYPE(VP8E_SET_SCALEMODE, vpx_scaling_mode_t *) | 322 VPX_CTRL_USE_TYPE(VP8E_SET_SCALEMODE, vpx_scaling_mode_t *) |
316 | 323 |
317 VPX_CTRL_USE_TYPE(VP9E_SET_SVC, int) | 324 VPX_CTRL_USE_TYPE(VP9E_SET_SVC, int) |
318 VPX_CTRL_USE_TYPE(VP9E_SET_SVC_PARAMETERS, vpx_svc_parameters_t *) | 325 VPX_CTRL_USE_TYPE(VP9E_SET_SVC_PARAMETERS, vpx_svc_parameters_t *) |
| 326 VPX_CTRL_USE_TYPE(VP9E_SET_SVC_LAYER_ID, vpx_svc_layer_id_t *) |
319 | 327 |
320 VPX_CTRL_USE_TYPE(VP8E_SET_CPUUSED, int) | 328 VPX_CTRL_USE_TYPE(VP8E_SET_CPUUSED, int) |
321 VPX_CTRL_USE_TYPE(VP8E_SET_ENABLEAUTOALTREF, unsigned int) | 329 VPX_CTRL_USE_TYPE(VP8E_SET_ENABLEAUTOALTREF, unsigned int) |
322 VPX_CTRL_USE_TYPE(VP8E_SET_NOISE_SENSITIVITY, unsigned int) | 330 VPX_CTRL_USE_TYPE(VP8E_SET_NOISE_SENSITIVITY, unsigned int) |
323 VPX_CTRL_USE_TYPE(VP8E_SET_SHARPNESS, unsigned int) | 331 VPX_CTRL_USE_TYPE(VP8E_SET_SHARPNESS, unsigned int) |
324 VPX_CTRL_USE_TYPE(VP8E_SET_STATIC_THRESHOLD, unsigned int) | 332 VPX_CTRL_USE_TYPE(VP8E_SET_STATIC_THRESHOLD, unsigned int) |
325 VPX_CTRL_USE_TYPE(VP8E_SET_TOKEN_PARTITIONS, int) /* vp8e_token_partitions */ | 333 VPX_CTRL_USE_TYPE(VP8E_SET_TOKEN_PARTITIONS, int) /* vp8e_token_partitions */ |
326 | 334 |
327 VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_MAXFRAMES, unsigned int) | 335 VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_MAXFRAMES, unsigned int) |
328 VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_STRENGTH, unsigned int) | 336 VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_STRENGTH, unsigned int) |
(...skipping 14 matching lines...) Expand all Loading... |
343 VPX_CTRL_USE_TYPE(VP9E_SET_FRAME_PARALLEL_DECODING, unsigned int) | 351 VPX_CTRL_USE_TYPE(VP9E_SET_FRAME_PARALLEL_DECODING, unsigned int) |
344 | 352 |
345 VPX_CTRL_USE_TYPE(VP9E_SET_AQ_MODE, unsigned int) | 353 VPX_CTRL_USE_TYPE(VP9E_SET_AQ_MODE, unsigned int) |
346 | 354 |
347 /*! @} - end defgroup vp8_encoder */ | 355 /*! @} - end defgroup vp8_encoder */ |
348 #ifdef __cplusplus | 356 #ifdef __cplusplus |
349 } // extern "C" | 357 } // extern "C" |
350 #endif | 358 #endif |
351 | 359 |
352 #endif // VPX_VP8CX_H_ | 360 #endif // VPX_VP8CX_H_ |
OLD | NEW |