mirror of
https://github.com/mpv-player/mpv
synced 2025-01-19 05:41:16 +00:00
noise reduction
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11364 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
033414dcf0
commit
abfc653821
@ -133,6 +133,7 @@ static char *lavc_param_intra_matrix = NULL;
|
||||
static char *lavc_param_inter_matrix = NULL;
|
||||
static int lavc_param_cbp= 0;
|
||||
static int lavc_param_mv0= 0;
|
||||
static int lavc_param_noise_reduction= 0;
|
||||
|
||||
#include "m_option.h"
|
||||
|
||||
@ -236,6 +237,7 @@ m_option_t lavcopts_conf[]={
|
||||
#if LIBAVCODEC_BUILD >= 4683
|
||||
{"mv0", &lavc_param_mv0, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_MV0, NULL},
|
||||
#endif
|
||||
{"nr", &lavc_param_noise_reduction, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL},
|
||||
{NULL, NULL, 0, 0, 0, 0, NULL}
|
||||
};
|
||||
#endif
|
||||
@ -346,6 +348,9 @@ static int config(struct vf_instance_s* vf,
|
||||
lavc_venc_context->coder_type= lavc_param_coder;
|
||||
lavc_venc_context->context_model= lavc_param_context;
|
||||
#endif
|
||||
#if LIBAVCODEC_BUILD >= 4690
|
||||
lavc_venc_context->noise_reduction= lavc_param_noise_reduction;
|
||||
#endif
|
||||
#if LIBAVCODEC_BUILD >= 4675
|
||||
if (lavc_param_intra_matrix)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user