Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00017 #include "vp8.h"
00018
00023 #ifndef VP8CX_H
00024 #define VP8CX_H
00025 #include "vpx/vpx_codec_impl_top.h"
00026
00032 extern vpx_codec_iface_t vpx_codec_vp8_cx_algo;
00033
00034
00035
00036
00037
00038
00045 #define VP8_EFLAG_NO_REF_LAST (1<<16)
00046
00047
00054 #define VP8_EFLAG_NO_REF_GF (1<<17)
00055
00056
00063 #define VP8_EFLAG_NO_REF_ARF (1<<21)
00064
00065
00071 #define VP8_EFLAG_NO_UPD_LAST (1<<18)
00072
00073
00079 #define VP8_EFLAG_NO_UPD_GF (1<<22)
00080
00081
00087 #define VP8_EFLAG_NO_UPD_ARF (1<<23)
00088
00089
00095 #define VP8_EFLAG_FORCE_GF (1<<19)
00096
00097
00103 #define VP8_EFLAG_FORCE_ARF (1<<24)
00104
00105
00111 #define VP8_EFLAG_NO_UPD_ENTROPY (1<<20)
00112
00113
00118 enum vp8e_enc_control_id
00119 {
00120 VP8E_UPD_ENTROPY = 5,
00121 VP8E_UPD_REFERENCE,
00122 VP8E_USE_REFERENCE,
00123 VP8E_SET_ROI_MAP,
00124 VP8E_SET_ACTIVEMAP,
00125 VP8E_SET_SCALEMODE = 11,
00126 VP8E_SET_CPUUSED = 13,
00127 VP8E_SET_ENABLEAUTOALTREF,
00128 VP8E_SET_NOISE_SENSITIVITY,
00129 VP8E_SET_SHARPNESS,
00130 VP8E_SET_STATIC_THRESHOLD,
00131 VP8E_SET_TOKEN_PARTITIONS,
00132 VP8E_GET_LAST_QUANTIZER,
00135 VP8E_GET_LAST_QUANTIZER_64,
00139 VP8E_SET_ARNR_MAXFRAMES,
00140 VP8E_SET_ARNR_STRENGTH ,
00141 VP8E_SET_ARNR_TYPE ,
00142 } ;
00143
00148 typedef enum vpx_scaling_mode_1d
00149 {
00150 VP8E_NORMAL = 0,
00151 VP8E_FOURFIVE = 1,
00152 VP8E_THREEFIVE = 2,
00153 VP8E_ONETWO = 3
00154 } VPX_SCALING_MODE;
00155
00156
00163 typedef struct vpx_roi_map
00164 {
00165 unsigned char *roi_map;
00166 unsigned int rows;
00167 unsigned int cols;
00168 int delta_q[4];
00169 int delta_lf[4];
00170 unsigned int static_threshold[4];
00171 } vpx_roi_map_t;
00172
00180 typedef struct vpx_active_map
00181 {
00182 unsigned char *active_map;
00183 unsigned int rows;
00184 unsigned int cols;
00185 } vpx_active_map_t;
00186
00192 typedef struct vpx_scaling_mode
00193 {
00194 VPX_SCALING_MODE h_scaling_mode;
00195 VPX_SCALING_MODE v_scaling_mode;
00196 } vpx_scaling_mode_t;
00197
00203 typedef enum
00204 {
00205 VP8_BEST_QUALITY_ENCODING,
00206 VP8_GOOD_QUALITY_ENCODING,
00207 VP8_REAL_TIME_ENCODING
00208 } vp8e_encoding_mode;
00209
00217 typedef enum
00218 {
00219 VP8_ONE_TOKENPARTITION = 0,
00220 VP8_TWO_TOKENPARTITION = 1,
00221 VP8_FOUR_TOKENPARTITION = 2,
00222 VP8_EIGHT_TOKENPARTITION = 3,
00223 } vp8e_token_partitions;
00224
00225
00234
00235
00236
00237 VPX_CTRL_USE_TYPE_DEPRECATED(VP8E_UPD_ENTROPY, int)
00238 VPX_CTRL_USE_TYPE_DEPRECATED(VP8E_UPD_REFERENCE, int)
00239 VPX_CTRL_USE_TYPE_DEPRECATED(VP8E_USE_REFERENCE, int)
00240
00241 VPX_CTRL_USE_TYPE(VP8E_SET_ROI_MAP, vpx_roi_map_t *)
00242 VPX_CTRL_USE_TYPE(VP8E_SET_ACTIVEMAP, vpx_active_map_t *)
00243 VPX_CTRL_USE_TYPE(VP8E_SET_SCALEMODE, vpx_scaling_mode_t *)
00244
00245 VPX_CTRL_USE_TYPE(VP8E_SET_CPUUSED, int)
00246 VPX_CTRL_USE_TYPE(VP8E_SET_ENABLEAUTOALTREF, unsigned int)
00247 VPX_CTRL_USE_TYPE(VP8E_SET_NOISE_SENSITIVITY, unsigned int)
00248 VPX_CTRL_USE_TYPE(VP8E_SET_SHARPNESS, unsigned int)
00249 VPX_CTRL_USE_TYPE(VP8E_SET_STATIC_THRESHOLD, unsigned int)
00250 VPX_CTRL_USE_TYPE(VP8E_SET_TOKEN_PARTITIONS, vp8e_token_partitions)
00251
00252 VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_MAXFRAMES, unsigned int)
00253 VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_STRENGTH , unsigned int)
00254 VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_TYPE , unsigned int)
00255
00256
00257 VPX_CTRL_USE_TYPE(VP8E_GET_LAST_QUANTIZER, int *)
00258 VPX_CTRL_USE_TYPE(VP8E_GET_LAST_QUANTIZER_64, int *)
00259
00261 #include "vpx/vpx_codec_impl_bottom.h"
00262 #endif