# HG changeset patch # User michael # Date 1032866603 0 # Node ID 3d35a56799fcc6e5bacc51c33c0cd9cc335e845e # Parent 12b2c735ad07a597b3e12a1b4bfe163c798dc366 darkmasking & docs diff -r 12b2c735ad07 -r 3d35a56799fc DOCS/tech/libavc-options.txt --- a/DOCS/tech/libavc-options.txt Mon Sep 23 22:12:29 2002 +0000 +++ b/DOCS/tech/libavc-options.txt Tue Sep 24 11:23:23 2002 +0000 @@ -72,6 +72,7 @@ 1 first pass 2 second pass (only need to specify if two-pass encoding is used) + Tip: u can try to use constant quantizer mode for pass1 (vqscale=) vbitrate (kbits per second) for pass1/2 800 is default @@ -202,6 +203,34 @@ 3 mmx 4 mlib +lumi_mask (0.0-1.0) luminance masking + 0.0 disabled (default) + 0.0-0.5 should be a sane range + warning: be carefull, too large values can cause disasterous things + warning2: large values might look good on some monitors but may look horrible + on other monitors + +dark_mask (0.0-1.0) darkness masking + 0.0 disabled (default) + 0.0-0.3 should be a sane range + warning: be carefull, too large values can cause disasterous things + warning2: large values might look good on some monitors but may look horrible + on other monitors / TV / TFT + +tcplx_mask (0.0-1.0) temporal complexity masking + 0.0 disabled (default) + +scplx_mask (0.0-1.0) spatial complexity masking + 0.0 disabled (default) + 0.0-0.5 should be a sane range + larger values help against blockiness, if no deblocking filter is used + for decoding + Tip: crop any black borders completly away as they will reduce the quality + of the MBs there, this is true if scplx_mask isnt used at all too + +naq normalize adaptive quantization + experimental + lavdopts: (decoder options) --------------------------- diff -r 12b2c735ad07 -r 3d35a56799fc libmpcodecs/ve_lavc.c --- a/libmpcodecs/ve_lavc.c Mon Sep 23 22:12:29 2002 +0000 +++ b/libmpcodecs/ve_lavc.c Tue Sep 24 11:23:23 2002 +0000 @@ -90,6 +90,7 @@ static float lavc_param_aspect=0.0; #endif static float lavc_param_lumi_masking= 0.0; +static float lavc_param_dark_masking= 0.0; static float lavc_param_temporal_cplx_masking= 0.0; static float lavc_param_spatial_cplx_masking= 0.0; static float lavc_param_p_masking= 0.0; @@ -160,6 +161,9 @@ {"p_mask", &lavc_param_p_masking, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL}, {"naq", &lavc_param_normalize_aqp, CONF_TYPE_FLAG, 0, 0, 1, NULL}, #endif +#if LIBAVCODEC_BUILD >= 4626 + {"dark_mask", &lavc_param_dark_masking, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL}, +#endif {NULL, NULL, 0, 0, 0, 0, NULL} }; #endif @@ -269,6 +273,9 @@ lavc_venc_context->spatial_cplx_masking= lavc_param_spatial_cplx_masking; lavc_venc_context->p_masking= lavc_param_p_masking; #endif +#if LIBAVCODEC_BUILD >= 4626 + lavc_venc_context->dark_masking= lavc_param_dark_masking; +#endif #if LIBAVCODEC_BUILD >= 4623 if (lavc_param_aspect != 0.0)