James Almer
b2c42fc6dc
avfilter: deprecate avfilter_link_get_channels()
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
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>
7 years ago
James Almer
da5b05c833
Revert "avfilter: deprecate avfilter_link_get_channels()"
This reverts commit 798dcf2432
.
It was applied by accident before it could be reviewed.
7 years ago
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>
7 years ago
Paul B Mahol
52c959a237
avfilter/af_aiir: do not crash with invalid options
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
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>
7 years ago
Paul B Mahol
7bb1be9af0
avfilter: add arbitrary audio IIR filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Marc-Antoine Arnaud
e425047a47
avfilter: rename variables in geq
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Marc-Antoine Arnaud
ac6b0bba79
avfilter: slice processing for geq
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Marc-Antoine Arnaud
206b25f9f4
avfilter: reorder variable definition in geq
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
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>
7 years ago
Paul B Mahol
89bbf5c7ec
avfilter: add hilbert source FIR filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
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>
7 years ago
Nicolas George
29b5f3115d
lavfi/framesync: remove an invalid free.
7 years ago
Nicolas George
9ace76697a
lavfi/framesync: document frame ownership for dualinput.
7 years ago
Paul B Mahol
09b24a807a
avfilter: add entropy filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
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>
7 years ago
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>
7 years ago
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>
7 years ago
Paul B Mahol
f3552c3b9d
avfilter/af_afir: rework FIR gain measurement
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
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 .
7 years ago
Paul B Mahol
8c9a91ac82
avfilter: add deconvolve filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
87f148d526
avfilter/vf_convolve: remove padding, its unused and not needed
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
caacbfa773
avfilter/vf_convolve: cosmetics
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
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.
7 years ago
Paul B Mahol
e712d30173
avfilter/vf_convolve: add threading for complex multiplication
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
c59e49f9b2
avfilter/vf_convolve: implement slice threading
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
f9f1b2a927
avfilter/vf_convolve: split input/output operations from fft
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
86e3eebfb7
avfilter/vf_convolve: use shorter variants for pointers
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
ec6608f51b
avfilter/vf_convolve: clear coefficients only when needed
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
5533cbfc84
avfilter/vf_convolve: fix various issues
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
175122fcd5
avfilter/vf_convolve: fix convolution of borders
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
b5958ff82e
avfilter/vf_convolve: unbreak non-power of 2 width&height filtering
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
b943bc343d
avfilter/vf_fftfilt: support >8 bit depth formats
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
f6608f4725
avfilter/vf_aspect: change outlink sample aspect ratio instead of inlink
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
4754d70a23
avfilter/video: pick sar from link
It should not be needed for each filter that sets sample aspect ratio
to set it explicitly also for each and every frame, instead that is
automatically done in get_buffer call.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
d2a2bc9a9f
avfilter/vf_lut: add support for gray formats
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Marton Balint
e403e4bdbe
avfilter/vf_framerate: fix scene score with negative linesize
Also, do not overread input if linesize > width, or linesize is not divisible
by 8, and use the proper rounded width/height for MAFD calculation.
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Marton Balint
c6a65ed670
avfilter/vf_framerate: do not calculate scene change score multiple times for the same frame
This speeds up the filter, and also fixes scene change detection score which is
reduced based on the difference of the current MAFD to the preivous MAFD.
Obviously if we compare two frames twice, the difference will be 0...
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Marton Balint
e1113a83cc
avfilter/vf_framerate: fix scene change detection score
- normalize score to [0..100] instead of [0..85]
- change the default score to 8.2 to roughly keep existing behaviour
- take into account bit depth
- do not truncate to integer
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Marton Balint
be15304ee6
avfilter/vf_framerate: factorize get_scene_score
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Marton Balint
090b740680
avfilter/vf_framerate: factorize blend_frames
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Marton Balint
1eb926dc02
avfilter/vf_framerate: add threaded blending operations
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Paul B Mahol
5a6e753bc6
avfilter/af_biquads: change defaults for biquad filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
7fc89f226f
avfilter/af_biquads: increase width range
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
c99ed89f89
avfilter/af_biquads: add kHz width_type
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
cfd52094c0
avfilter/vf_psnr: add more gbrap formats
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
James Almer
8e0e4384b0
Revert "avfilter/vf_interlace : add AVX2 for lowpass_line 8 and 16"
This reverts commits 1a5865b6dc
and
8fb1d63d91
.
They made fate interlace tests fail when AVX2 was used.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Martin Vignali
3df6e61dad
avfilter/x86/vf_hflip : indent
based on patch by Paul B Mahol
7 years ago
Martin Vignali
f181648176
avfilter/x86/vf_hflip : add avx2 version for hflip_byte and hflip_short
7 years ago