| 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_DECODER_VP9_ONYXD_H_ | 11 #ifndef VP9_DECODER_VP9_ONYXD_H_ |
| 12 #define VP9_DECODER_VP9_ONYXD_H_ | 12 #define VP9_DECODER_VP9_ONYXD_H_ |
| 13 | 13 |
| 14 #include "vpx_scale/yv12config.h" | 14 #include "vpx_scale/yv12config.h" |
| 15 #include "vp9/common/vp9_ppflags.h" | 15 #include "vp9/common/vp9_ppflags.h" |
| 16 #include "vpx/vpx_codec.h" | 16 #include "vpx/vpx_codec.h" |
| 17 | 17 |
| 18 #ifdef __cplusplus | 18 #ifdef __cplusplus |
| 19 extern "C" { | 19 extern "C" { |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 typedef void *VP9D_PTR; | 22 struct VP9Decompressor; |
| 23 | 23 |
| 24 typedef struct { | 24 typedef struct { |
| 25 int width; | 25 int width; |
| 26 int height; | 26 int height; |
| 27 int version; | 27 int version; |
| 28 int postprocess; | 28 int postprocess; |
| 29 int max_threads; | 29 int max_threads; |
| 30 int inv_tile_order; | 30 int inv_tile_order; |
| 31 int input_partition; | 31 int input_partition; |
| 32 } VP9D_CONFIG; | 32 } VP9D_CONFIG; |
| 33 | 33 |
| 34 typedef enum { | 34 typedef enum { |
| 35 VP9_LAST_FLAG = 1, | 35 VP9_LAST_FLAG = 1, |
| 36 VP9_GOLD_FLAG = 2, | 36 VP9_GOLD_FLAG = 2, |
| 37 VP9_ALT_FLAG = 4 | 37 VP9_ALT_FLAG = 4 |
| 38 } VP9_REFFRAME; | 38 } VP9_REFFRAME; |
| 39 | 39 |
| 40 void vp9_initialize_dec(); | 40 void vp9_initialize_dec(); |
| 41 | 41 |
| 42 int vp9_receive_compressed_data(VP9D_PTR comp, | 42 int vp9_receive_compressed_data(struct VP9Decompressor *pbi, |
| 43 size_t size, const uint8_t **dest, | 43 size_t size, const uint8_t **dest, |
| 44 int64_t time_stamp); | 44 int64_t time_stamp); |
| 45 | 45 |
| 46 int vp9_get_raw_frame(VP9D_PTR comp, YV12_BUFFER_CONFIG *sd, | 46 int vp9_get_raw_frame(struct VP9Decompressor *pbi, |
| 47 YV12_BUFFER_CONFIG *sd, |
| 47 int64_t *time_stamp, int64_t *time_end_stamp, | 48 int64_t *time_stamp, int64_t *time_end_stamp, |
| 48 vp9_ppflags_t *flags); | 49 vp9_ppflags_t *flags); |
| 49 | 50 |
| 50 vpx_codec_err_t vp9_copy_reference_dec(VP9D_PTR comp, | 51 vpx_codec_err_t vp9_copy_reference_dec(struct VP9Decompressor *pbi, |
| 51 VP9_REFFRAME ref_frame_flag, | 52 VP9_REFFRAME ref_frame_flag, |
| 52 YV12_BUFFER_CONFIG *sd); | 53 YV12_BUFFER_CONFIG *sd); |
| 53 | 54 |
| 54 vpx_codec_err_t vp9_set_reference_dec(VP9D_PTR comp, | 55 vpx_codec_err_t vp9_set_reference_dec(struct VP9Decompressor *pbi, |
| 55 VP9_REFFRAME ref_frame_flag, | 56 VP9_REFFRAME ref_frame_flag, |
| 56 YV12_BUFFER_CONFIG *sd); | 57 YV12_BUFFER_CONFIG *sd); |
| 57 | 58 |
| 58 int vp9_get_reference_dec(VP9D_PTR ptr, int index, YV12_BUFFER_CONFIG **fb); | 59 int vp9_get_reference_dec(struct VP9Decompressor *pbi, |
| 60 int index, YV12_BUFFER_CONFIG **fb); |
| 59 | 61 |
| 60 | 62 |
| 61 VP9D_PTR vp9_create_decompressor(VP9D_CONFIG *oxcf); | 63 struct VP9Decompressor *vp9_create_decompressor(VP9D_CONFIG *oxcf); |
| 62 | 64 |
| 63 void vp9_remove_decompressor(VP9D_PTR comp); | 65 void vp9_remove_decompressor(struct VP9Decompressor *pbi); |
| 64 | 66 |
| 65 #ifdef __cplusplus | 67 #ifdef __cplusplus |
| 66 } // extern "C" | 68 } // extern "C" |
| 67 #endif | 69 #endif |
| 68 | 70 |
| 69 #endif // VP9_DECODER_VP9_ONYXD_H_ | 71 #endif // VP9_DECODER_VP9_ONYXD_H_ |
| OLD | NEW |