1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp8/common/onyxd.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,63 @@ 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 + 1.15 +#ifndef __INC_VP8D_H 1.16 +#define __INC_VP8D_H 1.17 + 1.18 + 1.19 +/* Create/destroy static data structures. */ 1.20 +#ifdef __cplusplus 1.21 +extern "C" 1.22 +{ 1.23 +#endif 1.24 +#include "vpx_scale/yv12config.h" 1.25 +#include "ppflags.h" 1.26 +#include "vpx_ports/mem.h" 1.27 +#include "vpx/vpx_codec.h" 1.28 +#include "vpx/vp8.h" 1.29 + 1.30 + struct VP8D_COMP; 1.31 + 1.32 + typedef struct 1.33 + { 1.34 + int Width; 1.35 + int Height; 1.36 + int Version; 1.37 + int postprocess; 1.38 + int max_threads; 1.39 + int error_concealment; 1.40 + } VP8D_CONFIG; 1.41 + 1.42 + typedef enum 1.43 + { 1.44 + VP8D_OK = 0 1.45 + } VP8D_SETTING; 1.46 + 1.47 + void vp8dx_initialize(void); 1.48 + 1.49 + void vp8dx_set_setting(struct VP8D_COMP* comp, VP8D_SETTING oxst, int x); 1.50 + 1.51 + int vp8dx_get_setting(struct VP8D_COMP* comp, VP8D_SETTING oxst); 1.52 + 1.53 + int vp8dx_receive_compressed_data(struct VP8D_COMP* comp, 1.54 + size_t size, const uint8_t *dest, 1.55 + int64_t time_stamp); 1.56 + int vp8dx_get_raw_frame(struct VP8D_COMP* comp, YV12_BUFFER_CONFIG *sd, int64_t *time_stamp, int64_t *time_end_stamp, vp8_ppflags_t *flags); 1.57 + 1.58 + vpx_codec_err_t vp8dx_get_reference(struct VP8D_COMP* comp, enum vpx_ref_frame_type ref_frame_flag, YV12_BUFFER_CONFIG *sd); 1.59 + vpx_codec_err_t vp8dx_set_reference(struct VP8D_COMP* comp, enum vpx_ref_frame_type ref_frame_flag, YV12_BUFFER_CONFIG *sd); 1.60 + 1.61 +#ifdef __cplusplus 1.62 +} 1.63 +#endif 1.64 + 1.65 + 1.66 +#endif