diff options
author | Mina <minasamy_@hotmail.com> | 2018-08-14 20:55:08 +0200 |
---|---|---|
committer | Thilo Borgmann <thilo.borgmann@mail.de> | 2018-08-14 20:55:08 +0200 |
commit | 729ebd3cd001a5aeafbec3c36d9a6318c83f9053 (patch) | |
tree | 1289d8bbb72fdb37134ea3c8ec83853ee9831572 | |
parent | 1f18a633c601da16d8c92e59be8bb20f39264031 (diff) | |
download | ffmpeg-729ebd3cd001a5aeafbec3c36d9a6318c83f9053.tar.gz |
lavfi/vf_colorconstancy: change option ranges
-rw-r--r-- | doc/filters.texi | 6 | ||||
-rw-r--r-- | libavfilter/vf_colorconstancy.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index d6c15837f2..267bd04a43 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -9955,13 +9955,13 @@ The order of differentiation to be applied on the scene. Must be chosen in the r @item minknorm The Minkowski parameter to be used for calculating the Minkowski distance. Must -be chosen in the range [0,65535] and default value is 1. Set to 0 for getting +be chosen in the range [0,20] and default value is 1. Set to 0 for getting max value instead of calculating Minkowski distance. @item sigma The standard deviation of Gaussian blur to be applied on the scene. Must be -chosen in the range [0,1024.0] and default value = 1. Sigma can't be set to 0 -if @var{difford} is greater than 0. +chosen in the range [0,1024.0] and default value = 1. floor( @var{sigma} * break_off_sigma(3) ) +can't be euqal to 0 if @var{difford} is greater than 0. @end table @subsection Examples diff --git a/libavfilter/vf_colorconstancy.c b/libavfilter/vf_colorconstancy.c index 7194688dfa..e8271f34ec 100644 --- a/libavfilter/vf_colorconstancy.c +++ b/libavfilter/vf_colorconstancy.c @@ -735,9 +735,9 @@ static const AVFilterPad colorconstancy_outputs[] = { #if CONFIG_GREYEDGE_FILTER static const AVOption greyedge_options[] = { - { "difford", "set differentiation order", OFFSET(difford), AV_OPT_TYPE_INT, {.i64=1}, 0, 2, FLAGS }, - { "minknorm", "set Minkowski norm", OFFSET(minknorm), AV_OPT_TYPE_INT, {.i64=1}, 0, 65535, FLAGS }, - { "sigma", "set sigma", OFFSET(sigma), AV_OPT_TYPE_DOUBLE, {.dbl=1}, 0.0, 1024.0, FLAGS }, + { "difford", "set differentiation order", OFFSET(difford), AV_OPT_TYPE_INT, {.i64=1}, 0, 2, FLAGS }, + { "minknorm", "set Minkowski norm", OFFSET(minknorm), AV_OPT_TYPE_INT, {.i64=1}, 0, 20, FLAGS }, + { "sigma", "set sigma", OFFSET(sigma), AV_OPT_TYPE_DOUBLE, {.dbl=1}, 0.0, 1024.0, FLAGS }, { NULL } }; |