Paul B Mahol
c6ce18be08
avfilter/vf_convolution: add 16-column operation for filter_column()
Based on patch by Xu Jun <xujunzz@sjtu.edu.cn>
5 years ago
Paul B Mahol
35f8628047
avfilter: add kirsch video filter
4 years ago
Paul B Mahol
a0acc44106
avfilter/vf_convolution: use correct stride variable
4 years ago
Andreas Rheinhardt
096cb41624
avfilter/vf_convolution: Deduplicate filter options
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
4 years ago
Paul B Mahol
d76469378d
avfilter/vf_convolution: add support for commands
4 years ago
Paul B Mahol
ee8fe9c94d
avfilter/vf_convolution: add 12bit yuva formats
5 years ago
Paul B Mahol
99f8d32129
avfilter/vf_convolution: fix undefined behaviour
Fixes #8263
5 years ago
Andreas Rheinhardt
8fcc5d963e
avfilter/vf_convolution: Fix build failures
98e419cb
added SIMD for the convolution filter for x64 systems. As
usual, it used a check of the form
if (ARCH_X86_64)
ff_convolution_init_x86(s);
and thereby relied on the compiler eliminating this pseudo-runtime check
at compiletime for non x64 systems (for which ff_convolution_init_x86
isn't defined) to compile. But vf_convolution.c contains more than one
filter and if the convolution filter is disabled, but one of the other
filters (prewitt, sobel, roberts) is enabled, the build will fail on x64,
because ff_convolution_init_x86 isn't defined in this case.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Ruiling Song
98e419cbf5
avfilter/vf_convolution: add x86 SIMD for filter_3x3()
Tested using a simple command (apply edge enhance):
./ffmpeg_g -i ~/Downloads/bbb_sunflower_1080p_30fps_normal.mp4 \
-vf convolution="0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:5:1:1:1:0:128:128:128" \
-an -vframes 1000 -f null /dev/null
The fps increase from 151 to 270 on my local machine.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
5 years ago
Paul B Mahol
662120f2b2
avfilter/vf_convolution: use sqrtf as its faster
6 years ago
Paul B Mahol
bd6c57d532
avfilter: add support for gray14 format
6 years ago
Paul B Mahol
4cd4aa08a6
avfilter/vf_convolution: use already available dstride
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
aba39cc1f1
avfilter/vf_convolution: add column/vertical mode
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
c8c2fb0977
avfilter/vf_convolution: unbreak roberts filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
3a96534ed9
avfilter/vf_convolution: add horizontal/row mode
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
ab1114a0f5
avfilter/vf_convolution: rewrite so it doesn't use temp buffers
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
4f484edaa7
avfilter/vf_convolution: make rdiv set to 0 more useful
Use 0 for signaling that rdiv will be calculated from sum
of all matrix elements.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
fe0fdc51b5
avfilter/vf_convolution: disable fast path if rdiv/bias are different from defaults
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
312b00de8f
avfilter/vf_convolution: add 7x7 filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
bac508fec1
avfilter: add support for GRAY9 and GBRAP10
7 years ago
Paul B Mahol
b9d0a5fc21
avfilter: add roberts cross operator
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
a50ca6b357
avfilter/vf_convolution: add slice threading support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
afeffd891f
avfilter: add sobel and prewitt filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
f242d74d17
avfilter/vf_convolution: add >8 bit depth support
8 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
Michael Niedermayer
d863785379
avfilter/vf_convolution: Use av_clip_uint8()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
8a5d4a51ff
avfilter/vf_convolution: add timeline support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
1c02af307a
avfilter: add convolution filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago