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 #ifndef VP9_COMMON_VP9_ONYXD_H_ |
| 12 #define VP9_COMMON_VP9_ONYXD_H_ |
| 13 |
| 14 /* Create/destroy static data structures. */ |
| 15 #ifdef __cplusplus |
| 16 extern "C" { |
| 17 #endif |
| 18 #include "vpx_scale/yv12config.h" |
| 19 #include "vp9/common/vp9_ppflags.h" |
| 20 #include "vpx_ports/mem.h" |
| 21 #include "vpx/vpx_codec.h" |
| 22 |
| 23 typedef void *VP9D_PTR; |
| 24 typedef struct { |
| 25 int Width; |
| 26 int Height; |
| 27 int Version; |
| 28 int postprocess; |
| 29 int max_threads; |
| 30 int input_partition; |
| 31 } VP9D_CONFIG; |
| 32 typedef enum { |
| 33 VP9_LAST_FLAG = 1, |
| 34 VP9_GOLD_FLAG = 2, |
| 35 VP9_ALT_FLAG = 4 |
| 36 } VP9_REFFRAME; |
| 37 |
| 38 void vp9_initialize_dec(void); |
| 39 |
| 40 int vp9_receive_compressed_data(VP9D_PTR comp, unsigned long size, |
| 41 const unsigned char **dest, |
| 42 int64_t time_stamp); |
| 43 |
| 44 int vp9_get_raw_frame(VP9D_PTR comp, YV12_BUFFER_CONFIG *sd, |
| 45 int64_t *time_stamp, int64_t *time_end_stamp, |
| 46 vp9_ppflags_t *flags); |
| 47 |
| 48 vpx_codec_err_t vp9_get_reference_dec(VP9D_PTR comp, |
| 49 VP9_REFFRAME ref_frame_flag, |
| 50 YV12_BUFFER_CONFIG *sd); |
| 51 |
| 52 vpx_codec_err_t vp9_set_reference_dec(VP9D_PTR comp, |
| 53 VP9_REFFRAME ref_frame_flag, |
| 54 YV12_BUFFER_CONFIG *sd); |
| 55 |
| 56 VP9D_PTR vp9_create_decompressor(VP9D_CONFIG *oxcf); |
| 57 |
| 58 void vp9_remove_decompressor(VP9D_PTR comp); |
| 59 |
| 60 #ifdef __cplusplus |
| 61 } |
| 62 #endif |
| 63 |
| 64 #endif // VP9_COMMON_VP9_ONYXD_H_ |
OLD | NEW |