diff options
author | Georg Martius <martius@mis.mpg.de> | 2013-09-14 02:54:39 +0200 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2013-09-27 16:48:31 +0000 |
commit | e064d0aaf622a78d15c051602c929b203c45c1e3 (patch) | |
tree | 9c236db1a6e4873639b2d89d399a4aa49ff48aa7 | |
parent | df21537dfbb80651d81e5add6dece7da5cdb798d (diff) | |
download | ffmpeg-e064d0aaf622a78d15c051602c929b203c45c1e3.tar.gz |
avfilter/vidstabtransform: update optzoom range values for recent vid.stab update.
Signed-off-by: Georg Martius <martius@mis.mpg.de>
-rw-r--r-- | doc/filters.texi | 11 | ||||
-rw-r--r-- | libavfilter/vf_vidstabtransform.c | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 7708fe3662..bd394951e9 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -7853,8 +7853,15 @@ percentage to zoom (default: 0) @end table @item optzoom -if 1 then optimal zoom value is determined (default). -Optimal zoom means no (or only little) border should be visible. +set optimal zooming to avoid borders +@table @samp +@item 0 +disabled +@item 1 +optimal static zoom value is determined (only very strong movements will lead to visible borders) (default) +@item 2 +optimal adaptive zoom value is determined (no borders will be visible) +@end table Note that the value given at zoom is added to the one calculated here. diff --git a/libavfilter/vf_vidstabtransform.c b/libavfilter/vf_vidstabtransform.c index 51523253aa..40c0593bd4 100644 --- a/libavfilter/vf_vidstabtransform.c +++ b/libavfilter/vf_vidstabtransform.c @@ -67,7 +67,7 @@ static const AVOption vidstabtransform_options[] = { {"zoom", "percentage to zoom >0: zoom in, <0 zoom out", OFFSETC(zoom), AV_OPT_TYPE_DOUBLE, {.dbl = 0}, -100, 100, FLAGS}, {"optzoom", "0: nothing, 1: determine optimal zoom (added to 'zoom')", OFFSETC(optZoom), - AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, FLAGS}, + AV_OPT_TYPE_INT, {.i64 = 1}, 0, 2, FLAGS}, {"interpol", "type of interpolation", OFFSETC(interpolType), AV_OPT_TYPE_INT, {.i64 = 2}, 0, 3, FLAGS, "interpol"}, { "no", "no interpolation", 0, |