summaryrefslogtreecommitdiff
path: root/libavfilter/vf_dctdnoiz.c
Commit message (Collapse)AuthorAge
* 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: handle error in query_formats() of a bunch of random video filtersClément Bœsch2015-03-16
|
* avfilter/dctdnoiz: fix slice_h computationClément Bœsch2015-02-08
| | | | | | | ceilf() can only work if the reminder of the division is not 0. This fixes memory errors with for instance: ffmpeg -f lavfi -i testsrc=s=800x500 -threads 3 -vf dctdnoiz -frames:v 1 -f null -
* avfilter/vf_dctdnoiz: Use av_malloc_array()Paul B Mahol2015-02-01
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_dctdnoiz: use av_freep() to avoid leaving stale pointers in memoryMichael Niedermayer2014-12-14
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avfilter/dctdnoiz: add slice threadingClément Bœsch2014-08-13
|
* avfilter/dctdnoiz: remove a few indirections in idctsClément Bœsch2014-08-09
| | | | No change in the generated asm.
* avfilter/dctdnoiz: use 32-bit (float) operations instead of 64 (double) for DCTsClément Bœsch2014-08-08
| | | | | This makes the code about 1.5x faster without any noticeable difference in the output.
* avfilter/dctdnoiz: remove forward declarations after previous commitClément Bœsch2014-08-08
|
* avfilter/dctdnoiz: make color [de]correlation less clumsyClément Bœsch2014-08-08
| | | | | This has no impact on overall performance, since the block DCT taking most of the time anyway.
* avfilter/dctdnoiz: add 8x8 dct and make it the defaultClément Bœsch2014-08-07
| | | | | | | | 8x8 is about 5x faster than 16x16 on 1080p input. Since a block size of 8x8 makes the filter almost usable (time wise) and it's not obvious if 8x8 or 16x16 is better from a quality PoV (it really depends on the input and parameters), the filter now defaults to 8x8, and as a result libavfilter is micro bumped.
* avfilter/dctdnoiz: rewrite [f/i]dctClément Bœsch2014-08-07
| | | | | | | | | This removes the avcodec dependency and make the code almost twice as fast. More to come. The DCT factorization is based on "Fast and numerically stable algorithms for discrete cosine transforms" from Gerlind Plonkaa & Manfred Tasche (DOI: 10.1016/j.laa.2004.07.015).
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-10-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: lavfi: do not export the filters from shared objects Conflicts: libavfilter/af_amix.c libavfilter/af_anull.c libavfilter/asrc_anullsrc.c libavfilter/f_select.c libavfilter/f_settb.c libavfilter/split.c libavfilter/src_movie.c libavfilter/vf_aspect.c libavfilter/vf_blackframe.c libavfilter/vf_colorbalance.c libavfilter/vf_copy.c libavfilter/vf_crop.c libavfilter/vf_cropdetect.c libavfilter/vf_drawbox.c libavfilter/vf_format.c libavfilter/vf_framestep.c libavfilter/vf_frei0r.c libavfilter/vf_hflip.c libavfilter/vf_libopencv.c libavfilter/vf_lut.c libavfilter/vf_null.c libavfilter/vf_overlay.c libavfilter/vf_scale.c libavfilter/vf_transpose.c libavfilter/vf_unsharp.c libavfilter/vf_vflip.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi/dctdnoiz: move DC normalization out of loops.Clément Bœsch2013-05-26
| | | | | | | | Make code slightly faster, simpler, clearer. The filter is still slow as hell, and that change won't cause any visible performance improvement (it still takes more than one minute to process a single 1080p frame on a Core 2 here).
* lavfi/dctdnoiz: fix 10l typo in pr_height computation.Clément Bœsch2013-05-15
|
* lavfi: add dctdnoiz filter.Clément Bœsch2013-05-15