Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00031 #ifndef VP8_H
00032 #define VP8_H
00033 #include "vpx_codec_impl_top.h"
00034
00039 enum vp8_com_control_id
00040 {
00041 VP8_SET_REFERENCE = 1,
00042 VP8_COPY_REFERENCE = 2,
00043 VP8_SET_POSTPROC = 3,
00044 VP8_SET_DBG_COLOR_REF_FRAME = 4,
00045 VP8_SET_DBG_COLOR_MB_MODES = 5,
00046 VP8_SET_DBG_COLOR_B_MODES = 6,
00047 VP8_SET_DBG_DISPLAY_MV = 7,
00048 VP8_COMMON_CTRL_ID_MAX,
00049 VP8_DECODER_CTRL_ID_START = 256
00050 };
00051
00056 enum vp8_postproc_level
00057 {
00058 VP8_NOFILTERING = 0,
00059 VP8_DEBLOCK = 1<<0,
00060 VP8_DEMACROBLOCK = 1<<1,
00061 VP8_ADDNOISE = 1<<2,
00062 VP8_DEBUG_TXT_FRAME_INFO = 1<<3,
00063 VP8_DEBUG_TXT_MBLK_MODES = 1<<4,
00064 VP8_DEBUG_TXT_DC_DIFF = 1<<5,
00065 VP8_DEBUG_TXT_RATE_INFO = 1<<6,
00066 VP8_MFQE = 1<<10
00067 };
00068
00076 typedef struct vp8_postproc_cfg
00077 {
00078 int post_proc_flag;
00079 int deblocking_level;
00080 int noise_level;
00081 } vp8_postproc_cfg_t;
00082
00087 typedef enum vpx_ref_frame_type
00088 {
00089 VP8_LAST_FRAME = 1,
00090 VP8_GOLD_FRAME = 2,
00091 VP8_ALTR_FRAME = 4
00092 } vpx_ref_frame_type_t;
00093
00099 typedef struct vpx_ref_frame
00100 {
00101 vpx_ref_frame_type_t frame_type;
00102 vpx_image_t img;
00103 } vpx_ref_frame_t;
00104
00105
00111 VPX_CTRL_USE_TYPE(VP8_SET_REFERENCE, vpx_ref_frame_t *)
00112 VPX_CTRL_USE_TYPE(VP8_COPY_REFERENCE, vpx_ref_frame_t *)
00113 VPX_CTRL_USE_TYPE(VP8_SET_POSTPROC, vp8_postproc_cfg_t *)
00114 VPX_CTRL_USE_TYPE(VP8_SET_DBG_COLOR_REF_FRAME, int)
00115 VPX_CTRL_USE_TYPE(VP8_SET_DBG_COLOR_MB_MODES, int)
00116 VPX_CTRL_USE_TYPE(VP8_SET_DBG_COLOR_B_MODES, int)
00117 VPX_CTRL_USE_TYPE(VP8_SET_DBG_DISPLAY_MV, int)
00118
00119
00122 #include "vpx_codec_impl_bottom.h"
00123 #endif