summaryrefslogtreecommitdiff
path: root/libavfilter
Commit message (Collapse)AuthorAge
* Merge commit '6d86cef06ba36c0ed591e14a2382e9630059fc5d'Mark Thompson2018-02-12
|\ | | | | | | | | | | | | * commit '6d86cef06ba36c0ed591e14a2382e9630059fc5d': lavfi: Add support for increasing hardware frame pool sizes Merged-by: Mark Thompson <sw@jkqxz.net>
| * lavfi: Add support for increasing hardware frame pool sizesMark Thompson2018-02-11
| | | | | | | | | | AVFilterContext.extra_hw_frames functions identically to the field of the same name in AVCodecContext.
* | lavfi: add a gitignore file for OpenCL compiled kernelsRostislav Pehlivanov2018-02-07
| | | | | | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | avfilter/af_join: Fix crash in join filterNikolas Bowe2018-02-03
| | | | | | | | | | | | | | Previously if ff_outlink_frame_wanted() returned 0 it could dereference a null pointer when trying to read nb_samples. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avfilter: add comments for duplicate lineSteven Liu2018-02-01
| | | | | | | | | | | | | | | | | | comment about the looks like a duplicate line. but that is used to reason x is expressed from y Suggested-by: Paul B Mahol Suggested-by: Michael Niedermayer Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* | avfilter/x86/vf_blend : avfilter/x86/vf_blend : add AVX2 version for each ↵Martin Vignali2018-01-28
| | | | | | | | | | | | func except divide and optimize average, grainextract, multiply, screen, grain merge
* | avfilter/vf_framerate: add SIMD functions for frame blendingMarton Balint2018-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Blend function speedups on x86_64 Core i5 4460: ffmpeg -f lavfi -i allyuv -vf framerate=60:threads=1 -f null none C: 447548411 decicycles in Blend, 2048 runs, 0 skips SSSE3: 130020087 decicycles in Blend, 2048 runs, 0 skips AVX2: 128508221 decicycles in Blend, 2048 runs, 0 skips ffmpeg -f lavfi -i allyuv -vf format=yuv420p12,framerate=60:threads=1 -f null none C: 228932745 decicycles in Blend, 2048 runs, 0 skips SSE4: 123357781 decicycles in Blend, 2048 runs, 0 skips AVX2: 121215353 decicycles in Blend, 2048 runs, 0 skips Signed-off-by: Marton Balint <cus@passwd.hu>
* | avfilter/vf_framerate: change blend factor precisionMarton Balint2018-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | | This is done mainly in preparation for the SIMD patches. - for the 8-bit input, decrease the blend factor precision to 7-bit. - for the 16-bit input, increase the blend factor precision to 15-bit. - make sure the blend functions are not called with 0 or maximum blending factors, because we don't want the signed factor integers to overflow. Fate test changes are due to different rounding. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avfilter/vf_framerate: factorize blend functions and unify filter_sliceMarton Balint2018-01-28
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | avfilter/vf_framerate: unify luma and chroma blendingMarton Balint2018-01-28
| | | | | | | | | | | | The expressions were mathematically equvivalent... Signed-off-by: Marton Balint <cus@passwd.hu>
* | avfilter/vf_transpose: Fix regression with packed pixel formatsMichael Niedermayer2018-01-28
| | | | | | | | | | | | | | Regression since: c6939f65a116b1ffed345d29d8621ee4ffb32235 Found-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avfilter/vf_transpose: Fix used plane count.Michael Niedermayer2018-01-27
| | | | | | | | | | | | | | | | Fixes out of array access Fixes: poc.mp4 Found-by: GwanYeong Kim <gy741.kim@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavfi/misc_vaapi: use default value setting if without arguments.Jun Zhao2018-01-25
| | | | | | | | | | Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | lavfi/procamp_vaapi: fix the green video issue if without arguments.Jun Zhao2018-01-25
| | | | | | | | | | | | | | | | | | Fix the green output issue when use procamp_vaapi without any arguments, now if use procamp_vaapi without any arguments, will use the default value to setting procamp_vaapi. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | lavfi/vf_xxx_vaapi: fix typo.Jun Zhao2018-01-24
| | | | | | | | Signed-off-by: Jun Zhao <jun.zhao@intel.com>
* | avfilter/Makefile: skip compiling vaapi_vpp.h when vaapi is not enabledJames Almer2018-01-23
| | | | | | | | | | | | Fixes make checkheaders Signed-off-by: James Almer <jamrial@gmail.com>
* | lavfi: add denoise and sharpness VAAPI video filters.Jun Zhao2018-01-21
| | | | | | | | | | | | | | | | | | Most code between them is common, so put them in a new file for miscellaneous VAAPI filters. Signed-off-by: Yun Zhou <yunx.z.zhou@intel.com> Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | lavfi: add ProcAmp (color balance) VAAPI video filter.Jun Zhao2018-01-21
| | | | | | | | | | | | | | | | | | | | Add ProcAmp(color balance) vaapi video filter, use the option like -vf "procamp_vaapi=b=10:h=120:c=2.8:s=3.7" to set brightness/hue/contrast/saturation. Signed-off-by: Yun Zhou <yunx.z.zhou@intel.com> Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | lavfi: use common VAAPI VPP infrastructure for vf_deinterlace_vaapi.Jun Zhao2018-01-21
| | | | | | | | | | Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | lavfi: use common VAAPI VPP infrastructure for vf_scale_vaapi.Jun Zhao2018-01-21
| | | | | | | | | | Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | lavfi: VAAPI VPP common infrastructure.Jun Zhao2018-01-21
| | | | | | | | | | | | | | | | Re-work the VAAPI common infrastructure to avoid code duplication between filters. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | avfilter/drawtext - implement fix_boundsGyan Doshi2018-01-20
| | | | | | | | | | | | | | | | | | | | | | When enabled, text, including effects like shadow or box, will be completely bound within the video frame. Default value changed to false to keep continuity of behaviour. Fixes #6960. Signed-off-by: Kyle Swanson <k@ylo.ph>
* | avfilter/formats: remove support for deprecated channel count specificationMarton Balint2018-01-20
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | lavfi/vf_scale_vaapi: set output SARRodger Combs2018-01-18
| |
* | avfilter/af_afade: acrossfade: switch to activatePaul B Mahol2018-01-18
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/vidstab: check bytesPerPixel only for packed formats.Gyan Doshi2018-01-17
| | | | | | | | | | | | | | | | | | libvidstab introduced this variable only for packed formats but in vf_vidstab*.c, it's checked for all inputs. So the filter errors out for YUV422/444P streams. Fixes #6736. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavfi/deinterlace_vaapi: fix can't show full option information.Jun Zhao2018-01-17
| | | | | | | | | | | | | | | | use ffmpeg -h filter=deinterlace_vaapi can't get full help information, the root cause is not setting the flags fileld in options. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avfilter/vf_idet: added more YUVA formats to idet query_formatsRobert Nagy2018-01-14
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avfilter/vf_framerate: simplify filterMarton Balint2018-01-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The framerate filter was quite convoluted with some filter_frame / request_frame logic bugs. It seemed easier to rewrite the whole filter_frame / request_frame part and also the frame interpolation ratio calculation part in one step. Notable changes: - The filter now only stores 2 frames instead of 3 - filter_frame outputs all the frames it can to be able to handle consecutive filter_frame calls which previously caused early drops of buffered frames. - because of this, request_frame is largely simplified and it only outputs frames on flush. Previously consecuitve request_frame calls could cause the filter to think it is in flush mode filling its buffer with the same frames causing a "ghost" effect on the output. - PTS discontinuities are handled better - frames with unknown PTS values are now dropped Fixes ticket #4870. Probably fixes ticket #5493. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avfilter/x86/vf_interlace : add AVX2 versionMartin Vignali2018-01-11
| |
* | vf_program_opencl: Add missing error code returnsMark Thompson2018-01-10
| | | | | | | | Fixes CID #1427285.
* | vf_overlay_opencl: Don't leak output frame on errorMark Thompson2018-01-10
| | | | | | | | Fixes CID #1423277.
* | avfilter/af_aiir: add polar zeros/poles format variantPaul B Mahol2018-01-10
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/af_aiir: unbreak clipping detectionPaul B Mahol2018-01-10
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/af_aiir: do not leak memory on failure in convert_zp2tf()Paul B Mahol2018-01-10
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/af_aiir: refactor code so it uses IIRChannel structPaul B Mahol2018-01-09
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/af_aiir: make default processing to serially cascadedPaul B Mahol2018-01-09
| | | | | | | | | | | | Also add several helpfull log messages. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/af_aiir: add slice threading supportPaul B Mahol2018-01-09
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/af_aiir: add cascaded biquads supportPaul B Mahol2018-01-09
| | | | | | | | | | | | Also add precision option. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/af_aiir: do not forget to free gains tooPaul B Mahol2018-01-08
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/af_aiir: fix typo which may cause overreadPaul B Mahol2018-01-08
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavfi: Add filters to run arbitrary OpenCL programsMark Thompson2018-01-07
| |
* | lavfi/opencl: Use filter device if no input device is availableMark Thompson2018-01-07
| | | | | | | | This allows implementing sources as well as filters.
* | avfilter/af_aiir: rename options, provide gains in separate optionPaul B Mahol2018-01-07
| | | | | | | | | | | | This way it can be also used for other format. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter/af_aiir: add support for alternative coefficients formatPaul B Mahol2018-01-07
| | | | | | | | | | | | Support for zeros/poles syntax on Z-plane. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter: deprecate avfilter_link_get_channels()James Almer2018-01-06
| | | | | | | | | | Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: James Almer <jamrial@gmail.com>
* | avfilter/av_biquads: scale a0 tooPaul B Mahol2018-01-06
| | | | | | | | | | | | Fixes bug when using commands to alter coefficients. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Revert "avfilter: deprecate avfilter_link_get_channels()"James Almer2018-01-05
| | | | | | | | | | | | This reverts commit 798dcf2432999f449c76c0e0fe2d7a4ee5eabbc2. It was applied by accident before it could be reviewed.
* | avfilter: deprecate avfilter_link_get_channels()James Almer2018-01-05
| | | | | | | | | | | | And move the channels field to the public section of the struct. Signed-off-by: James Almer <jamrial@gmail.com>
* | avfilter/af_aiir: do not crash with invalid optionsPaul B Mahol2018-01-05
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>