diff options
author | Daniel Playfair Cal <daniel.playfair.cal@gmail.com> | 2019-03-25 13:07:28 +1100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-03-25 22:50:54 +0100 |
commit | 6e42021128982c9b4bc1f698a326a7f8361d67a0 (patch) | |
tree | 937a6e37a5012adffc188024c3bf333e4a847ea9 /libavcodec/mathops.h | |
parent | 9ae8f3cdd330d0b050b43bf8fa062ab24ee465f3 (diff) | |
download | ffmpeg-6e42021128982c9b4bc1f698a326a7f8361d67a0.tar.gz |
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>
Diffstat (limited to 'libavcodec/mathops.h')
0 files changed, 0 insertions, 0 deletions