[FFmpeg-cvslog] avfilter/vf_estdif: tweak ecost option

Paul B Mahol git at videolan.org
Tue Jun 21 19:08:52 EEST 2022


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Jun 21 17:13:59 2022 +0200| [aa1babc59a0d6f632621f6f0b4d09b28599aa5ea] | committer: Paul B Mahol

avfilter/vf_estdif: tweak ecost option

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

 doc/filters.texi        | 4 ++--
 libavfilter/vf_estdif.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index 5abab5de18..e525e87b3c 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -12376,8 +12376,8 @@ Specify the search radius for best edge matching. Default value is 2.
 Allowed range is from 0 to 15.
 
 @item ecost
-Specify the edge cost for edge matching. Default value is 0.03125.
-Allowed range is from 0 to 1.
+Specify the edge cost for edge matching. Default value is 1.0.
+Allowed range is from 0 to 9.
 
 @item mcost
 Specify the middle cost for edge matching. Default value is 0.5.
diff --git a/libavfilter/vf_estdif.c b/libavfilter/vf_estdif.c
index 3506eab9c5..45089a01da 100644
--- a/libavfilter/vf_estdif.c
+++ b/libavfilter/vf_estdif.c
@@ -95,7 +95,7 @@ static const AVOption estdif_options[] = {
     CONST("interlaced", "only deinterlace frames marked as interlaced", 1, "deint"),
     { "rslope", "specify the search radius for edge slope tracing", OFFSET(rslope), AV_OPT_TYPE_INT, {.i64=1}, 1, MAX_R, FLAGS, },
     { "redge",  "specify the search radius for best edge matching", OFFSET(redge),  AV_OPT_TYPE_INT, {.i64=2}, 0, MAX_R, FLAGS, },
-    { "ecost",  "specify the edge cost for edge matching",          OFFSET(ecost),  AV_OPT_TYPE_FLOAT,{.dbl=0.03125},0,1,FLAGS, },
+    { "ecost",  "specify the edge cost for edge matching",          OFFSET(ecost),  AV_OPT_TYPE_FLOAT,{.dbl=1},0,9,FLAGS, },
     { "mcost",  "specify the middle cost for edge matching",        OFFSET(mcost),  AV_OPT_TYPE_FLOAT,{.dbl=0.5}, 0, 1,  FLAGS, },
     { "dcost",  "specify the distance cost for edge matching",      OFFSET(dcost),  AV_OPT_TYPE_FLOAT,{.dbl=0.5}, 0, 1,  FLAGS, },
     { "interp", "specify the type of interpolation",                OFFSET(interp), AV_OPT_TYPE_INT, {.i64=1}, 0, 2,     FLAGS, "interp" },



More information about the ffmpeg-cvslog mailing list