[FFmpeg-cvslog] avfilter/af_anlmdn: add longer names of filter options

Paul B Mahol git at videolan.org
Sun Jul 25 11:34:11 EEST 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jul 25 10:22:42 2021 +0200| [6210cc8c7ec1d9491015b1a19a9d61e8f7efea4f] | committer: Paul B Mahol

avfilter/af_anlmdn: add longer names of filter options

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6210cc8c7ec1d9491015b1a19a9d61e8f7efea4f
---

 doc/filters.texi        | 10 +++++-----
 libavfilter/af_anlmdn.c |  5 +++++
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index b76c702125..07590aeaf9 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -2125,18 +2125,18 @@ context similarity is defined by comparing their surrounding patches of size
 The filter accepts the following options:
 
 @table @option
- at item s
+ at item strength, s
 Set denoising strength. Allowed range is from 0.00001 to 10. Default value is 0.00001.
 
- at item p
+ at item patch, p
 Set patch radius duration. Allowed range is from 1 to 100 milliseconds.
 Default value is 2 milliseconds.
 
- at item r
+ at item research, r
 Set research radius duration. Allowed range is from 2 to 300 milliseconds.
 Default value is 6 milliseconds.
 
- at item o
+ at item output, o
 Set the output mode.
 
 It accepts the following values:
@@ -2153,7 +2153,7 @@ Pass only noise.
 Default value is @var{o}.
 @end table
 
- at item m
+ at item smooth, m
 Set smooth factor. Default value is @var{11}. Allowed range is from @var{1} to @var{15}.
 @end table
 
diff --git a/libavfilter/af_anlmdn.c b/libavfilter/af_anlmdn.c
index 8be73079bd..05e84282f0 100644
--- a/libavfilter/af_anlmdn.c
+++ b/libavfilter/af_anlmdn.c
@@ -75,13 +75,18 @@ enum OutModes {
 #define AFT AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
 
 static const AVOption anlmdn_options[] = {
+    { "strength", "set denoising strength", OFFSET(a),  AV_OPT_TYPE_FLOAT,    {.dbl=0.00001},0.00001, 10, AFT },
     { "s", "set denoising strength", OFFSET(a),  AV_OPT_TYPE_FLOAT,    {.dbl=0.00001},0.00001, 10, AFT },
+    { "patch", "set patch duration", OFFSET(pd), AV_OPT_TYPE_DURATION, {.i64=2000}, 1000, 100000, AFT },
     { "p", "set patch duration",     OFFSET(pd), AV_OPT_TYPE_DURATION, {.i64=2000}, 1000, 100000, AFT },
+    { "research", "set research duration",  OFFSET(rd), AV_OPT_TYPE_DURATION, {.i64=6000}, 2000, 300000, AFT },
     { "r", "set research duration",  OFFSET(rd), AV_OPT_TYPE_DURATION, {.i64=6000}, 2000, 300000, AFT },
+    { "output", "set output mode",   OFFSET(om), AV_OPT_TYPE_INT,      {.i64=OUT_MODE},  0, NB_MODES-1, AFT, "mode" },
     { "o", "set output mode",        OFFSET(om), AV_OPT_TYPE_INT,      {.i64=OUT_MODE},  0, NB_MODES-1, AFT, "mode" },
     {  "i", "input",                 0,          AV_OPT_TYPE_CONST,    {.i64=IN_MODE},   0,  0, AFT, "mode" },
     {  "o", "output",                0,          AV_OPT_TYPE_CONST,    {.i64=OUT_MODE},  0,  0, AFT, "mode" },
     {  "n", "noise",                 0,          AV_OPT_TYPE_CONST,    {.i64=NOISE_MODE},0,  0, AFT, "mode" },
+    { "smooth", "set smooth factor", OFFSET(m),  AV_OPT_TYPE_FLOAT,    {.dbl=11.},       1, 15, AFT },
     { "m", "set smooth factor",      OFFSET(m),  AV_OPT_TYPE_FLOAT,    {.dbl=11.},       1, 15, AFT },
     { NULL }
 };



More information about the ffmpeg-cvslog mailing list