comparison libmpcodecs/ve_lavc.c @ 12542:51212c1c6143

nsse weight
author michael
date Mon, 07 Jun 2004 17:31:50 +0000
parents 656a1b45b309
children 787a1ce375df
comparison
equal deleted inserted replaced
12541:260c2e08b961 12542:51212c1c6143
147 static int lavc_param_sc_threshold= 0; 147 static int lavc_param_sc_threshold= 0;
148 static int lavc_param_ss= 0; 148 static int lavc_param_ss= 0;
149 static int lavc_param_top= -1; 149 static int lavc_param_top= -1;
150 static int lavc_param_alt= 0; 150 static int lavc_param_alt= 0;
151 static int lavc_param_ilme= 0; 151 static int lavc_param_ilme= 0;
152 static int lavc_param_nssew= 8;
152 153
153 154
154 char *lavc_param_acodec = "mp2"; 155 char *lavc_param_acodec = "mp2";
155 int lavc_param_atag = 0; 156 int lavc_param_atag = 0;
156 int lavc_param_abitrate = 224; 157 int lavc_param_abitrate = 224;
288 #endif 289 #endif
289 {"inter_threshold", &lavc_param_inter_threshold, CONF_TYPE_INT, CONF_RANGE, -1000000, 1000000, NULL}, 290 {"inter_threshold", &lavc_param_inter_threshold, CONF_TYPE_INT, CONF_RANGE, -1000000, 1000000, NULL},
290 {"sc_threshold", &lavc_param_sc_threshold, CONF_TYPE_INT, CONF_RANGE, -1000000, 1000000, NULL}, 291 {"sc_threshold", &lavc_param_sc_threshold, CONF_TYPE_INT, CONF_RANGE, -1000000, 1000000, NULL},
291 {"top", &lavc_param_top, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL}, 292 {"top", &lavc_param_top, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL},
292 {"qns", &lavc_param_qns, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL}, 293 {"qns", &lavc_param_qns, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL},
294 {"nssew", &lavc_param_nssew, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL},
293 {NULL, NULL, 0, 0, 0, 0, NULL} 295 {NULL, NULL, 0, 0, 0, 0, NULL}
294 }; 296 };
295 #endif 297 #endif
296 298
297 struct vf_priv_s { 299 struct vf_priv_s {
409 #if LIBAVCODEC_BUILD >= 4700 411 #if LIBAVCODEC_BUILD >= 4700
410 lavc_venc_context->quantizer_noise_shaping= lavc_param_qns; 412 lavc_venc_context->quantizer_noise_shaping= lavc_param_qns;
411 #endif 413 #endif
412 #if LIBAVCODEC_BUILD >= 4693 414 #if LIBAVCODEC_BUILD >= 4693
413 lavc_venc_context->inter_threshold= lavc_param_inter_threshold; 415 lavc_venc_context->inter_threshold= lavc_param_inter_threshold;
416 #endif
417 #if LIBAVCODEC_BUILD >= 4716
418 lavc_venc_context->nsse_weight= lavc_param_nssew;
414 #endif 419 #endif
415 #if LIBAVCODEC_BUILD >= 4675 420 #if LIBAVCODEC_BUILD >= 4675
416 if (lavc_param_intra_matrix) 421 if (lavc_param_intra_matrix)
417 { 422 {
418 char *tmp; 423 char *tmp;