]> git.sesse.net Git - ffmpeg/commit
avfilter/vf_lensfun: add scale parameter
authorDaniel Playfair Cal <daniel.playfair.cal@gmail.com>
Mon, 25 Mar 2019 02:07:28 +0000 (13:07 +1100)
committerPaul B Mahol <onemda@gmail.com>
Mon, 25 Mar 2019 21:50:54 +0000 (22:50 +0100)
commit6e42021128982c9b4bc1f698a326a7f8361d67a0
tree937a6e37a5012adffc188024c3bf333e4a847ea9
parent9ae8f3cdd330d0b050b43bf8fa062ab24ee465f3
avfilter/vf_lensfun: add scale parameter

The lensfun filter wraps the lensfun library which performs
transformations on videos to correct for lens distortion. Often this
results in areas in the input being mapped to areas that fall outside
the boundaries of the output. The library has a parameter called scale
which is a scale factor applied to the output video. By decreasing it it
is possible to regain the areas of the video which would otherwise have
been lost. There is a special value of 0 which indicates that the
library should automatically determine a scale factor that results in
the output frame being filled (i.e. little or no black/unmapped areas).

This patch adds a corresponding scale option to the lensfun filter which
is passed through to the library. The existing behaviour of using the
automatic value of 0 is retained as the default behaviour, while other
values will be passed through to the library.

Signed-off-by: Daniel Playfair Cal <daniel.playfair.cal@gmail.com>
doc/filters.texi
libavfilter/vf_lensfun.c