Paul B Mahol
f7fd205f11
avfilter/af_sofalizer: allow up to 64 channels
4 years ago
Paul B Mahol
aa125fd06a
avfilter/af_sofalizer: allow to specify virtual speakers indetifier as number
4 years ago
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/*(.)
4 years ago
Paul B Mahol
21d1bb00c4
avfilter/af_sofalizer: switch to activate
6 years ago
Paul B Mahol
e1f7881d92
afilter/af_sofalizer: check explicitly other type
6 years ago
Paul B Mahol
51b356eef8
avfilter/af_sofalizer: stop allocating never used buffers
6 years ago
Paul B Mahol
b5e0a0fe3a
avfilter/af_sofalizer: use av_log2()
6 years ago
Paul B Mahol
92ed9316bb
avfilter/af_sofalizer: fix regression after 7ea4b928a2
6 years ago
Paul B Mahol
60e9007be2
avfilter/af_sofalizer: fix typo in comments
6 years ago
Paul B Mahol
8e4e2c9e40
avfilter/af_sofalizer: use float constants
6 years ago
Paul B Mahol
530fc345ec
avfilter/af_sofalizer: add fltp sample format support
6 years ago
Paul B Mahol
8d0b8c50bd
avfilter/af_sofalizer: speed up fast convolution
Do inverse FFT only once per output channel.
6 years ago
Paul B Mahol
84d1adb118
avfilter/af_sofalizer: do not reduce LFE by 6dB
It is already reduced enough.
6 years ago
Paul B Mahol
7d5bb3a4d3
avfilter/af_sofalizer: fix memory leaks
6 years ago
Paul B Mahol
ee64b64c02
avfilter/af_sofalizer: set delays when interpolation is disabled
6 years ago
Paul B Mahol
4096c670ab
avfilter/af_sofalizer: stop using easy API
Easy API is not flexible enough for our needs.
6 years ago
Paul B Mahol
d360a79c0a
avfilter/af_sofalizer: reset FFT pointers back to NULL
6 years ago
Paul B Mahol
0c3481b43a
avfilter/af_sofalizer: pick IR length after loading sofa
Instead of picking it in preloading stage.
6 years ago
Paul B Mahol
b13fe6477d
avfilter/af_sofalizer: increase range for lfegain
Fixes #7634 .
6 years ago
Paul B Mahol
7ea4b928a2
avfilter/af_sofalizer: fix non-power of 2 IR length filtering in time domain
6 years ago
Paul B Mahol
c49307e784
avfilter/af_sofalizer: use fabsf() instead of fabs()
6 years ago
Paul B Mahol
d6951e595a
avfilter/af_sofalizer: add framesize option
6 years ago
Paul B Mahol
1ead98ffd9
avfilter/af_sofalizer: increase max radius
6 years ago
Paul B Mahol
4b5977fc50
avfilter/af_sofalizer: add printing of license back
6 years ago
Paul B Mahol
9b2c325060
avfilter/af_sofalizer: use av_sscanf()
6 years ago
Paul B Mahol
2336c76b22
avfilter/af_sofalizer: switch to libmysofa
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
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>
8 years ago
Paul B Mahol
79bf4d1450
avfilter/af_sofalizer: avoid casting
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Michael Niedermayer
4064f3f0df
avfilter/af_sofalizer: Fix bad shift
Fixes CID1396835
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Paul B Mahol
7aef56864c
avfilter/af_sofalizer: speed and clean up fast convolution a little
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
458fbee221
avfilter/af_sofalizer: warn if user gives unknown channel names
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
a55c953ef0
avfilter/af_sofalizer: allow user to setup custom virtual speakers positions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
c34250178b
avfilter/af_sofalizer: Fix "warning: ISO C90 forbids mixed declarations and code"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
781195fa62
avfilter/af_sofalizer: check if filename was set.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
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>
9 years ago
Paul B Mahol
21234c835d
avfilter/af_sofalizer: fix crash with odd IR size
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
3e491a1fb6
avfilter/af_sofalizer: print size of FFT that failed to init
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
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>
9 years ago
Paul B Mahol
8cbb055760
avfilter/af_sofalizer: make virtual speaker positioning supports all channel layouts
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
c67cf84d7c
avfilter/af_sofalizer: Fix occured typo
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
fa2c1eab95
avfilter/af_sofalizer: use SIMD in compensate_volume()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
04cc4d0550
avfilter/af_sofalizer: check av_fft_init return code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
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>
9 years ago
Paul B Mahol
ac25d1d35e
avfilter/af_sofalizer: switch comments positions to correct order
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
f69f050a31
avfilter/af_sofalizer: fix calculation of split point
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
780c4223a5
avfilter/af_sofalizer: remove reorder hack
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
49d97d9bca
avfilter/af_sofalizer: move modulo operation out of loop
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
e6258677ee
avfilter/af_sofalizer: make it possible to configure speaker elevation
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
d62e979b8c
avfilter/af_sofalizer: display some info when loading sofa file
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
0a19538bcf
avfilter: add SOFAlizer audio filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago