Paul B Mahol
46642ceeaf
avfilter/vf_thumbnail: optimize planar processing path
2022-12-05 21:07:11 +01:00
Paul B Mahol
6c814093d8
avfilter/vf_bm3d: switch to TX from lavu
2022-12-04 23:02:07 +01:00
Timo Rothenpieler
ee650398ec
avfilter/vf_libplacebo: ensure filter hwdevice is a vulkan one
...
Before this, the filter blindly casts to AVVulkanDeviceContext and
passes invalid values to libplacebo if it's not.
2022-12-04 15:22:13 +01:00
Paul B Mahol
fc016fd665
avfilter/vf_exposure: ensure that scale is always > 0
2022-12-04 13:22:36 +01:00
Paul B Mahol
ec32c62cad
avfilter/avf_showcwt: write also to alpha plane if available
2022-12-04 11:18:48 +01:00
Paul B Mahol
7bf74f909d
avfilter/af_afftdn: fix invalid duplicated use of sizeof()
2022-12-03 21:28:54 +01:00
Paul B Mahol
754fa305fa
avfilter/af_astats: accessing outlink in uninit is not valid
2022-12-03 17:32:07 +01:00
Paul B Mahol
e69909342e
avfilter/avf_showcwt: fix logic mistake
2022-12-03 12:47:02 +01:00
Paul B Mahol
6b368bcb85
avfilter/af_apsyclip: add copy_props() call
2022-12-01 19:50:54 +01:00
Paul B Mahol
4d38d4607c
avfilter/af_astats: print stats in case nb_samples is 0
...
Happens with special function only.
2022-12-01 19:21:11 +01:00
Marvin Scholz
fcbdd145cd
avfilter/f_metadata: use av_dict_iterate
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-12-01 11:21:14 +01:00
Marvin Scholz
492b45cb19
avfilter/vf_libvmaf: use av_dict_iterate
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-12-01 11:21:14 +01:00
Marvin Scholz
d5d6e5ccec
avfilter/vf_coreimage: use av_dict_iterate
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-12-01 11:21:14 +01:00
Marvin Scholz
1cf526c37a
avfilter/vf_scale: use av_dict_iterate
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-12-01 11:21:14 +01:00
Haihao Xiang
0ae459176b
lavfi/vf_vpp_qsv: scale_mode can be applied to color conversion
...
Reviewed-by: Soft Works <softworkz@hotmail.com >
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com >
2022-12-01 09:40:40 +08:00
Haihao Xiang
7a856588dc
lavfi/qsvvpp: provide a default framerate if needed
...
VPP in the SDK requires the frame rate to be set to a valid value,
otherwise init will fail, so always set a default framerate when the
input link doesn't have a valid framerate.
Reviewed-by: Soft Works <softworkz@hotmail.com >
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com >
2022-12-01 09:40:31 +08:00
Haihao Xiang
51bad2e6a7
lavfi/qsvvpp: avoid overriding the returned value
...
It means more than one output is ready when
MFXVideoVPP_RunFrameVPPAsync() returns MFX_ERR_MORE_SURFACE [1].
Currently the returned value from MFXVideoVPP_RunFrameVPPAsync() might
be overridden, so the check of 'ret == MFX_ERR_MORE_SURFACE' is always
false when MFX_ERR_MORE_SURFACE is returned from
MFXVideoVPP_RunFrameVPPAsync()
[1] https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdk-man.md#video-processing-procedures
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com >
2022-12-01 09:39:32 +08:00
Chen,Wenbin
50575e24be
lavfi/qsvvpp: change the output frame's width and height
...
Make sure the size of the output frame always matches the agreed upon
image size.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
2022-12-01 09:39:32 +08:00
Paul B Mahol
14e6ca17e1
avfilter/af_astats: do not give output for 0 samples
2022-11-30 21:19:49 +01:00
Paul B Mahol
569b1a24cd
avfilter/avf_showcwt: add yet another mode variant
2022-11-30 20:08:18 +01:00
Paul B Mahol
7d20635aeb
avfilter/avf_showcwt: add frame slide mode
2022-11-30 18:06:42 +01:00
Paul B Mahol
bcb5ef667d
avfilter/avf_showcwt: add some small optimizations
2022-11-30 18:06:42 +01:00
Paul B Mahol
d7a5f068c2
avfilter/avf_showcwt: add thread jobs for forward fft per channel
2022-11-29 22:26:56 +01:00
Paul B Mahol
9d717cb846
avfilter/avf_showcwt: flush frames at EOF
2022-11-29 22:26:55 +01:00
Paul B Mahol
a08a508105
avfilter/avf_showcwt: refactor code into function
2022-11-29 22:26:55 +01:00
Paul B Mahol
634e29f3c0
avfilter/avf_showcwt: always consume some available samples
...
Stop waiting for big cache of samples.
2022-11-29 22:26:55 +01:00
Paul B Mahol
d34c1b389e
avfilter: add showcwt multimedia filter
2022-11-28 23:18:03 +01:00
Niklas Haas
48c385fb4c
avfilter/vf_libplacebo: support more output formats
...
Rather than hard-coding AV_PIX_FMT_VULKAN, expand this to the full list
of formats supported by <libplacebo/utils/libav.h>. We re-use the
existing `format` option to allow selecting specific software formats in
addition to specific vulkan hwframe formats.
Some minor changes are necessary to account for the fact that
`ff_vk_filter_config_output` is now only called optionally, the fact
that the output format must now be parsed before `query_format` gets
called, and the fact that we need to call a different function to
retrieve data from the `pl_frame` in the non-hwaccel case.
Signed-off-by: Niklas Haas <git@haasn.dev >
2022-11-28 16:05:36 +01:00
Paul B Mahol
2324b917fc
avfilter/avf_avectorscope: simplify code a little
2022-11-27 19:53:16 +01:00
Paul B Mahol
e0bc798ce5
avfilter/f_ebur128: fix crash when using vflip filter
2022-11-25 19:50:17 +01:00
Paul B Mahol
4c1a79eb80
avfilter/avf_showcqt: fix crash when using vflip filter
2022-11-25 19:40:11 +01:00
Paul B Mahol
9d2b5762d3
avfilter/avf_a3dscope: fix crash when using vflip filter
2022-11-25 19:40:11 +01:00
Paul B Mahol
9c8b977c1e
avfilter/avf_avectorscope: fix crash when using vflip filter
2022-11-25 19:40:11 +01:00
Paul B Mahol
f2ea508e16
avfilter/avf_showcqt: remove invalid line
2022-11-25 19:40:11 +01:00
Paul B Mahol
3e288dbf56
avfilter/avf_showspectrum: set hop_size for showspectrumpic
...
Fixes invalid spikes in video output.
2022-11-21 15:47:02 +01:00
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 >
2022-11-21 12:28:25 +08:00
Paul B Mahol
34eeb466fb
avfilter/af_surround: fix possible out of array access
2022-11-19 19:35:23 +01:00
Paul B Mahol
66afa361e8
avfilter/af_surround: refactor code
...
So support for new i/o layouts are more easily added.
2022-11-19 15:20:23 +01:00
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).
2022-11-19 14:15:47 +01:00
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.
2022-11-19 14:15:19 +01:00
Paul B Mahol
3bcec58535
avfilter: fix av_tx_fn stride usage for complex inputs
2022-11-19 00:25:47 +01:00
Paul B Mahol
fced45fd95
avfilter/af_surround: improve LFE loudness
2022-11-18 21:51:10 +01:00
Paul B Mahol
52291d2ac8
avfilter/af_surround: implement smooth option/support
2022-11-18 21:51:10 +01:00
Paul B Mahol
3d33003d59
avfilter/af_surround: split factors calculations
...
From multiplication with magnitude.
2022-11-18 21:51:10 +01:00
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.
2022-11-18 21:51:10 +01:00
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
2022-11-18 16:14:23 +01:00
Niklas Haas
d1b14b4f0b
avfilter/vf_libplacebo: suppress warning on older libplacebo
...
Move the declaration before the code.
2022-11-18 16:11:01 +01:00
Paul B Mahol
3e6816514c
avfilter/af_surround: fix regression with channel i/o gain
2022-11-18 12:58:09 +01:00
Paul B Mahol
193270ee87
avfilter/avf_showspectrum: fix stride and set scale
2022-11-18 12:58:09 +01:00
Paul B Mahol
00409d81d9
avfilter/af_surround: simplify some code more
2022-11-18 00:53:51 +01:00