Andreas Rheinhardt
a04ad248a0
avfilter: Constify all AVFilters
...
This is possible now that the next-API is gone.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2021-04-27 11:48:05 -03:00
Paul B Mahol
c6ce18be08
avfilter/vf_convolution: add 16-column operation for filter_column()
...
Based on patch by Xu Jun <xujunzz@sjtu.edu.cn>
2021-02-13 14:45:48 +01:00
Paul B Mahol
35f8628047
avfilter: add kirsch video filter
2021-01-27 11:46:26 +01:00
Paul B Mahol
a0acc44106
avfilter/vf_convolution: use correct stride variable
2021-01-10 17:27:27 +01:00
Andreas Rheinhardt
096cb41624
avfilter/vf_convolution: Deduplicate filter options
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-01-08 05:06:11 +01:00
Paul B Mahol
d76469378d
avfilter/vf_convolution: add support for commands
2020-12-11 18:33:48 +01:00
Paul B Mahol
ee8fe9c94d
avfilter/vf_convolution: add 12bit yuva formats
2019-11-18 18:01:12 +01:00
Paul B Mahol
99f8d32129
avfilter/vf_convolution: fix undefined behaviour
...
Fixes #8263
2019-10-13 18:37:16 +02:00
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>
2019-08-14 14:37:47 +08:00
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>
2019-08-07 14:31:28 +08:00
Paul B Mahol
662120f2b2
avfilter/vf_convolution: use sqrtf as its faster
2018-11-15 19:09:20 +01:00
Paul B Mahol
bd6c57d532
avfilter: add support for gray14 format
2018-09-09 19:10:44 +02:00
Paul B Mahol
4cd4aa08a6
avfilter/vf_convolution: use already available dstride
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-05 11:01:02 +02:00
Paul B Mahol
aba39cc1f1
avfilter/vf_convolution: add column/vertical mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-04 21:32:26 +02:00
Paul B Mahol
c8c2fb0977
avfilter/vf_convolution: unbreak roberts filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-03 11:29:51 +02:00
Paul B Mahol
3a96534ed9
avfilter/vf_convolution: add horizontal/row mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-03 10:55:10 +02:00
Paul B Mahol
ab1114a0f5
avfilter/vf_convolution: rewrite so it doesn't use temp buffers
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-03 00:09:01 +02:00
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>
2018-04-28 11:25:43 +02:00
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>
2018-03-23 16:21:38 +01:00
Paul B Mahol
312b00de8f
avfilter/vf_convolution: add 7x7 filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-04 21:32:29 +01:00
Paul B Mahol
bac508fec1
avfilter: add support for GRAY9 and GBRAP10
2017-08-07 13:11:09 +02:00
Paul B Mahol
b9d0a5fc21
avfilter: add roberts cross operator
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-06-19 14:04:44 +02:00
Paul B Mahol
a50ca6b357
avfilter/vf_convolution: add slice threading support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-12 14:38:45 +02:00
Paul B Mahol
afeffd891f
avfilter: add sobel and prewitt filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-12 14:38:45 +02:00
Paul B Mahol
f242d74d17
avfilter/vf_convolution: add >8 bit depth support
2016-08-27 16:04:07 +02:00
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>
2016-01-27 16:36:46 +00:00
Michael Niedermayer
d863785379
avfilter/vf_convolution: Use av_clip_uint8()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-23 18:29:48 +01:00
Paul B Mahol
8a5d4a51ff
avfilter/vf_convolution: add timeline support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-22 17:54:44 +01:00
Paul B Mahol
1c02af307a
avfilter: add convolution filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-22 12:06:54 +01:00