aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
Commit message (Collapse)AuthorAgeFilesLines
* avfilter/vf_lensfun: add scale parameterDaniel Playfair Cal2019-03-251-1/+3
| | | | | | | | | | | | | | | | | | | 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>
* lavfi/sidedata: add missed frame side data typeJun Zhao2019-03-231-0/+38
| | | | | | add missed frame side data type Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/colorspace_common: add ifdef check to be more compatible.Ruiling Song2019-03-221-2/+12
| | | | | | | | Some filters may not need to do linearize/delinearize, thus will even not define them. Add ifdef check, so they could easily re-use the .cl file. Signed-off-by: Ruiling Song <ruiling.song@intel.com>
* lavfi/tonemap_opencl: reuse color matrix calculation from colorspace.cRuiling Song2019-03-222-60/+29
| | | | Signed-off-by: Ruiling Song <ruiling.song@intel.com>
* lavfi/opencl: add ff_opencl_print_const_matrix_3x3()Ruiling Song2019-03-222-0/+21
| | | | | | | This is used to print a 3x3 matrix into a part of OpenCL source code. Signed-off-by: Ruiling Song <ruiling.song@intel.com>
* lavfi/colorspace: move some functions to common fileRuiling Song2019-03-223-76/+79
| | | | | | | These functions can be reused by other colorspace filters, so move them to common file. No functional changes. Signed-off-by: Ruiling Song <ruiling.song@intel.com>
* avfilter/af_astats: add support for optimized min/max/peak calculationMarton Balint2019-03-211-5/+21
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/af_astats: rework sample loopsMarton Balint2019-03-211-8/+9
| | | | | | | The channel loop is now the outer loop for both planar and interleaved. This is needed by the next patch, and the speed difference is negligable if any. Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/af_astats: factorize sample loopsMarton Balint2019-03-211-71/+37
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/af_astats: fix identationMarton Balint2019-03-211-74/+74
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/af_astats: add support for selecting measured statisticsMarton Balint2019-03-211-0/+118
| | | | | | | | | | | set_metadata with many entries is not very efficient, and with small audio frames the performance loss is noticable. Also with this very simple calculations (like peak) can be even further optimized. Unfoturnately there are some small differences in metadata and av_log info output, so factorizing calculations and output might not worth the hassle. Signed-off-by: Marton Balint <cus@passwd.hu>
* vf_showinfo: Fix timecode displayKieran Kunhya2019-03-091-2/+2
|
* lavf/deinterlace_qsv: set specific field for repeatLinjie Fu2019-03-081-2/+4
| | | | | | | | | | | | Set specific field for repeat in PicStruct if the frame has repeat flag. Match the CheckInputPicStruct in MSDK. Fix #7701. Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Zhong Li <zhong.li@intel.com>
* lavfi/tonemap: make use of AVFILTER_DEFINE_CLASSJun Zhao2019-03-081-7/+1
| | | | | | use AVFILTER_DEFINE_CLASS for defining the filter classes Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/zscale: make use of AVFILTER_DEFINE_CLASSJun Zhao2019-03-081-7/+1
| | | | | | use AVFILTER_DEFINE_CLASS for defining the filter classes Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avfilter/af_anlmdn: add output mode optionPaul B Mahol2019-03-011-1/+18
|
* avfilter/vf_thumbnail_cuda: Switch to using ffnvcodecPhilip Langdale2019-02-272-80/+92
| | | | | | | | | | | | | This change switches the vf_thumbnail_cuda filter from using the full cuda sdk to using the ffnvcodec headers and loader. Most of the change is a direct mapping, but I also switched from using texture references to using texture objects. This is supposed to be the preferred way of using textures, and the texture object API is the one I added to ffnvcodec. Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avfilter/vf_scale_cuda: Switch to using ffnvcodecPhilip Langdale2019-02-272-114/+127
| | | | | | | | | | | | | This change switches the vf_scale_cuda filter from using the full cuda sdk to using the ffnvcodec headers and loader. Most of the change is a direct mapping, but I also switched from using texture references to using texture objects. This is supposed to be the preferred way of using textures, and the texture object API is the one I added to ffnvcodec. Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avfilter/vf_yadif_cuda: Switch to using ffnvcodecPhilip Langdale2019-02-271-27/+31
| | | | | | | | This change switches the vf_thumbnail_cuda filter from using the full cuda sdk to using the ffnvcodec headers and loader. Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avfilter/vf_amplify: add tolerance optionPaul B Mahol2019-02-221-2/+5
|
* palettegen: Fill with last color, not blackTomas Härdin2019-02-191-1/+1
| | | | | | If we fill with black then the generated palette will have one color more than what the user requested. This also resulted in unwanted black specks in the output of paletteuse, especially when generating small palettes.
* avutil/cuda_check: fix usage of removed .c fileTimo Rothenpieler2019-02-152-8/+5
| | | | Why did this not break compilation?
* avfilter/tests/integral: Correct the commentJun Zhao2019-02-131-1/+1
| | | | | | Correct the comment Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* avfilter/tests/integral: Fix build warning after adjust the locationJun Zhao2019-02-121-4/+5
| | | | | | | | Fix build warning like "warning: ISO C90 forbids mixed declarations and code" after adjust the location for malloc fail check. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* avfilter/tests/integral: Check malloc fail before using itJun Zhao2019-02-121-3/+3
| | | | | | | | Need to check malloc fail before using it, so adjust the location in the code. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* avfilter/vf_mix: always output frame if array is filledPaul B Mahol2019-02-021-1/+2
|
* avfilter/vf_mix: add timeline support to tmix filterPaul B Mahol2019-02-021-2/+12
|
* lavfi/nlmeans: use a dynamic size for the weight LUTClément Bœsch2019-02-011-10/+6
|
* lavfi/nlmeans: simplify log() callClément Bœsch2019-02-011-1/+1
|
* lavfi/nlmeans: improve the performanceJun Zhao2019-02-011-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | Remove the pdiff_lut_scale in nlmeans and increase weight_lut table size from 2^9 to 500000, this change will avoid using pdiff_lut_scale in nlmeans_slice() for weight_lut table search, improving the performance by about 12%. (in 1080P size picture case). Use the profiling command like: perf stat -a -d -r 5 ./ffmpeg -i input -an -vf nlmeans=s=30 -vframes 10 \ -f null /dev/null without this change: when s=1.0(default value) 63s s=30.0 72s after this change: s=1.0(default value) 56s s=30.0 63s Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Clément Bœsch <u@pkh.me>
* avfilter/buffersrc: print relevant info when skipping filter reinitGyan Doshi2019-01-271-6/+12
| | | | | | The timestamp of the changed input frame as well as its relevant properties can be examined by the user. Only applicable when reinit_filter is disabled on the input stream.
* lavf/vaapi_deinterlace: return error if mode unsupportedZhong Li2019-01-251-0/+1
| | | | | | Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Fuwei Tang <fuweix.tang@intel.com> Signed-off-by: Zhong Li <zhong.li@intel.com>
* avfilter/afade+acrossfade: allow skipping fade on inputsGyan Doshi2019-01-241-1/+6
| | | | | New fade curve value 'nofade' passes audio samples as-is. Primarily useful in carrying out acrossfade without fades.
* libavfilter: add transpose_vaapi filterZachary Zhou2019-01-234-0/+324
| | | | | | | | | | | | Swap width and height when do clock/cclock rotation Add reversal/hflip/vflip options ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "transpose_vaapi=clock_flip" -c:v h264_vaapi output.h264 Signed-off-by: Zachary Zhou <zachary.zhou@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* avfilter/vf_paletteuse: don't constantly free and realloc internal framesJames Almer2019-01-171-6/+13
| | | | | Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/extractplanes: add support for 12-bit YUVA formatsGyan Doshi2019-01-171-0/+2
| | | | | At present, 16-bit auto-scaled format results in incorrect alpha extraction.
* avfilter/af_anlmdn: add timeline supportPaul B Mahol2019-01-131-2/+3
|
* avfilter: add maskfun filterPaul B Mahol2019-01-124-1/+282
|
* avfilter/af_anlmdn: rework how denoising strength is usedPaul B Mahol2019-01-121-2/+2
| | | | Make into account patch size.
* avfilter/af_anlmdn: do not output more samples than receivedPaul B Mahol2019-01-111-6/+8
|
* avfilter/af_anlmdn: drain samples at endPaul B Mahol2019-01-111-0/+30
|
* avfilter/af_anlmdn: do not trim first samplesPaul B Mahol2019-01-111-0/+5
| | | | Instead denoise from start, assumming missing samples are silence.
* avfilter/af_anlmdn: log used parametersPaul B Mahol2019-01-111-0/+2
|
* avfilter/af_anlmdn: use lut table to calculate weightsPaul B Mahol2019-01-101-4/+21
|
* avfilter: add anlmdn filter x86 SIMD optimizationsPaul B Mahol2019-01-105-10/+185
|
* lavfi/f_select: Cosmetics, move a function.Carl Eugen Hoyos2019-01-101-23/+23
| | | | | Silences a warning when only aselect was enabled: libavfilter/f_select.c:421:12: warning: 'query_formats' defined but not used
* lavfi/f_select: Fix aselect filter standalone compilation.Carl Eugen Hoyos2019-01-101-1/+1
|
* lavfi/Makefile: Fix bwdif filter standalone compilation.Carl Eugen Hoyos2019-01-101-1/+1
|
* avfilter/af_anlmdn: ignore too small valuesPaul B Mahol2019-01-091-1/+4
|
* avfilter: add anlmdn audio filterPaul B Mahol2019-01-084-2/+275
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>