Paul B Mahol
3e288dbf56
avfilter/avf_showspectrum: set hop_size for showspectrumpic
...
Fixes invalid spikes in video output.
2 years ago
Wang, Bin
459527108a
libavfilter/x86/vf_convolution: fix sobel swap issue on WIN64
...
Reviewed by: James Almer <jamrial@gmail.com>
Signed-off-by: Wang, Bin <bin.wang@intel.com>
2 years ago
Paul B Mahol
34eeb466fb
avfilter/af_surround: fix possible out of array access
2 years ago
Paul B Mahol
66afa361e8
avfilter/af_surround: refactor code
...
So support for new i/o layouts are more easily added.
2 years ago
Niklas Haas
46a4cc460e
avfilter/vf_libplacebo: fix normalize_sar calculation
...
This previous expression multiplied a constant (outlink->h) that was
guaranteed to be 0 at this point, thus making it always a no-op.
Fix the calculation, and also properly reset the SAR to 1:1 as is now
necessary (the failure to do so previously hid this bug's existence).
2 years ago
Niklas Haas
05d390890a
avfilter/vf_libplacebo: default to normalize_sar=0
...
As a result of a typo in the source code, this option was completely
non-functional. In order to fix it, without breaking the current default
behavior, explicitly change this default to 0.
This behavior is also consistent with how other scale filters behave by
default, so it's probably best to enshrine it anyways.
2 years ago
Paul B Mahol
3bcec58535
avfilter: fix av_tx_fn stride usage for complex inputs
2 years ago
Paul B Mahol
fced45fd95
avfilter/af_surround: improve LFE loudness
2 years ago
Paul B Mahol
52291d2ac8
avfilter/af_surround: implement smooth option/support
2 years ago
Paul B Mahol
3d33003d59
avfilter/af_surround: split factors calculations
...
From multiplication with magnitude.
2 years ago
Paul B Mahol
08b4c3d6d6
avfilter/af_surround: improve front center channel
...
Stops producing too loud output of front center channel in stereo upmix
by using average magnitude instead of square root of squared magnitudes.
2 years ago
Niklas Haas
12b4ab5d4d
avfilter/vf_libplacebo: fix output format selection
...
After commit c0b93, it's possible that `ff_vk_filter_config_input` never
gets called, leading to `s->vkctx.input_format` being left unset. This
broke the format auto-selection logic in `libplacebo_config_output`,
resulting in a default to yuv420p, instead of defaulting to the input
format as intended.
Fixes: c0b93c4f8b
2 years ago
Niklas Haas
d1b14b4f0b
avfilter/vf_libplacebo: suppress warning on older libplacebo
...
Move the declaration before the code.
2 years ago
Paul B Mahol
3e6816514c
avfilter/af_surround: fix regression with channel i/o gain
2 years ago
Paul B Mahol
193270ee87
avfilter/avf_showspectrum: fix stride and set scale
2 years ago
Paul B Mahol
00409d81d9
avfilter/af_surround: simplify some code more
2 years ago
Paul B Mahol
2e53376a9b
avfilter/af_surround: add more layouts for stereo upmix
2 years ago
Paul B Mahol
4f6c06e8ff
avfilter/af_firequalizer: switch to TX from lavu
2 years ago
Paul B Mahol
59b16355ec
avfilter/avf_showspatial: switch to lavu TX
...
Also try harder to make output constant frame rate.
2 years ago
Paul B Mahol
24cd4c9661
avfilter/af_loudnorm: simplify query_formats()
2 years ago
Paul B Mahol
07357e56a6
avfilter/avf_showspectrum: fix possible hang at EOF
...
May happen when using filter fps option.
2 years ago
Paul B Mahol
a640b2874a
avfilter/af_surround: allow non-power of 2 win_size
2 years ago
Paul B Mahol
404c2955b1
avfilter/af_surround: move upmix before irdft
2 years ago
Paul B Mahol
d770403cac
avfilter/af_surround: refactor some code
2 years ago
Paul B Mahol
752039a9eb
avfilter/af_surround: add support for commands
2 years ago
Paul B Mahol
64031c5e65
avfilter/af_surround: add focus option
...
And improve angle option handling.
2 years ago
Niklas Haas
c0b93c4f8b
avfilter/vf_libplacebo: support all supported pixfmts
...
This is done only to the inputs, not the outputs, because we always
output vulkan hwframes.
Doing so also requires keeping track of backing textures for non-hwdec
formats, but is otherwise a mostly straightforward change to the format
query function. Special care needs to be taken to avoid crashing on
older libplacebo due to AV_PIX_FMT_RGBF32LE et al.
2 years ago
Niklas Haas
be13812a23
avfilter/vf_libplacebo: init vulkan device in query_format
...
Instead of doing it ad-hoc in `filter_frame`. This is not a huge change
on its own, but paves the way for adding support for more formats in the
future, in particular formats other than AV_PIX_FMT_VULKAN.
2 years ago
Cosmin Stejerean
3b375a0c5c
lavfi/vf_dnn_processing.c: Fix missing AV_PIX_FMT_GRAY8
...
Has been removed by mistake in 2003e32f62
, readd it to the switch cases.
Signed-off-by: Thilo Borgmann <thilo.borgmann@mail.de>
2 years ago
Paul B Mahol
52f7adfbde
avfilter/af_surround: add forgotten null pointer check
2 years ago
Paul B Mahol
11d744343f
avfilter/af_surround: avoid using doubles
2 years ago
Paul B Mahol
9bbd3b3b17
avfilter/af_surround: check that upmix func ptr is valid
2 years ago
Paul B Mahol
e0fbf89939
avfilter/af_surround: speed up slice threading for stereo upmixing
...
And add stereo->octagonal/8.0 upmix.
2 years ago
bwang30
3ab11dc5bb
libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI
...
This commit enabled assembly code with intel AVX512 VNNI and added unit test for sobel filter
sobel_c: 4537
sobel_avx512icl 2136
Signed-off-by: bwang30 <bin.wang@intel.com>
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2 years ago
Andreas Rheinhardt
bfab87a61d
avfilter/vf_fftdnoiz: Check return value of av_tx_init()
...
Should fix Coverity issue #1500329 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
c787eab395
avfilter/af_afir: Check return value of av_tx_init()
...
Should fix Coverity issue #1516762 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
36d0550bc9
avfilter/vf_fftfilt: Check return value of av_tx_init()
...
Should fix Coverity issue #1516765 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
b6fcf3a617
avfilter/af_surround: Check return value of av_tx_init()
...
Should fix Coverity issue #1516766 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Paul B Mahol
8e96319674
avfilter/af_dynaudnorm: add curve option
2 years ago
Paul B Mahol
a0c7c9d636
avfilter/f_ebur128: add quiet framelog mode
2 years ago
Paul B Mahol
05721c5df8
avfilter/vf_thumbnail: add slice threading support
2 years ago
Andreas Rheinhardt
a7ccfdc0d7
avfilter/vf_hqdn3d: Fix left-shift of negative numbers
...
Affected filter-hqdn3d and filter-hqdn3d-sample FATE-tests.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
cf57147da1
avfilter/phase_template: Fix left-shift of negative numbers
...
Affected the filter-phase FATE-test.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Andreas Rheinhardt
e72e8ec515
avfilter/vf_qp: Don't store NAN in int
...
Affected the filter-pp2 FATE-test.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Paul B Mahol
10ddbaf514
avfilter/af_loudnorm: stop rewritting pts
2 years ago
Paul B Mahol
40d0cb93ab
avfilter/af_loudnorm: switch to activate
2 years ago
Rui Zhu
36572a0c1d
avfilter/af_loudnorm: fix incorrect gain when audio is shorter than 3s
...
The input data is multiplied by `s->offset` to get normalized output.
`s->target_tp` and `true_peak` is not in dB,
so `s->offset` should be calculated by division instead of subtraction.
Signed-off-by: Rui Zhu <real.zhurui@gmail.com>
2 years ago
Paul B Mahol
e17628b720
avfilter/af_speechnorm: change initial gain state
...
Stops doing unwanted fade-in at start.
2 years ago
Paul B Mahol
7f4c5f6525
avfilter/af_speechnorm: remove long search range for min gain
...
Effective only for linked channels processing.
2 years ago
Paul B Mahol
7027101904
avfilter/af_speechnorm: implement rms option
2 years ago