| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 /*!\brief Instance private storage | 331 /*!\brief Instance private storage |
| 332 * | 332 * |
| 333 * This structure is allocated by the algorithm's init function. It can be | 333 * This structure is allocated by the algorithm's init function. It can be |
| 334 * extended in one of two ways. First, a second, algorithm specific structure | 334 * extended in one of two ways. First, a second, algorithm specific structure |
| 335 * can be allocated and the priv member pointed to it. Alternatively, this | 335 * can be allocated and the priv member pointed to it. Alternatively, this |
| 336 * structure can be made the first member of the algorithm specific structure, | 336 * structure can be made the first member of the algorithm specific structure, |
| 337 * and the pointer cast to the proper type. | 337 * and the pointer cast to the proper type. |
| 338 */ | 338 */ |
| 339 struct vpx_codec_priv { | 339 struct vpx_codec_priv { |
| 340 unsigned int sz; | 340 unsigned int sz; |
| 341 vpx_codec_iface_t *iface; | |
| 342 struct vpx_codec_alg_priv *alg_priv; | 341 struct vpx_codec_alg_priv *alg_priv; |
| 343 const char *err_detail; | 342 const char *err_detail; |
| 344 vpx_codec_flags_t init_flags; | 343 vpx_codec_flags_t init_flags; |
| 345 struct { | 344 struct { |
| 346 vpx_codec_priv_cb_pair_t put_frame_cb; | 345 vpx_codec_priv_cb_pair_t put_frame_cb; |
| 347 vpx_codec_priv_cb_pair_t put_slice_cb; | 346 vpx_codec_priv_cb_pair_t put_slice_cb; |
| 348 } dec; | 347 } dec; |
| 349 struct { | 348 struct { |
| 350 int tbd; | |
| 351 struct vpx_fixed_buf cx_data_dst_buf; | 349 struct vpx_fixed_buf cx_data_dst_buf; |
| 352 unsigned int cx_data_pad_before; | 350 unsigned int cx_data_pad_before; |
| 353 unsigned int cx_data_pad_after; | 351 unsigned int cx_data_pad_after; |
| 354 vpx_codec_cx_pkt_t cx_data_pkt; | 352 vpx_codec_cx_pkt_t cx_data_pkt; |
| 355 unsigned int total_encoders; | 353 unsigned int total_encoders; |
| 356 } enc; | 354 } enc; |
| 357 }; | 355 }; |
| 358 | 356 |
| 359 /* | 357 /* |
| 360 * Multi-resolution encoding internal configuration | 358 * Multi-resolution encoding internal configuration |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 void vpx_internal_error(struct vpx_internal_error_info *info, | 432 void vpx_internal_error(struct vpx_internal_error_info *info, |
| 435 vpx_codec_err_t error, | 433 vpx_codec_err_t error, |
| 436 const char *fmt, | 434 const char *fmt, |
| 437 ...); | 435 ...); |
| 438 | 436 |
| 439 #ifdef __cplusplus | 437 #ifdef __cplusplus |
| 440 } // extern "C" | 438 } // extern "C" |
| 441 #endif | 439 #endif |
| 442 | 440 |
| 443 #endif // VPX_INTERNAL_VPX_CODEC_INTERNAL_H_ | 441 #endif // VPX_INTERNAL_VPX_CODEC_INTERNAL_H_ |
| OLD | NEW |