| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 /*!\brief control function to set svc layer for spatial and temporal. |
| 199 * \note Valid ranges: 0..#vpx_codec_enc_cfg::ss_number_layers for spatial |
| 200 * layer and 0..#vpx_codec_enc_cfg::ts_number_layers for |
| 201 * temporal layer. |
| 202 */ |
| 198 VP9E_SET_SVC_LAYER_ID | 203 VP9E_SET_SVC_LAYER_ID |
| 199 }; | 204 }; |
| 200 | 205 |
| 201 /*!\brief vpx 1-D scaling mode | 206 /*!\brief vpx 1-D scaling mode |
| 202 * | 207 * |
| 203 * This set of constants define 1-D vpx scaling modes | 208 * This set of constants define 1-D vpx scaling modes |
| 204 */ | 209 */ |
| 205 typedef enum vpx_scaling_mode_1d { | 210 typedef enum vpx_scaling_mode_1d { |
| 206 VP8E_NORMAL = 0, | 211 VP8E_NORMAL = 0, |
| 207 VP8E_FOURFIVE = 1, | 212 VP8E_FOURFIVE = 1, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 int temporal_layer; /**< current temporal layer number - 0 = base */ | 295 int temporal_layer; /**< current temporal layer number - 0 = base */ |
| 291 int flags; /**< encode frame flags */ | 296 int flags; /**< encode frame flags */ |
| 292 int max_quantizer; /**< max quantizer for current layer */ | 297 int max_quantizer; /**< max quantizer for current layer */ |
| 293 int min_quantizer; /**< min quantizer for current layer */ | 298 int min_quantizer; /**< min quantizer for current layer */ |
| 294 int distance_from_i_frame; /**< frame number within current gop */ | 299 int distance_from_i_frame; /**< frame number within current gop */ |
| 295 int lst_fb_idx; /**< last frame frame buffer index */ | 300 int lst_fb_idx; /**< last frame frame buffer index */ |
| 296 int gld_fb_idx; /**< golden frame frame buffer index */ | 301 int gld_fb_idx; /**< golden frame frame buffer index */ |
| 297 int alt_fb_idx; /**< alt reference frame frame buffer index */ | 302 int alt_fb_idx; /**< alt reference frame frame buffer index */ |
| 298 } vpx_svc_parameters_t; | 303 } vpx_svc_parameters_t; |
| 299 | 304 |
| 305 /*!\brief vp9 svc layer parameters |
| 306 * |
| 307 * This defines the spatial and temporal layer id numbers for svc encoding. |
| 308 * This is used with the #VP9E_SET_SVC_LAYER_ID control to set the spatial and |
| 309 * temporal layer id for the current frame. |
| 310 * |
| 311 */ |
| 300 typedef struct vpx_svc_layer_id { | 312 typedef struct vpx_svc_layer_id { |
| 301 int spatial_layer_id; | 313 int spatial_layer_id; /**< Spatial layer id number. */ |
| 302 int temporal_layer_id; | 314 int temporal_layer_id; /**< Temporal layer id number. */ |
| 303 } vpx_svc_layer_id_t; | 315 } vpx_svc_layer_id_t; |
| 304 | 316 |
| 305 /*!\brief VP8 encoder control function parameter type | 317 /*!\brief VP8 encoder control function parameter type |
| 306 * | 318 * |
| 307 * Defines the data types that VP8E control functions take. Note that | 319 * Defines the data types that VP8E control functions take. Note that |
| 308 * additional common controls are defined in vp8.h | 320 * additional common controls are defined in vp8.h |
| 309 * | 321 * |
| 310 */ | 322 */ |
| 311 | 323 |
| 312 | 324 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 VPX_CTRL_USE_TYPE(VP9E_SET_FRAME_PARALLEL_DECODING, unsigned int) | 363 VPX_CTRL_USE_TYPE(VP9E_SET_FRAME_PARALLEL_DECODING, unsigned int) |
| 352 | 364 |
| 353 VPX_CTRL_USE_TYPE(VP9E_SET_AQ_MODE, unsigned int) | 365 VPX_CTRL_USE_TYPE(VP9E_SET_AQ_MODE, unsigned int) |
| 354 | 366 |
| 355 /*! @} - end defgroup vp8_encoder */ | 367 /*! @} - end defgroup vp8_encoder */ |
| 356 #ifdef __cplusplus | 368 #ifdef __cplusplus |
| 357 } // extern "C" | 369 } // extern "C" |
| 358 #endif | 370 #endif |
| 359 | 371 |
| 360 #endif // VPX_VP8CX_H_ | 372 #endif // VPX_VP8CX_H_ |
| OLD | NEW |