summaryrefslogtreecommitdiff
path: root/libavfilter/vf_blend.c
Commit message (Collapse)AuthorAge
* lavfi: split frame_count between input and output.Nicolas George2016-11-13
| | | | | | | | | | | | AVFilterLink.frame_count is supposed to count the number of frames that were passed on the link, but with min_samples, that number is not always the same for the source and destination filters. With the addition of a FIFO on the link, the difference will become more significant. Split the variable in two: frame_count_in counts the number of frames that entered the link, frame_count_out counts the number of frames that were sent to the destination filter.
* avfilter: make use of ff_filter_get_nb_threadsPaul B Mahol2016-08-29
|
* avfilter/vf_blend: fix incorrect Y variable when threading is usedPaul B Mahol2016-05-23
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_blend: add freeze and heat modesPaul B Mahol2016-02-24
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* vf_blend: Move C dsp function mapping to separate functionTimothy Gu2016-02-14
|
* vf_blend: Use integers for divide modeTimothy Gu2016-02-14
| | | | | | | | 2.5x faster for 8-bit mode without autovectorization in GCC, 2x slower with it on x86. However, since the platforms we enable GCC autovectorization on most probably has support for SSE2 optimization (added in the subsequent commit), this commit should in general do good.
* vf_blend: Reduce number of arguments for kernel functionTimothy Gu2016-02-14
|
* vf_blend: Use memcpy when opacity is 0Timothy Gu2016-02-14
| | | | For xor mode, 1.8x faster on Haswell.
* vf_blend: Templatize identity function and use a better nameTimothy Gu2016-02-14
|
* avfilter/vf_blend: add multiply128 modePaul B Mahol2016-02-07
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPATDerek Buitenhuis2016-01-27
| | | | | | | | | | Libav, for some reason, merged this as a public API function. This will aid in future merges. A define is left for backwards compat, just in case some person used it, since it is in a public header. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* 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_blend: fix normal mode with opacity != 1Paul B Mahol2015-10-09
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_blend: Fix argument types, fix segfault in asmMichael Niedermayer2015-10-03
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_blend: add x86 SIMD for some modesPaul B Mahol2015-10-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_blend: add addition128 modePaul B Mahol2015-09-26
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi: remove FF_LINK_FLAG_REQUEST_LOOP.Nicolas George2015-09-20
| | | | It has no longer any effect.
* avfilter/blend: use AV_OPT_TYPE_BOOL for shortest and repeatlast optionsClément Bœsch2015-09-08
|
* Replace all remaining occurances of step/depth_minus1 and offset_plus1Hendrik Leppkes2015-09-08
|
* avfilter/vf_blend: use the name 's' for the pointer to the private contextPaul B Mahol2015-08-25
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_blend: unbreak tblendPaul B Mahol2015-07-18
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_blend: implement 16bit supportPaul B Mahol2015-07-18
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_blend: add linearlight and glow modePaul B Mahol2015-06-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_blend: add hardmix modePaul B Mahol2015-06-02
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_blend: fix vividlight blend modePaul B Mahol2015-06-02
| | | | | Pointed-out-by: Rudolf Polzer Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_blend: clip result for divide blend modePaul B Mahol2015-06-02
| | | | | Pointed-out-by: Rudolf Polzer Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: handle error in query_formats() in bunch of filtersPaul B Mahol2015-04-08
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_tblend: use av_frame_free for freeing an AVFrameClément Bœsch2015-03-02
|
* libavfilter/vf_blend: do not unconditionally compile both filtersPaul B Mahol2015-01-05
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_blend: Fix AVClassMichael Niedermayer2014-12-27
| | | | | | Fixes infinite loop Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi: add tblend filterStefano Sabatini2014-12-27
|
* lavfi/blend: add difference128 modeStefano Sabatini2014-12-26
|
* avfilter/vf_blend: fix macro ()Michael Niedermayer2014-06-22
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* 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>
* avfilter/dualinput: simplifyPaul B Mahol2013-09-30
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/dualinput: reimplement on top of framesync.Nicolas George2013-09-23
|
* avfilter: various cosmeticsPaul B Mahol2013-09-12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/blend: use dual input helpersPaul B Mahol2013-07-06
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/blend: support slice threadingPaul B Mahol2013-05-24
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/blend: fix SW/SH calculationPaul B Mahol2013-05-24
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/blend: add yuv(j)411pPaul B Mahol2013-05-24
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/blend: timeline supportPaul B Mahol2013-05-14
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi: use ceil right shift for chroma width/height.Clément Bœsch2013-05-10
| | | | | | | This should fix several issues with odd dimensions inputs. lut, vflip, pad and crop video filters also need to be checked for such issues. It's possible sws is also affected.
* lavfi: add gbrap support to some filtersPaul B Mahol2013-05-08
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/blend: merge config_input_top into config_outputPaul B Mahol2013-05-02
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/blend: use correct way to check number of planesPaul B Mahol2013-05-02
| | | | | | | This fix crash with gray, as its marked as pseudopal, and thus have extra plane. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi: add frame counter into AVFilterLink and use it in filters.Clément Bœsch2013-04-23
|
* lavfi: remove now unused args parameter from AVFilter.init and init_opaqueMichael Niedermayer2013-04-12
| | | | | | | | | This is mostly automated global search and replace The deprecated aconvert filter is disabled, if it still has users it should be updated Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi/blend: support more yuv pixel formatsPaul B Mahol2013-04-11
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/blend: switch to AVOption-based systemMatthieu Bouron2013-04-11
|