Paul B Mahol
37e69b40df
avfilter/vf_blend: add 9bit support
5 years ago
Paul B Mahol
d49d7d238f
avfilter/vf_blend: use time_base from framesync
Fixes non-monotonous timestamps.
5 years ago
Limin Wang
c9c1711f49
libavfilter/vf_blend.c: remove duplicate code with macro-defined function
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
6 years ago
Limin Wang
24321b8751
libavfilter/vf_blend.c: remove duplicate code with same function
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
6 years ago
Paul B Mahol
16154c019f
avfilter/vf_blend: remove unused header
6 years ago
Martin Vignali
d3621b2321
avfilter: use av_clip_uintp2 instead of av_clip for 10b and 12b
6 years ago
Paul B Mahol
1342ec526e
avfilter/vf_blend: add 12bit support
6 years ago
Paul B Mahol
c98a32e4ad
avfilter/vf_blend: add 10bit support
6 years ago
Paul B Mahol
a27cab9eca
avfilter/vf_blend: add timeline support to tblend filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
79aa9d8aee
avfilter/vf_blend: ignore SAR from all inputs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Nicolas George
5f5dcf44e3
lavfi: rename framesync2 to framesync.
7 years ago
Nicolas George
c1d8d33a51
lavfi/vf_blend: convert to framesync2.
7 years ago
Paul B Mahol
f8d0689d3f
avfilter/vf_blend: rename addition128 and difference128 to grainmerge and grainextract
7 years ago
Paul B Mahol
22a03c2900
avfilter/vf_blend: add extremity blend mode
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
0da3c568fd
avfilter/vf_blend: add GBRAP16
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Nicolas George
183ce55b0d
lavfi: split frame_count between input and output.
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.
8 years ago
Paul B Mahol
a0a57072c9
avfilter: make use of ff_filter_get_nb_threads
8 years ago
Paul B Mahol
5b8faaad6c
avfilter/vf_blend: fix incorrect Y variable when threading is used
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
b6a0aa1c0a
avfilter/vf_blend: add freeze and heat modes
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Timothy Gu
8c56a4a1ed
vf_blend: Move C dsp function mapping to separate function
9 years ago
Timothy Gu
a678d66781
vf_blend: Use integers for divide mode
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.
9 years ago
Timothy Gu
4574323973
vf_blend: Reduce number of arguments for kernel function
9 years ago
Timothy Gu
ee281b884e
vf_blend: Use memcpy when opacity is 0
For xor mode, 1.8x faster on Haswell.
9 years ago
Timothy Gu
ba25936df5
vf_blend: Templatize identity function and use a better name
9 years ago
Paul B Mahol
ba618bde7f
avfilter/vf_blend: add multiply128 mode
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Derek Buitenhuis
21f9468402
avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT
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>
9 years ago
Ganesh Ajjanagadde
8507b98c10
avfilter,swresample,swscale: use fabs, fabsf instead of FFABS
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>
9 years ago
Paul B Mahol
5e0abf59d8
avfilter/vf_blend: fix normal mode with opacity != 1
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
fd9a528523
avfilter/vf_blend: Fix argument types, fix segfault in asm
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
9762554dd0
avfilter/vf_blend: add x86 SIMD for some modes
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
4cf60b4fa1
avfilter/vf_blend: add addition128 mode
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Nicolas George
44f660e7e7
lavfi: remove FF_LINK_FLAG_REQUEST_LOOP.
It has no longer any effect.
9 years ago
Clément Bœsch
7a29d10839
avfilter/blend: use AV_OPT_TYPE_BOOL for shortest and repeatlast options
9 years ago
Hendrik Leppkes
5d8e836d0e
Replace all remaining occurances of step/depth_minus1 and offset_plus1
9 years ago
Paul B Mahol
e030d3c61f
avfilter/vf_blend: use the name 's' for the pointer to the private context
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
9a829a2b6a
avfilter/vf_blend: unbreak tblend
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
efd4e5fe68
avfilter/vf_blend: implement 16bit support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
b8c0cf7880
avfilter/vf_blend: add linearlight and glow mode
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
3e04746ec3
avfilter/vf_blend: add hardmix mode
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
20cea0c7de
avfilter/vf_blend: fix vividlight blend mode
Pointed-out-by: Rudolf Polzer
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
ac973926b8
avfilter/vf_blend: clip result for divide blend mode
Pointed-out-by: Rudolf Polzer
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
a0854c084e
avfilter: handle error in query_formats() in bunch of filters
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Clément Bœsch
f5cbb2c55e
avfilter/vf_tblend: use av_frame_free for freeing an AVFrame
10 years ago
Paul B Mahol
91bdb24400
libavfilter/vf_blend: do not unconditionally compile both filters
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Michael Niedermayer
ed96830afc
avfilter/vf_blend: Fix AVClass
Fixes infinite loop
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Stefano Sabatini
d4fd3f24e8
lavfi: add tblend filter
10 years ago
Stefano Sabatini
afaa4a8946
lavfi/blend: add difference128 mode
10 years ago
Michael Niedermayer
9b33cdcab2
avfilter/vf_blend: fix macro ()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Paul B Mahol
cd1b22d8e8
avfilter/dualinput: simplify
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Nicolas George
231e50157c
lavfi/dualinput: reimplement on top of framesync.
11 years ago