michael@0: /* michael@0: * Copyright (c) 2010 The WebM project authors. All Rights Reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: #ifndef VP9_DECODER_VP9_ONYXD_H_ michael@0: #define VP9_DECODER_VP9_ONYXD_H_ michael@0: michael@0: #ifdef __cplusplus michael@0: extern "C" { michael@0: #endif michael@0: michael@0: #include "vpx_scale/yv12config.h" michael@0: #include "vp9/common/vp9_ppflags.h" michael@0: #include "vpx/vpx_codec.h" michael@0: michael@0: typedef void *VP9D_PTR; michael@0: michael@0: typedef struct { michael@0: int width; michael@0: int height; michael@0: int version; michael@0: int postprocess; michael@0: int max_threads; michael@0: int inv_tile_order; michael@0: int input_partition; michael@0: } VP9D_CONFIG; michael@0: michael@0: typedef enum { michael@0: VP9_LAST_FLAG = 1, michael@0: VP9_GOLD_FLAG = 2, michael@0: VP9_ALT_FLAG = 4 michael@0: } VP9_REFFRAME; michael@0: michael@0: void vp9_initialize_dec(); michael@0: michael@0: int vp9_receive_compressed_data(VP9D_PTR comp, michael@0: size_t size, const uint8_t **dest, michael@0: int64_t time_stamp); michael@0: michael@0: int vp9_get_raw_frame(VP9D_PTR comp, YV12_BUFFER_CONFIG *sd, michael@0: int64_t *time_stamp, int64_t *time_end_stamp, michael@0: vp9_ppflags_t *flags); michael@0: michael@0: vpx_codec_err_t vp9_copy_reference_dec(VP9D_PTR comp, michael@0: VP9_REFFRAME ref_frame_flag, michael@0: YV12_BUFFER_CONFIG *sd); michael@0: michael@0: vpx_codec_err_t vp9_set_reference_dec(VP9D_PTR comp, michael@0: VP9_REFFRAME ref_frame_flag, michael@0: YV12_BUFFER_CONFIG *sd); michael@0: michael@0: int vp9_get_reference_dec(VP9D_PTR ptr, int index, YV12_BUFFER_CONFIG **fb); michael@0: michael@0: michael@0: VP9D_PTR vp9_create_decompressor(VP9D_CONFIG *oxcf); michael@0: michael@0: void vp9_remove_decompressor(VP9D_PTR comp); michael@0: michael@0: #ifdef __cplusplus michael@0: } michael@0: #endif michael@0: michael@0: #endif // VP9_DECODER_VP9_ONYXD_H_