00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00030 #ifndef VP8_H
00031 #define VP8_H
00032 #include "vpx_codec_impl_top.h"
00033
00038 enum vp8_dec_control_id
00039 {
00040 VP8_SET_REFERENCE = 1,
00041 VP8_COPY_REFERENCE = 2,
00042 VP8_SET_POSTPROC = 3,
00043 VP8_COMMON_CTRL_ID_MAX
00044 };
00045
00050 enum vp8_postproc_level
00051 {
00052 VP8_NOFILTERING = 0,
00053 VP8_DEBLOCK = 1,
00054 VP8_DEMACROBLOCK = 2,
00055 VP8_ADDNOISE = 4,
00056 };
00057
00065 typedef struct vp8_postproc_cfg
00066 {
00067 int post_proc_flag;
00068 int deblocking_level;
00069 int noise_level;
00070 } vp8_postproc_cfg_t;
00071
00076 typedef enum vpx_ref_frame_type
00077 {
00078 VP8_LAST_FRAME = 1,
00079 VP8_GOLD_FRAME = 2,
00080 VP8_ALTR_FRAME = 4
00081 } vpx_ref_frame_type_t;
00082
00088 typedef struct vpx_ref_frame
00089 {
00090 vpx_ref_frame_type_t frame_type;
00091 vpx_image_t img;
00092 } vpx_ref_frame_t;
00093
00094
00100 VPX_CTRL_USE_TYPE(VP8_SET_REFERENCE, vpx_ref_frame_t *)
00101 VPX_CTRL_USE_TYPE(VP8_COPY_REFERENCE, vpx_ref_frame_t *)
00102 VPX_CTRL_USE_TYPE(VP8_SET_POSTPROC, vp8_postproc_cfg_t *)
00103
00104
00107 #if !defined(VPX_CODEC_DISABLE_COMPAT) || !VPX_CODEC_DISABLE_COMPAT
00108
00109
00110
00111
00112 DECLSPEC_DEPRECATED extern vpx_codec_iface_t vpx_codec_vp8_algo DEPRECATED;
00113 #endif
00114
00115 #include "vpx_codec_impl_bottom.h"
00116 #endif