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: michael@0: #ifndef __INC_VP8D_H michael@0: #define __INC_VP8D_H michael@0: michael@0: michael@0: /* Create/destroy static data structures. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: { michael@0: #endif michael@0: #include "vpx_scale/yv12config.h" michael@0: #include "ppflags.h" michael@0: #include "vpx_ports/mem.h" michael@0: #include "vpx/vpx_codec.h" michael@0: #include "vpx/vp8.h" michael@0: michael@0: struct VP8D_COMP; michael@0: michael@0: typedef struct michael@0: { michael@0: int Width; michael@0: int Height; michael@0: int Version; michael@0: int postprocess; michael@0: int max_threads; michael@0: int error_concealment; michael@0: } VP8D_CONFIG; michael@0: michael@0: typedef enum michael@0: { michael@0: VP8D_OK = 0 michael@0: } VP8D_SETTING; michael@0: michael@0: void vp8dx_initialize(void); michael@0: michael@0: void vp8dx_set_setting(struct VP8D_COMP* comp, VP8D_SETTING oxst, int x); michael@0: michael@0: int vp8dx_get_setting(struct VP8D_COMP* comp, VP8D_SETTING oxst); michael@0: michael@0: int vp8dx_receive_compressed_data(struct VP8D_COMP* comp, michael@0: size_t size, const uint8_t *dest, michael@0: int64_t time_stamp); michael@0: 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); michael@0: michael@0: vpx_codec_err_t vp8dx_get_reference(struct VP8D_COMP* comp, enum vpx_ref_frame_type ref_frame_flag, YV12_BUFFER_CONFIG *sd); michael@0: vpx_codec_err_t vp8dx_set_reference(struct VP8D_COMP* comp, enum vpx_ref_frame_type ref_frame_flag, YV12_BUFFER_CONFIG *sd); michael@0: michael@0: #ifdef __cplusplus michael@0: } michael@0: #endif michael@0: michael@0: michael@0: #endif