1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp9/decoder/vp9_onyxd.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,69 @@ 1.4 +/* 1.5 + * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license 1.8 + * that can be found in the LICENSE file in the root of the source 1.9 + * tree. An additional intellectual property rights grant can be found 1.10 + * in the file PATENTS. All contributing project authors may 1.11 + * be found in the AUTHORS file in the root of the source tree. 1.12 + */ 1.13 + 1.14 +#ifndef VP9_DECODER_VP9_ONYXD_H_ 1.15 +#define VP9_DECODER_VP9_ONYXD_H_ 1.16 + 1.17 +#ifdef __cplusplus 1.18 +extern "C" { 1.19 +#endif 1.20 + 1.21 +#include "vpx_scale/yv12config.h" 1.22 +#include "vp9/common/vp9_ppflags.h" 1.23 +#include "vpx/vpx_codec.h" 1.24 + 1.25 +typedef void *VP9D_PTR; 1.26 + 1.27 +typedef struct { 1.28 + int width; 1.29 + int height; 1.30 + int version; 1.31 + int postprocess; 1.32 + int max_threads; 1.33 + int inv_tile_order; 1.34 + int input_partition; 1.35 +} VP9D_CONFIG; 1.36 + 1.37 +typedef enum { 1.38 + VP9_LAST_FLAG = 1, 1.39 + VP9_GOLD_FLAG = 2, 1.40 + VP9_ALT_FLAG = 4 1.41 +} VP9_REFFRAME; 1.42 + 1.43 +void vp9_initialize_dec(); 1.44 + 1.45 +int vp9_receive_compressed_data(VP9D_PTR comp, 1.46 + size_t size, const uint8_t **dest, 1.47 + int64_t time_stamp); 1.48 + 1.49 +int vp9_get_raw_frame(VP9D_PTR comp, YV12_BUFFER_CONFIG *sd, 1.50 + int64_t *time_stamp, int64_t *time_end_stamp, 1.51 + vp9_ppflags_t *flags); 1.52 + 1.53 +vpx_codec_err_t vp9_copy_reference_dec(VP9D_PTR comp, 1.54 + VP9_REFFRAME ref_frame_flag, 1.55 + YV12_BUFFER_CONFIG *sd); 1.56 + 1.57 +vpx_codec_err_t vp9_set_reference_dec(VP9D_PTR comp, 1.58 + VP9_REFFRAME ref_frame_flag, 1.59 + YV12_BUFFER_CONFIG *sd); 1.60 + 1.61 +int vp9_get_reference_dec(VP9D_PTR ptr, int index, YV12_BUFFER_CONFIG **fb); 1.62 + 1.63 + 1.64 +VP9D_PTR vp9_create_decompressor(VP9D_CONFIG *oxcf); 1.65 + 1.66 +void vp9_remove_decompressor(VP9D_PTR comp); 1.67 + 1.68 +#ifdef __cplusplus 1.69 +} 1.70 +#endif 1.71 + 1.72 +#endif // VP9_DECODER_VP9_ONYXD_H_