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