summaryrefslogtreecommitdiff
path: root/libavfilter
Commit message (Collapse)AuthorAge
* avfilter/vf_deshake: use a void * comparator for consistencyGanesh Ajjanagadde2015-10-24
| | | | | | | | | | | For generality, qsort uses a comparator whose elements are void *. This makes the comparator have such a form, and thus makes the void * cast of the comparator pointer useless. Furthermore, this makes the code more consistent with other usages of qsort across the codebase. Reviewed-by: Henrik Gramner <henrik@gramner.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* all: remove some casts of function pointer to void *Ganesh Ajjanagadde2015-10-24
| | | | | | | | | | These casts are unnecessary, and may safely be removed. Found by enabling -Wpedantic on clang 3.7. Tested with FATE. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter: avoid zero arguments to variadic macroGanesh Ajjanagadde2015-10-24
| | | | | | | | | ISO C requires at least one argument in the place of the ellipsis in a variadic macro. In particular, under -pedantic, this triggers the warning -Wgnu-zero-variadic-macro-arguments on clang 3.7. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* vf_psnr/ssim: don't crash if stats_file is NULL.Ronald S. Bultje2015-10-23
|
* avfilter: add shuffleframes filterPaul B Mahol2015-10-23
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* vf_ssim: print per-channel dB values.Ronald S. Bultje2015-10-22
|
* vf_psnr: remove %0.2f format specifiers for stream summary line.Ronald S. Bultje2015-10-22
| | | | This makes output equally precise as vf_ssim.
* avfilter,swresample,swscale: use fabs, fabsf instead of FFABSGanesh Ajjanagadde2015-10-22
| | | | | | | | | | | | | | | | | | | | | | | | It is well known that fabs and fabsf are at least as fast and sometimes faster than the FFABS macro, at least on the gcc+glibc combination. For instance, see the reference: http://patchwork.sourceware.org/patch/6735/. This was a patch to glibc in order to remove their usages of a macro. The reason essentially boils down to fabs using the __builtin_fabs of the compiler, while FFABS needs to infer to not use a branch and to simply change the sign bit. Usually the inference works, but sometimes it does not. This may be easily checked by looking at the asm. This also has the added benefit of reducing macro usage, which has problems with side-effects. Note that avcodec is not handled here, as it is huge and most things there are integer arithmetic anyway. Tested with FATE. Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/vf_zscale: fix typoLou Logan2015-10-22
| | | | | | Fixes #4958 as found by nicol. Signed-off-by: Lou Logan <lou@lrcd.com>
* avfilter/vf_ssim: Add support for writing stats to stdoutTobias Rapp2015-10-21
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_psnr: Add support for writing stats to stdoutTobias Rapp2015-10-21
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/af_flanger: free frame on ENOMEMKyle Swanson2015-10-18
| | | | | Signed-off-by: Kyle Swanson <k@ylo.ph> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter: add zscale filterPaul B Mahol2015-10-18
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_ladspa: check functions return value in query_formatsPaul B Mahol2015-10-18
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/internal: Doxygen for ff_fmt_is_inGanesh Ajjanagadde2015-10-17
| | | | | | | This clarifies and adds Doxygen for ff_fmt_is_in. Reviewed-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/internal: add av_warn_unused_resultGanesh Ajjanagadde2015-10-17
| | | | | | | | | av_warn_unused_result is added to functions whose return status should be checked. Currently does not trigger any warnings, but should be useful for future robustness. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* chromakey: Use the pixel descriptor API for chroma subsampling infoTimothy Gu2015-10-17
|
* avfilter/selectivecolor: fix correction_method option rangeClément Bœsch2015-10-17
|
* avfilter/avfiltergraph: fix -Wunused-result warningsGanesh Ajjanagadde2015-10-16
| | | | | | | | | | | | Commit bf0d2d6030c239f91e0368a20fb2dc0705bfec99 introduced av_warn_unused_result to avfilter/formats, whose associated warnings were mostly fixed in 6aaac24d72a7da631173209841a3944fcb4a3309. This fixes the issues in avfilter/avfiltergraph. Tested with FATE. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/avfilter: Error out if audio parameters change instead of failing ↵Michael Niedermayer2015-10-16
| | | | | | | | | | | an assert Filters which support such changes should be excluded from these checks Fixes Ticket4884 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/af_tremolo: clean up extra newlinesKyle Swanson2015-10-15
| | | | | Signed-off-by: Kyle Swanson <k@ylo.ph> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/formats: add av_warn_unused_result to function prototypesGanesh Ajjanagadde2015-10-14
| | | | | | | | This uses the av_warn_unused_result attribute liberally to catch some forms of improper usage of functions defined in avfilter/formats.h. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/all: propagate errors of functions from avfilter/formatsGanesh Ajjanagadde2015-10-14
| | | | | | | | | | | | | | | | | | Many of the functions from avfilter/formats can return errors, usually AVERROR(ENOMEM). This propagates the return values. All of these were found by using av_warn_unused_result, demonstrating its utility. Tested with FATE. I am least sure of the changes to avfilter/filtergraph, since I don't know what/how reduce_format is intended to behave and how it should react to errors. Fixes: CID 1325680, 1325679, 1325678. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Previous version Reviewed-by: Nicolas George <george@nsup.org> Previous version Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/af_sidechaincompress: replace FFABS with fabsGanesh Ajjanagadde2015-10-13
|
* avfilter/af_astats: replace FFABS with fabsGanesh Ajjanagadde2015-10-13
|
* avfilter/af_agate: replace FFABS with fabsGanesh Ajjanagadde2015-10-13
|
* avfilter/drawtext: allow to format pts with strftimeAlex Agranovsky2015-10-12
| | | | Signed-off-by: Alex Agranovsky <alex@sighthound.com>
* x86/vf_w3fdif: use aligned loads in w3fdif_simple_highJames Almer2015-10-11
| | | | | Found-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* x86/vf_w3fdif: simplify w3fdif_simple_highJames Almer2015-10-11
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/buffersrc: add av_warn_unused_result attributesGanesh Ajjanagadde2015-10-11
| | | | | | | This adds av_warn_unused_result whenever it is relevant. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* x86/vf_w3fdif: move pxor outside the loop in w3fdif_complex_lowJames Almer2015-10-11
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter: add selectivecolor filterClément Bœsch2015-10-11
|
* avfilter/x86/vf_w3fdif: add colons after labelsPaul B Mahol2015-10-10
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_w3fdif: add x86 SIMDPaul B Mahol2015-10-10
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* doc: fix spelling errorsAndreas Cadhalpun2015-10-09
| | | | | Reviewed-by: Lou Logan <lou@lrcd.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avfilter/vf_blend: fix normal mode with opacity != 1Paul B Mahol2015-10-09
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_afade: fix start of fade outJustin Greer2015-10-08
| | | | Fixes #4919
* avfilter/delogo: Set default band to 1Jean Delvare2015-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | The original interpolation algorithm behaved poorly on the borders and did not even guarantee continuity at the borders. For this reason, a second interpolation/blending pass was required on the borders to make them seamless. However, since the interpolation algorithm was improved in June 2013, the border issues no longer exist. The new algorithm does guarantee continuity at the borders, making the second pass useless. A larger band always increases the cumulated interpolation error. In most cases it also increases the average interpolation error, even though the samples in the band are only partially interpolated. For this reason I would like to get rid of the "band" parameter. As a first step, let's change its default value from 4 to 1 and document it as deprecated. I have benchmarked this change on a combination of input sources and realistic logo areas. Lowering the band value from 4 to 1 resulted in 8 to 39 % less interpolation error per frame (or 1 to 34 % less interpolation error per luma sample.) Signed-off-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* avfilter/vf_w3fdif: scale down coefficiends by 2Paul B Mahol2015-10-07
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/x86/vf_blend.asm: hardmix: do same with two pxor instructions lessPaul B Mahol2015-10-07
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/x86/vf_blend.asm: 11th register is used, update functionsPaul B Mahol2015-10-07
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/x86/vf_blend.asm: add hardmix and phoenix sse2 SIMDPaul B Mahol2015-10-07
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/vf_yadif: reindent after last commit.Nicolas George2015-10-07
|
* lavfi/vf_thumbnail: reindent after last commit.Nicolas George2015-10-07
|
* lavfi/vf_w3fdif: reindent after last commit.Nicolas George2015-10-07
|
* lavfi/vf_alphamerge: reindent after last commit.Nicolas George2015-10-07
|
* lavfi/avf_showspectrum: reindent after last commit.Nicolas George2015-10-07
|
* lavfi/vf_yadif: remove looping on request_frame().Nicolas George2015-10-07
|
* lavfi/vf_w3fdif: remove looping on request_frame().Nicolas George2015-10-07
|
* lavfi/vf_thumbnail: remove looping on request_frame().Nicolas George2015-10-07
|