| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 | |
| 12 #ifndef VP9_COMMON_VP9_ONYXD_H_ | |
| 13 #define VP9_COMMON_VP9_ONYXD_H_ | |
| 14 | |
| 15 | |
| 16 /* Create/destroy static data structures. */ | |
| 17 #ifdef __cplusplus | |
| 18 extern "C" | |
| 19 { | |
| 20 #endif | |
| 21 #include "vp9/common/vp9_type_aliases.h" | |
| 22 #include "vpx_scale/yv12config.h" | |
| 23 #include "vp9/common/vp9_ppflags.h" | |
| 24 #include "vpx_ports/mem.h" | |
| 25 #include "vpx/vpx_codec.h" | |
| 26 | |
| 27 typedef void *VP9D_PTR; | |
| 28 typedef struct { | |
| 29 int Width; | |
| 30 int Height; | |
| 31 int Version; | |
| 32 int postprocess; | |
| 33 int max_threads; | |
| 34 int input_partition; | |
| 35 } VP9D_CONFIG; | |
| 36 typedef enum { | |
| 37 VP9_LAST_FLAG = 1, | |
| 38 VP9_GOLD_FLAG = 2, | |
| 39 VP9_ALT_FLAG = 4 | |
| 40 } VP9_REFFRAME; | |
| 41 | |
| 42 void vp9_initialize_dec(void); | |
| 43 | |
| 44 int vp9_receive_compressed_data(VP9D_PTR comp, unsigned long size, | |
| 45 const unsigned char **dest, | |
| 46 int64_t time_stamp); | |
| 47 | |
| 48 int vp9_get_raw_frame(VP9D_PTR comp, YV12_BUFFER_CONFIG *sd, | |
| 49 int64_t *time_stamp, int64_t *time_end_stamp, | |
| 50 vp9_ppflags_t *flags); | |
| 51 | |
| 52 vpx_codec_err_t vp9_get_reference_dec(VP9D_PTR comp, | |
| 53 VP9_REFFRAME ref_frame_flag, | |
| 54 YV12_BUFFER_CONFIG *sd); | |
| 55 | |
| 56 vpx_codec_err_t vp9_set_reference_dec(VP9D_PTR comp, | |
| 57 VP9_REFFRAME ref_frame_flag, | |
| 58 YV12_BUFFER_CONFIG *sd); | |
| 59 | |
| 60 VP9D_PTR vp9_create_decompressor(VP9D_CONFIG *oxcf); | |
| 61 | |
| 62 void vp9_remove_decompressor(VP9D_PTR comp); | |
| 63 | |
| 64 #ifdef __cplusplus | |
| 65 } | |
| 66 #endif | |
| 67 | |
| 68 #endif // __INC_ONYXD_H | |
| OLD | NEW |