Marton Balint
0c31a3876d
avfilter/vf_framerate: simplify filter
...
The framerate filter was quite convoluted with some filter_frame /
request_frame logic bugs. It seemed easier to rewrite the whole filter_frame /
request_frame part and also the frame interpolation ratio calculation part in
one step.
Notable changes:
- The filter now only stores 2 frames instead of 3
- filter_frame outputs all the frames it can to be able to handle consecutive
filter_frame calls which previously caused early drops of buffered frames.
- because of this, request_frame is largely simplified and it only outputs
frames on flush. Previously consecuitve request_frame calls could cause the
filter to think it is in flush mode filling its buffer with the same frames
causing a "ghost" effect on the output.
- PTS discontinuities are handled better
- frames with unknown PTS values are now dropped
Fixes ticket #4870 .
Probably fixes ticket #5493 .
Signed-off-by: Marton Balint <cus@passwd.hu>
2018-01-12 23:40:41 +01:00
Martin Vignali
b94cd55155
avfilter/x86/vf_interlace : add AVX2 version
2018-01-11 21:03:19 +01:00
Mark Thompson
526a87b471
vf_program_opencl: Add missing error code returns
...
Fixes CID #1427285 .
2018-01-10 23:27:19 +00:00
Mark Thompson
9b4611a1c1
vf_overlay_opencl: Don't leak output frame on error
...
Fixes CID #1423277 .
2018-01-10 23:25:56 +00:00
Paul B Mahol
de8a1d8d4d
avfilter/af_aiir: add polar zeros/poles format variant
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-10 20:25:50 +01:00
Paul B Mahol
de5b12c93f
avfilter/af_aiir: unbreak clipping detection
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-10 19:24:41 +01:00
Paul B Mahol
3c29f68b4d
avfilter/af_aiir: do not leak memory on failure in convert_zp2tf()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-10 18:38:01 +01:00
Paul B Mahol
e9edd61965
avfilter/af_aiir: refactor code so it uses IIRChannel struct
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-09 17:46:27 +01:00
Paul B Mahol
21c99f4b40
avfilter/af_aiir: make default processing to serially cascaded
...
Also add several helpfull log messages.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-09 13:08:01 +01:00
Paul B Mahol
d9a3074b93
avfilter/af_aiir: add slice threading support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-09 12:25:35 +01:00
Paul B Mahol
7add1ca2b5
avfilter/af_aiir: add cascaded biquads support
...
Also add precision option.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-09 12:25:35 +01:00
Paul B Mahol
3f234a0b22
avfilter/af_aiir: do not forget to free gains too
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-08 11:22:21 +01:00
Paul B Mahol
205046420d
avfilter/af_aiir: fix typo which may cause overread
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-08 08:45:02 +01:00
Mark Thompson
dfdc146161
lavfi: Add filters to run arbitrary OpenCL programs
2018-01-07 23:24:30 +00:00
Mark Thompson
202b59cd3d
lavfi/opencl: Use filter device if no input device is available
...
This allows implementing sources as well as filters.
2018-01-07 23:24:28 +00:00
Paul B Mahol
2d3df8e2e9
avfilter/af_aiir: rename options, provide gains in separate option
...
This way it can be also used for other format.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-07 21:22:38 +01:00
Paul B Mahol
6c65de3db0
avfilter/af_aiir: add support for alternative coefficients format
...
Support for zeros/poles syntax on Z-plane.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-07 17:03:46 +01:00
James Almer
b2c42fc6dc
avfilter: deprecate avfilter_link_get_channels()
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
2018-01-06 11:01:16 -03:00
Paul B Mahol
50b3cd22dd
avfilter/av_biquads: scale a0 too
...
Fixes bug when using commands to alter coefficients.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-06 14:58:00 +01:00
James Almer
da5b05c833
Revert "avfilter: deprecate avfilter_link_get_channels()"
...
This reverts commit 798dcf2432
.
It was applied by accident before it could be reviewed.
2018-01-05 22:13:28 -03:00
James Almer
798dcf2432
avfilter: deprecate avfilter_link_get_channels()
...
And move the channels field to the public section of the struct.
Signed-off-by: James Almer <jamrial@gmail.com>
2018-01-05 17:49:09 -03:00
Paul B Mahol
52c959a237
avfilter/af_aiir: do not crash with invalid options
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-05 19:58:07 +01:00
James Almer
167e659b28
avfilter: use a mutex instead of atomics in avfilter_register()
...
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2018-01-05 13:18:34 -03:00
Paul B Mahol
7bb1be9af0
avfilter: add arbitrary audio IIR filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-05 17:04:21 +01:00
Marc-Antoine Arnaud
e425047a47
avfilter: rename variables in geq
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-01-05 03:35:48 +01:00
Marc-Antoine Arnaud
ac6b0bba79
avfilter: slice processing for geq
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-01-05 03:35:48 +01:00
Marc-Antoine Arnaud
206b25f9f4
avfilter: reorder variable definition in geq
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-01-05 03:35:48 +01:00
Marton Balint
f528c49c7c
avfilter/vf_framerate: calculate interpolation as integer
...
It was truncated to int later on anyway. Fate test changes are due to rounding
instead of truncation.
Fixes fate test failures on x86-32 (gcc 4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1))
after 090b740680
.
Signed-off-by: Marton Balint <cus@passwd.hu>
2018-01-04 22:37:43 +01:00
Paul B Mahol
89bbf5c7ec
avfilter: add hilbert source FIR filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-04 12:26:19 +01:00
Paul B Mahol
88cbd25b19
avfilter: pass outlink to ff_get_audio_buffer()
...
This is more correct.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-03 22:52:47 +01:00
Nicolas George
29b5f3115d
lavfi/framesync: remove an invalid free.
2018-01-03 19:54:39 +01:00
Nicolas George
9ace76697a
lavfi/framesync: document frame ownership for dualinput.
2018-01-03 19:54:39 +01:00
Paul B Mahol
09b24a807a
avfilter: add entropy filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-03 19:45:01 +01:00
Derek Buitenhuis
631fa0432b
vf_paletteuse: Don't free the second frame from ff_framesync_dualinput_get_writable on error
...
This fixes a double free in he error case.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2018-01-03 13:02:27 -05:00
Derek Buitenhuis
6470abc740
vf_paletteuse: Add error checking to apply_palette
...
This fixes a segfault caused by passing NULL to ff_filter_frame
when an error occurs.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2018-01-03 13:02:15 -05:00
Paul B Mahol
9f7dbaad7e
avfilter/af_crystalizer: use outlink instead of inlink
...
Doesn't change anything but is more correct.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-01-01 21:57:06 +01:00
Paul B Mahol
f3552c3b9d
avfilter/af_afir: rework FIR gain measurement
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-31 19:16:22 +01:00
Carl Eugen Hoyos
ad73b32d29
lavfi/minterpolate: Split struct Pixel to allow higher resolutions.
...
Raises the maximum resolution from 2716x2707 to approximately 4096x4095.
Fixes ticket #6795 .
2017-12-28 01:28:57 +01:00
Paul B Mahol
8c9a91ac82
avfilter: add deconvolve filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-27 11:54:22 +01:00
Paul B Mahol
87f148d526
avfilter/vf_convolve: remove padding, its unused and not needed
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-27 11:10:12 +01:00
Paul B Mahol
caacbfa773
avfilter/vf_convolve: cosmetics
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-27 11:08:57 +01:00
wm4
9b121dfc32
w32pthreads: always use Vista+ API, drop XP support
...
This removes the XP compatibility code, and switches entirely to SWR
locks, which are available starting at Windows Vista.
This removes CRITICAL_SECTION use, which allows us to add
PTHREAD_MUTEX_INITIALIZER, which will be useful later.
Windows XP is hereby not a supported build target anymore. It was
decided in a project vote that this is OK.
2017-12-26 02:49:48 +01:00
Paul B Mahol
e712d30173
avfilter/vf_convolve: add threading for complex multiplication
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-25 15:46:04 +01:00
Paul B Mahol
c59e49f9b2
avfilter/vf_convolve: implement slice threading
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-25 11:53:54 +01:00
Paul B Mahol
f9f1b2a927
avfilter/vf_convolve: split input/output operations from fft
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-25 11:05:26 +01:00
Paul B Mahol
86e3eebfb7
avfilter/vf_convolve: use shorter variants for pointers
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-25 10:19:47 +01:00
Paul B Mahol
ec6608f51b
avfilter/vf_convolve: clear coefficients only when needed
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-25 10:06:07 +01:00
Paul B Mahol
5533cbfc84
avfilter/vf_convolve: fix various issues
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-24 18:24:48 +01:00
Paul B Mahol
175122fcd5
avfilter/vf_convolve: fix convolution of borders
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-24 10:15:26 +01:00
Paul B Mahol
b5958ff82e
avfilter/vf_convolve: unbreak non-power of 2 width&height filtering
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-12-23 17:44:52 +01:00