Nicolas George
2f76476549
lavfi: regroup formats lists in a single structure.
...
It will allow to refernce it as a whole without clunky macros.
Most of the changes have been automatically made with sed:
sed -i '
s/-> *in_formats/->incfg.formats/g;
s/-> *out_formats/->outcfg.formats/g;
s/-> *in_channel_layouts/->incfg.channel_layouts/g;
s/-> *out_channel_layouts/->outcfg.channel_layouts/g;
s/-> *in_samplerates/->incfg.samplerates/g;
s/-> *out_samplerates/->outcfg.samplerates/g;
' src/libavfilter/*(.)
2020-09-08 14:02:40 +02:00
Paul B Mahol
21d1bb00c4
avfilter/af_sofalizer: switch to activate
2019-04-29 13:35:04 +02:00
Paul B Mahol
e1f7881d92
afilter/af_sofalizer: check explicitly other type
2019-01-01 12:29:19 +01:00
Paul B Mahol
51b356eef8
avfilter/af_sofalizer: stop allocating never used buffers
2018-12-31 19:40:18 +01:00
Paul B Mahol
b5e0a0fe3a
avfilter/af_sofalizer: use av_log2()
2018-12-27 12:31:01 +01:00
Paul B Mahol
92ed9316bb
avfilter/af_sofalizer: fix regression after 7ea4b928a2
2018-12-26 10:18:19 +01:00
Paul B Mahol
60e9007be2
avfilter/af_sofalizer: fix typo in comments
2018-12-26 10:01:06 +01:00
Paul B Mahol
8e4e2c9e40
avfilter/af_sofalizer: use float constants
2018-12-26 10:01:06 +01:00
Paul B Mahol
530fc345ec
avfilter/af_sofalizer: add fltp sample format support
2018-12-26 10:01:06 +01:00
Paul B Mahol
8d0b8c50bd
avfilter/af_sofalizer: speed up fast convolution
...
Do inverse FFT only once per output channel.
2018-12-25 18:56:55 +01:00
Paul B Mahol
84d1adb118
avfilter/af_sofalizer: do not reduce LFE by 6dB
...
It is already reduced enough.
2018-12-24 15:24:20 +01:00
Paul B Mahol
7d5bb3a4d3
avfilter/af_sofalizer: fix memory leaks
2018-12-23 21:49:30 +01:00
Paul B Mahol
ee64b64c02
avfilter/af_sofalizer: set delays when interpolation is disabled
2018-12-23 21:40:07 +01:00
Paul B Mahol
4096c670ab
avfilter/af_sofalizer: stop using easy API
...
Easy API is not flexible enough for our needs.
2018-12-23 18:29:53 +01:00
Paul B Mahol
d360a79c0a
avfilter/af_sofalizer: reset FFT pointers back to NULL
2018-12-23 11:30:01 +01:00
Paul B Mahol
0c3481b43a
avfilter/af_sofalizer: pick IR length after loading sofa
...
Instead of picking it in preloading stage.
2018-12-23 11:02:34 +01:00
Paul B Mahol
b13fe6477d
avfilter/af_sofalizer: increase range for lfegain
...
Fixes #7634 .
2018-12-23 10:00:44 +01:00
Paul B Mahol
7ea4b928a2
avfilter/af_sofalizer: fix non-power of 2 IR length filtering in time domain
2018-12-22 16:19:21 +01:00
Paul B Mahol
c49307e784
avfilter/af_sofalizer: use fabsf() instead of fabs()
2018-12-21 11:53:44 +01:00
Paul B Mahol
d6951e595a
avfilter/af_sofalizer: add framesize option
2018-12-20 20:30:07 +01:00
Paul B Mahol
1ead98ffd9
avfilter/af_sofalizer: increase max radius
2018-12-20 19:20:30 +01:00
Paul B Mahol
4b5977fc50
avfilter/af_sofalizer: add printing of license back
2018-12-20 13:46:49 +01:00
Paul B Mahol
9b2c325060
avfilter/af_sofalizer: use av_sscanf()
2018-11-18 21:21:18 +01:00
Paul B Mahol
2336c76b22
avfilter/af_sofalizer: switch to libmysofa
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-06-08 22:02:26 +02:00
Paul B Mahol
f5e5c53117
avfilter/af_sofalizer: make lfe gain user configurable
...
Default settings have it too low.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-05-18 23:13:52 +02:00
Paul B Mahol
79bf4d1450
avfilter/af_sofalizer: avoid casting
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-05-18 22:49:04 +02:00
Michael Niedermayer
4064f3f0df
avfilter/af_sofalizer: Fix bad shift
...
Fixes CID1396835
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-30 22:46:31 +02:00
Paul B Mahol
7aef56864c
avfilter/af_sofalizer: speed and clean up fast convolution a little
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-09 18:38:25 +01:00
Paul B Mahol
458fbee221
avfilter/af_sofalizer: warn if user gives unknown channel names
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-12-14 22:47:38 +01:00
Paul B Mahol
a55c953ef0
avfilter/af_sofalizer: allow user to setup custom virtual speakers positions
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-03-28 21:27:59 +02:00
Michael Niedermayer
c34250178b
avfilter/af_sofalizer: Fix "warning: ISO C90 forbids mixed declarations and code"
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-03-14 22:40:38 +01:00
Paul B Mahol
781195fa62
avfilter/af_sofalizer: check if filename was set.
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-03-04 22:14:43 +01:00
Paul B Mahol
79a54f30c8
avfilter/af_sofalizer: fix crash when ir size is not aligned, usually when n_samples are not power of 2
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-03-04 10:38:40 +01:00
Paul B Mahol
21234c835d
avfilter/af_sofalizer: fix crash with odd IR size
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-03-03 23:59:58 +01:00
Paul B Mahol
3e491a1fb6
avfilter/af_sofalizer: print size of FFT that failed to init
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-03-03 23:59:58 +01:00
Ganesh Ajjanagadde
9dba3f8f09
lavfi/af_sofalizer: remove exp2 and replace clz by ff_clz
...
ff_clz is faster, and uses an intrinsic (at the moment on GCC). exp2 is
a wasteful function for a simple integer exponentiation.
Untested.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2016-01-01 12:12:10 -08:00
Paul B Mahol
8cbb055760
avfilter/af_sofalizer: make virtual speaker positioning supports all channel layouts
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-24 19:00:05 +01:00
Michael Niedermayer
c67cf84d7c
avfilter/af_sofalizer: Fix occured typo
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-17 19:00:33 +01:00
Paul B Mahol
fa2c1eab95
avfilter/af_sofalizer: use SIMD in compensate_volume()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-16 15:00:14 +01:00
Paul B Mahol
04cc4d0550
avfilter/af_sofalizer: check av_fft_init return code
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-15 10:04:01 +01:00
Paul B Mahol
2f12172d67
avfilter/af_sofalizer: add frequency domain processing and use it by default
...
Code ported from SOFAlizer patch for VLC.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-14 21:58:08 +01:00
Paul B Mahol
ac25d1d35e
avfilter/af_sofalizer: switch comments positions to correct order
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-13 18:49:29 +01:00
Paul B Mahol
f69f050a31
avfilter/af_sofalizer: fix calculation of split point
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-13 17:57:07 +01:00
Paul B Mahol
780c4223a5
avfilter/af_sofalizer: remove reorder hack
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-13 12:57:33 +01:00
Paul B Mahol
49d97d9bca
avfilter/af_sofalizer: move modulo operation out of loop
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-13 12:57:33 +01:00
Paul B Mahol
e6258677ee
avfilter/af_sofalizer: make it possible to configure speaker elevation
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-13 01:13:58 +01:00
Paul B Mahol
d62e979b8c
avfilter/af_sofalizer: display some info when loading sofa file
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-12 21:31:18 +01:00
Paul B Mahol
0a19538bcf
avfilter: add SOFAlizer audio filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-12 20:56:36 +01:00