comparison libmpcodecs/ve_lavc.c @ 11363:222d2661f373

noise reduction
author michael
date Sun, 02 Nov 2003 23:21:45 +0000
parents 9a3230a5ef38
children a4b6fdc76fe5
comparison
equal deleted inserted replaced
11362:cd167d51a619 11363:222d2661f373
131 static int lavc_param_context= 0; 131 static int lavc_param_context= 0;
132 static char *lavc_param_intra_matrix = NULL; 132 static char *lavc_param_intra_matrix = NULL;
133 static char *lavc_param_inter_matrix = NULL; 133 static char *lavc_param_inter_matrix = NULL;
134 static int lavc_param_cbp= 0; 134 static int lavc_param_cbp= 0;
135 static int lavc_param_mv0= 0; 135 static int lavc_param_mv0= 0;
136 static int lavc_param_noise_reduction= 0;
136 137
137 #include "m_option.h" 138 #include "m_option.h"
138 139
139 #ifdef USE_LIBAVCODEC 140 #ifdef USE_LIBAVCODEC
140 m_option_t lavcopts_conf[]={ 141 m_option_t lavcopts_conf[]={
234 {"cbp", &lavc_param_cbp, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CBP_RD, NULL}, 235 {"cbp", &lavc_param_cbp, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CBP_RD, NULL},
235 #endif 236 #endif
236 #if LIBAVCODEC_BUILD >= 4683 237 #if LIBAVCODEC_BUILD >= 4683
237 {"mv0", &lavc_param_mv0, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_MV0, NULL}, 238 {"mv0", &lavc_param_mv0, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_MV0, NULL},
238 #endif 239 #endif
240 {"nr", &lavc_param_noise_reduction, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL},
239 {NULL, NULL, 0, 0, 0, 0, NULL} 241 {NULL, NULL, 0, 0, 0, 0, NULL}
240 }; 242 };
241 #endif 243 #endif
242 244
243 struct vf_priv_s { 245 struct vf_priv_s {
343 lavc_venc_context->inter_quant_bias= lavc_param_pbias; 345 lavc_venc_context->inter_quant_bias= lavc_param_pbias;
344 #endif 346 #endif
345 #if LIBAVCODEC_BUILD >= 4669 347 #if LIBAVCODEC_BUILD >= 4669
346 lavc_venc_context->coder_type= lavc_param_coder; 348 lavc_venc_context->coder_type= lavc_param_coder;
347 lavc_venc_context->context_model= lavc_param_context; 349 lavc_venc_context->context_model= lavc_param_context;
350 #endif
351 #if LIBAVCODEC_BUILD >= 4690
352 lavc_venc_context->noise_reduction= lavc_param_noise_reduction;
348 #endif 353 #endif
349 #if LIBAVCODEC_BUILD >= 4675 354 #if LIBAVCODEC_BUILD >= 4675
350 if (lavc_param_intra_matrix) 355 if (lavc_param_intra_matrix)
351 { 356 {
352 char *tmp; 357 char *tmp;