ffmpeg/libavfilter
Daniel Playfair Cal 6e42021128 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>
2019-03-25 22:50:54 +01:00
..
aarch64
opencl lavfi/colorspace_common: add ifdef check to be more compatible. 2019-03-22 09:33:28 +08:00
tests avfilter/tests/integral: Correct the comment 2019-02-13 19:59:39 +08:00
x86 avfilter: add anlmdn filter x86 SIMD optimizations 2019-01-10 21:49:47 +01:00
.gitignore
Makefile avutil/cuda_check: fix usage of removed .c file 2019-02-15 00:44:12 +01:00
aeval.c
af_acontrast.c
af_acopy.c
af_acrossover.c avfilter/af_acrossover: use av_strtod() to parse single number 2018-11-18 20:44:27 +01:00
af_acrusher.c
af_adeclick.c
af_adelay.c avfilter/af_adelay: allow setting delays in seconds 2019-01-01 13:33:16 +01:00
af_aderivative.c
af_aecho.c avfilter/af_aecho: use av_sscanf() 2018-11-18 21:21:18 +01:00
af_aemphasis.c
af_afade.c avfilter/afade+acrossfade: allow skipping fade on inputs 2019-01-24 22:08:34 +05:30
af_afftdn.c avfilter/af_afftdn: use av_sscanf() 2018-11-18 21:21:18 +01:00
af_afftfilt.c avfilter/af_afftfilt: use first input frame timestamp 2018-11-12 12:35:24 +01:00
af_afir.c avfilter/af_afir: adjust min partition size 2019-01-05 09:40:41 +01:00
af_afir.h avfilter/af_afir: split off fcmul_add into a DSP context 2019-01-03 10:12:18 -03:00
af_aformat.c
af_agate.c
af_aiir.c avfilter/af_aiir: implement rate option 2018-11-08 13:05:08 +01:00
af_alimiter.c
af_amerge.c avfilter/af_amerge: use ff_inlink_queued_samples() 2018-11-03 18:24:35 +01:00
af_amix.c
af_amultiply.c avfilter/af_amultiply: make use of ff_inlink_queued_samples() 2018-11-03 18:24:35 +01:00
af_anequalizer.c
af_anlmdn.c avfilter/af_anlmdn: add output mode option 2019-03-01 16:38:59 +01:00
af_anlmdndsp.h avfilter: add anlmdn filter x86 SIMD optimizations 2019-01-10 21:49:47 +01:00
af_anull.c
af_apad.c avfilter/af_apad: add pad_dur and whole_dur options 2018-12-17 19:14:36 +01:00
af_aphaser.c
af_apulsator.c
af_aresample.c
af_asetnsamples.c avfilter/af_asetnsamples: fix last frame props 2018-12-30 20:05:34 +01:00
af_asetrate.c
af_ashowinfo.c
af_astats.c avfilter/af_astats: add support for optimized min/max/peak calculation 2019-03-21 00:39:57 +01:00
af_atempo.c lavfi/atempo: fix tempo range limit inconsistency 2018-10-04 21:09:41 -06:00
af_biquads.c avfilter/af_biquads: minor simplification by using ff_exp10() 2019-01-01 21:11:47 +01:00
af_bs2b.c
af_channelmap.c
af_channelsplit.c
af_chorus.c
af_compand.c
af_compensationdelay.c
af_crossfeed.c avfilter/af_crossfeed: Use ff_exp10() 2019-01-01 21:11:47 +01:00
af_crystalizer.c
af_dcshift.c
af_drmeter.c
af_dynaudnorm.c
af_earwax.c
af_extrastereo.c
af_firequalizer.c
af_flanger.c
af_haas.c
af_hdcd.c
af_headphone.c avfilter/af_headphone: use av_log2() 2018-12-27 12:30:04 +01:00
af_join.c
af_ladspa.c avfilter/af_ladspa: use av_sscanf() 2018-11-18 21:21:18 +01:00
af_loudnorm.c
af_lv2.c
af_mcompand.c
af_pan.c
af_replaygain.c
af_resample.c
af_rubberband.c
af_sidechaincompress.c
af_silencedetect.c
af_silenceremove.c avfilter/af_silenceremove: use enum for threshold detection modes 2018-10-15 19:03:01 +02:00
af_sofalizer.c afilter/af_sofalizer: check explicitly other type 2019-01-01 12:29:19 +01:00
af_stereotools.c
af_stereowiden.c
af_superequalizer.c
af_surround.c avfilter/af_surround: fix code indentation 2018-12-24 20:58:12 +01:00
af_tremolo.c
af_vibrato.c
af_volume.c
af_volume.h
af_volumedetect.c
all_channel_layouts.inc
allfilters.c libavfilter: add transpose_vaapi filter 2019-01-23 23:29:40 +00:00
asink_anullsink.c
asrc_anoisesrc.c
asrc_anullsrc.c
asrc_flite.c
asrc_hilbert.c avfilter/window_func: add bohman window 2018-10-27 13:36:00 +02:00
asrc_sinc.c avfilter: add sinc source filter 2018-10-19 17:43:29 +02:00
asrc_sine.c
audio.c
audio.h
avf_abitscope.c
avf_ahistogram.c
avf_aphasemeter.c
avf_avectorscope.c
avf_concat.c
avf_showcqt.c
avf_showcqt.h
avf_showfreqs.c avfilter/window_func: add bohman window 2018-10-27 13:36:00 +02:00
avf_showspectrum.c avfilter/avf_showspectrum: add terrain color map 2018-11-08 17:59:48 +01:00
avf_showvolume.c
avf_showwaves.c
avfilter.c avfilter: add ff_inlink_queued_samples() 2018-10-04 12:10:20 +02:00
avfilter.h
avfiltergraph.c
avfilterres.rc
bbox.c
bbox.h
blend.h avfilter/vf_blend: add 10bit support 2018-11-15 14:44:24 +01:00
boxblur.c
boxblur.h
bufferqueue.h
buffersink.c lavfi/buffersink: fix abuffersink flag setting issue 2018-12-09 23:13:55 +08:00
buffersink.h
buffersrc.c avfilter/buffersrc: print relevant info when skipping filter reinit 2019-01-27 18:48:36 +05:30
buffersrc.h
bwdif.h avfilter/vf_bwdif: Use common yadif frame management logic 2018-11-14 17:41:01 -08:00
colorspace.c lavfi/colorspace: move some functions to common file 2019-03-22 09:33:28 +08:00
colorspace.h lavfi/colorspace: move some functions to common file 2019-03-22 09:33:28 +08:00
colorspacedsp.c
colorspacedsp.h
colorspacedsp_template.c
colorspacedsp_yuv2yuv_template.c
deshake.h
dnn_backend_native.c
dnn_backend_native.h
dnn_backend_tf.c
dnn_backend_tf.h
dnn_interface.c
dnn_interface.h
drawutils.c
drawutils.h
ebur128.c avfilter/ebur128: Simplify by using log10() 2019-01-01 21:11:47 +01:00
ebur128.h
f_bench.c
f_cue.c avfilter/f_cue: always check the return value of ff_inlink_consume_frame 2018-10-09 21:46:28 +02:00
f_drawgraph.c avfilter/f_drawgraph: use av_sscanf() 2018-11-18 21:21:18 +01:00
f_ebur128.c lavfi/ebur128: Fix mixed declarations and code 2018-10-25 00:24:24 +01:00
f_graphmonitor.c avfilter/graphmonitor: use SIZE_SPECIFIER for size_t type 2018-11-21 23:26:29 +11:00
f_interleave.c
f_loop.c avfilter/f_loop: switch to activate 2018-11-02 12:32:34 +01:00
f_metadata.c
f_perms.c
f_realtime.c
f_reverse.c avfilter/f_reverse: add packed sample format support to areverse 2018-10-08 13:38:05 +02:00
f_select.c lavfi/f_select: Cosmetics, move a function. 2019-01-10 20:14:08 +01:00
f_sendcmd.c
f_sidedata.c lavfi/sidedata: add missed frame side data type 2019-03-23 11:25:06 +08:00
f_streamselect.c
f_zmq.c
fifo.c
filters.h avfilter: add ff_inlink_queued_samples() 2018-10-04 12:10:20 +02:00
formats.c
formats.h
framepool.c
framepool.h
framequeue.c
framequeue.h
framerate.h avfilter/vf_framerate: factorize SAD functions which compute SAD for a whole frame 2018-11-11 20:30:50 +01:00
framesync.c
framesync.h
generate_wave_table.c
generate_wave_table.h
gradfun.h
graphdump.c
graphparser.c
hermite.h
hflip.h
internal.h
lavfutils.c
lavfutils.h
libavfilter.v
limiter.h
log2_tab.c
lswsutils.c
lswsutils.h
maskedmerge.h
motion_estimation.c
motion_estimation.h
opencl.c lavfi/opencl: add ff_opencl_print_const_matrix_3x3() 2019-03-22 09:33:28 +08:00
opencl.h lavfi/opencl: add ff_opencl_print_const_matrix_3x3() 2019-03-22 09:33:28 +08:00
opencl_source.h lavf: add transpose_opencl filter 2018-12-02 23:39:37 +00:00
psnr.h
pthread.c
qsvvpp.c lavu/hwcontext_qsv: Add support for AV_PIX_FMT_BGRA. 2018-10-11 13:26:59 +08:00
qsvvpp.h
removegrain.h
scale.c
scale.h
scene_sad.c avfilter/scene_sad: Fix funtions typos 2018-12-18 14:18:05 +01:00
scene_sad.h avfilter/scene_sad: Fix funtions typos 2018-12-18 14:18:05 +01:00
setpts.c
settb.c
signature.h
signature_lookup.c
split.c avfilter/split: use ff_outlink_get_status() 2018-11-03 18:24:35 +01:00
src_movie.c
ssim.h
stereo3d.h
thread.h
threshold.h
tinterlace.h
transform.c
transform.h
transpose.h libavfilter: add transpose_vaapi filter 2019-01-23 23:29:40 +00:00
trim.c
unsharp.h
vaapi_vpp.c
vaapi_vpp.h lavfi/vaapi: Add constant VAAPI_VPP_BACKGROUND_BLACK 2018-12-30 18:10:16 +00:00
vaf_spectrumsynth.c
version.h avfilter: add maskfun filter 2019-01-12 19:49:15 +01:00
vf_alphamerge.c avfilter/vf_alphamerge: do not check for ret value if all wanted frames are present 2018-11-12 22:07:13 +01:00
vf_amplify.c avfilter/vf_amplify: add tolerance option 2019-02-22 23:32:27 +01:00
vf_aspect.c
vf_atadenoise.c
vf_avgblur.c
vf_avgblur_opencl.c
vf_bbox.c
vf_bitplanenoise.c
vf_blackdetect.c
vf_blackframe.c
vf_blend.c avfilter: use av_clip_uintp2 instead of av_clip for 10b and 12b 2018-11-17 18:06:58 +01:00
vf_bm3d.c
vf_boxblur.c
vf_bwdif.c avfilter/vf_bwdif: Use common yadif frame management logic 2018-11-14 17:41:01 -08:00
vf_chromakey.c avfilter: add chromahold filter 2018-10-21 12:57:58 +02:00
vf_chromashift.c avfilter/vf_chromashift: remove invalid offset 2018-12-30 22:31:52 +01:00
vf_ciescope.c
vf_codecview.c
vf_colorbalance.c
vf_colorchannelmixer.c
vf_colorconstancy.c
vf_colorkey.c
vf_colorlevels.c
vf_colormatrix.c
vf_colorspace.c lavfi/colorspace: move some functions to common file 2019-03-22 09:33:28 +08:00
vf_convolution.c avfilter/vf_convolution: use sqrtf as its faster 2018-11-15 19:09:20 +01:00
vf_convolution_opencl.c
vf_convolve.c
vf_copy.c
vf_coreimage.m
vf_cover_rect.c
vf_crop.c
vf_cropdetect.c
vf_curves.c
vf_datascope.c avfilter/vf_datascope: fix rgba mapping for oscilloscope filter output 2018-10-24 17:39:51 +02:00
vf_dctdnoiz.c
vf_deband.c
vf_deblock.c
vf_decimate.c
vf_dedot.c avfilter/vf_dedot: initizalize ret variable 2018-11-16 21:39:37 +01:00
vf_deflicker.c
vf_deinterlace_qsv.c lavf/deinterlace_qsv: set specific field for repeat 2019-03-08 15:08:16 +08:00
vf_deinterlace_vaapi.c lavf/vaapi_deinterlace: return error if mode unsupported 2019-01-25 16:55:01 +08:00
vf_dejudder.c
vf_delogo.c
vf_deshake.c lavfi/deshake: fix deshake crash issue. 2018-10-06 21:30:18 +08:00
vf_despill.c
vf_detelecine.c avfilter/vf_detelecine: fix obvious frame memory leaks 2019-01-02 15:34:41 +01:00
vf_displace.c
vf_drawbox.c
vf_drawtext.c
vf_edgedetect.c
vf_elbg.c
vf_entropy.c
vf_eq.c
vf_eq.h
vf_extractplanes.c avfilter/extractplanes: add support for 12-bit YUVA formats 2019-01-17 11:41:18 +01:00
vf_fade.c avfilter/vf_fade: fix start/duration max value 2018-11-12 12:42:42 +01:00
vf_fftdnoiz.c
vf_fftfilt.c
vf_field.c
vf_fieldhint.c
vf_fieldmatch.c
vf_fieldorder.c
vf_fillborders.c
vf_find_rect.c
vf_floodfill.c
vf_format.c
vf_fps.c lavfi/fps: Avoid duplicating Closed Captions when increasing frame rate. 2018-11-27 18:38:03 +01:00
vf_framepack.c
vf_framerate.c avfilter/vf_framerate: factorize SAD functions which compute SAD for a whole frame 2018-11-11 20:30:50 +01:00
vf_framestep.c
vf_freezedetect.c avfilter/vf_freezedetect: add filter to detect frozen input 2018-11-19 22:11:42 +01:00
vf_frei0r.c
vf_fspp.c
vf_fspp.h
vf_gblur.c
vf_geq.c
vf_gradfun.c
vf_hflip.c
vf_histeq.c
vf_histogram.c
vf_hqdn3d.c
vf_hqdn3d.h
vf_hqx.c
vf_hue.c
vf_hwdownload.c
vf_hwmap.c
vf_hwupload.c
vf_hwupload_cuda.c
vf_hysteresis.c
vf_idet.c
vf_idet.h
vf_il.c
vf_kerndeint.c
vf_lenscorrection.c
vf_lensfun.c avfilter/vf_lensfun: add scale parameter 2019-03-25 22:50:54 +01:00
vf_libopencv.c
vf_libvmaf.c
vf_limiter.c avfilter/vf_limiter: remove unused header 2018-11-18 22:20:34 +01:00
vf_lumakey.c
vf_lut.c
vf_lut2.c avfilter/vf_lut2: implement support for different input depths 2018-11-15 11:47:58 +01:00
vf_lut3d.c avfilter/vf_lut3d: use av_sscanf 2018-11-16 20:24:52 +01:00
vf_maskedclamp.c
vf_maskedmerge.c
vf_maskfun.c avfilter: add maskfun filter 2019-01-12 19:49:15 +01:00
vf_mcdeint.c
vf_mergeplanes.c
vf_mestimate.c
vf_midequalizer.c
vf_minterpolate.c lavfi/minterpolate: Remove declaration of two unused variables. 2018-11-16 21:45:49 +01:00
vf_misc_vaapi.c lavfi/vaapi: Add constant VAAPI_VPP_BACKGROUND_BLACK 2018-12-30 18:10:16 +00:00
vf_mix.c avfilter/vf_mix: always output frame if array is filled 2019-02-02 18:54:54 +01:00
vf_mpdecimate.c
vf_neighbor.c avfilter/vf_neighbor: fix >8 bit deflate/inflate 2018-11-17 11:09:37 +01:00
vf_neighbor_opencl.c
vf_nlmeans.c lavfi/nlmeans: use a dynamic size for the weight LUT 2019-02-01 20:58:47 +01:00
vf_nlmeans.h
vf_nnedi.c
vf_noise.c
vf_noise.h
vf_normalize.c
vf_null.c
vf_ocr.c
vf_overlay.c avfilter/vf_overlay: fix filtering with negative y 2018-12-03 10:32:59 +01:00
vf_overlay.h
vf_overlay_opencl.c
vf_overlay_qsv.c lavc/qsv_overlay: suppress code scan complain 2018-11-06 17:42:31 +08:00
vf_owdenoise.c
vf_pad.c
vf_palettegen.c palettegen: Fill with last color, not black 2019-02-19 21:29:03 +01:00
vf_paletteuse.c avfilter/vf_paletteuse: don't constantly free and realloc internal frames 2019-01-17 13:24:14 -03:00
vf_perspective.c
vf_phase.c
vf_pixdesctest.c avfilter/vf_pixdesctest: Use 32bit read/write 2018-10-27 22:39:27 +02:00
vf_pp.c
vf_pp7.c
vf_pp7.h
vf_premultiply.c
vf_procamp_vaapi.c lavfi/vaapi: Add constant VAAPI_VPP_BACKGROUND_BLACK 2018-12-30 18:10:16 +00:00
vf_program_opencl.c lavfi/program_opencl: Do not use format specifier "z" on Windows. 2018-12-17 14:44:10 +01:00
vf_pseudocolor.c
vf_psnr.c
vf_pullup.c
vf_pullup.h
vf_qp.c
vf_random.c
vf_readeia608.c
vf_readvitc.c
vf_remap.c
vf_removegrain.c
vf_removelogo.c
vf_repeatfields.c
vf_rotate.c
vf_sab.c
vf_scale.c
vf_scale_cuda.c avfilter/vf_scale_cuda: Switch to using ffnvcodec 2019-02-27 18:03:17 +01:00
vf_scale_cuda.cu avfilter/vf_scale_cuda: Switch to using ffnvcodec 2019-02-27 18:03:17 +01:00
vf_scale_npp.c avutil/hwcontext_cuda: Define and use common CHECK_CU() 2018-11-14 17:39:42 -08:00
vf_scale_qsv.c
vf_scale_vaapi.c lavfi/vaapi: Add constant VAAPI_VPP_BACKGROUND_BLACK 2018-12-30 18:10:16 +00:00
vf_selectivecolor.c
vf_separatefields.c
vf_setparams.c avfilter/setparams : fix colorspace option 2018-10-22 11:26:31 +02:00
vf_showinfo.c vf_showinfo: Fix timecode display 2019-03-09 18:42:34 +00:00
vf_showpalette.c
vf_shuffleframes.c
vf_shuffleplanes.c
vf_signalstats.c lavfi/signalstats: Cast the return value of AV_RN16() to int. 2018-12-12 23:54:14 +01:00
vf_signature.c
vf_smartblur.c
vf_spp.c
vf_spp.h
vf_sr.c
vf_ssim.c
vf_stack.c avfilter: add xstack filter 2018-10-26 12:40:54 +02:00
vf_stereo3d.c
vf_subtitles.c
vf_super2xsai.c
vf_swaprect.c
vf_swapuv.c
vf_telecine.c
vf_threshold.c
vf_thumbnail.c
vf_thumbnail_cuda.c avfilter/vf_thumbnail_cuda: Switch to using ffnvcodec 2019-02-27 18:03:17 +01:00
vf_thumbnail_cuda.cu avfilter/vf_thumbnail_cuda: Switch to using ffnvcodec 2019-02-27 18:03:17 +01:00
vf_tile.c
vf_tinterlace.c
vf_tonemap.c lavfi/tonemap: make use of AVFILTER_DEFINE_CLASS 2019-03-08 09:38:09 +08:00
vf_tonemap_opencl.c lavfi/tonemap_opencl: reuse color matrix calculation from colorspace.c 2019-03-22 09:33:28 +08:00
vf_tpad.c avfilter: add tpad filter 2018-11-02 09:32:52 +01:00
vf_transpose.c lavf: add transpose_opencl filter 2018-12-02 23:39:37 +00:00
vf_transpose_npp.c avutil/hwcontext_cuda: Define and use common CHECK_CU() 2018-11-14 17:39:42 -08:00
vf_transpose_opencl.c lavf: add transpose_opencl filter 2018-12-02 23:39:37 +00:00
vf_transpose_vaapi.c libavfilter: add transpose_vaapi filter 2019-01-23 23:29:40 +00:00
vf_unsharp.c
vf_unsharp_opencl.c
vf_uspp.c
vf_vaguedenoiser.c
vf_vectorscope.c
vf_vflip.c
vf_vfrdet.c
vf_vibrance.c avfilter: add vibrance filter 2018-10-23 11:12:41 +02:00
vf_vidstabdetect.c
vf_vidstabtransform.c
vf_vignette.c
vf_vmafmotion.c
vf_vpp_qsv.c
vf_w3fdif.c
vf_waveform.c avfilter/vf_waveform: abort early if there are no components to show 2018-10-24 18:33:52 +02:00
vf_weave.c
vf_xbr.c
vf_yadif.c libavfilter/vf_yadif: Make frame management logic and options shareable 2018-11-02 11:24:05 -07:00
vf_yadif_cuda.c avfilter/vf_yadif_cuda: Switch to using ffnvcodec 2019-02-27 18:03:17 +01:00
vf_yadif_cuda.cu avfilter/vf_cuda_yadif: Avoid new syntax for vector initialisation 2018-11-02 14:34:38 -07:00
vf_zoompan.c
vf_zscale.c lavfi/zscale: make use of AVFILTER_DEFINE_CLASS 2019-03-08 09:38:09 +08:00
video.c
video.h
vidstabutils.c
vidstabutils.h
vmaf_motion.h
vsink_nullsink.c
vsrc_cellauto.c
vsrc_life.c
vsrc_mandelbrot.c
vsrc_mptestsrc.c
vsrc_testsrc.c
w3fdif.h
window_func.h avfilter/window_func: add bohman window 2018-10-27 13:36:00 +02:00
yadif.h avfilter/yadif_common: Add field type tracking to help bwdif 2018-11-14 17:41:01 -08:00
yadif_common.c avfilter/yadif_common: Add field type tracking to help bwdif 2018-11-14 17:41:01 -08:00