Paul B Mahol
5b59c072f5
avfilter/af_biquads: fix regression with channels option processing
2022-03-15 16:07:57 +01:00
Paul B Mahol
9f81d12f87
avfilter/af_dynaudnorm: fix regression with channels option processing
2022-03-15 16:07:57 +01:00
Paul B Mahol
07c16cdd94
avfilter/af_speechnorm: fix regression in channels option processing
2022-03-15 16:07:57 +01:00
Paul B Mahol
bd5da8ad96
avfilter/af_afftdn: refactor noise sampling
2022-03-15 15:17:27 +01:00
Paul B Mahol
a2eb13c7e5
avfilter/af_afftdn: do not hardcode vector size
2022-03-15 15:17:27 +01:00
Paul B Mahol
26292d4b6b
avfilter/af_afftdn: use log10 instead to get noise levels
2022-03-15 15:17:27 +01:00
Paul B Mahol
4a96baa2c8
avfilter/af_afftdn: unbreak custom band noise option processing
2022-03-15 15:17:27 +01:00
Paul B Mahol
098528ec59
avfilter/af_afftdn: after sampling noise, set full parameters
2022-03-15 15:17:27 +01:00
James Almer
cdba98bb80
Bump minor versions after the channel layout changes
...
Forgotten in the respective commits adding new API.
Signed-off-by: James Almer <jamrial@gmail.com>
2022-03-15 11:12:21 -03:00
James Almer
55740299ef
avfilter/af_sofalizer: fix getting speaker position
...
Signed-off-by: James Almer <jamrial@gmail.com>
2022-03-15 11:09:31 -03:00
James Almer
1f96db959c
avfilter: convert to new channel layout API
...
Signed-off-by: James Almer <jamrial@gmail.com>
2022-03-15 09:42:46 -03:00
Paul B Mahol
2ba38beb79
avfilter/vf_epx: stop doing read overflow
2022-03-14 23:01:08 +01:00
Paul B Mahol
58f867ffef
avfilter/avf_abitscope: rename macro to less generic one
2022-03-14 18:27:42 +01:00
Yiyuan GUO
2201c91fbf
avfilter/vf_palettegen: add protection against potential divide by zero
...
In libavfilter/vf_palettegen.c, the function get_avg_color requires
that box->len greater than zero to avoid dividing by zero. However,
the call sequence filter_frame -> get_palette_frame -> get_avg_color
may not satisfy this precondition. Fixes #9222 .
Signed-off-by: Yiyuan GUO <yguoaz@gmail.com>
2022-03-14 17:55:00 +01:00
Paul B Mahol
1ab83dd369
avfilter/vf_fieldhint: add pattern mode of filtering
2022-03-14 17:43:12 +01:00
Paul B Mahol
c0f49378a9
avfilter/af_afftdn: allow user to control number of bands
2022-03-14 17:43:12 +01:00
Paul B Mahol
deffacb6b4
avfilter/af_afftdn: use correct variable in for loops
...
Tehnically changes nothing as they are same value currently.
2022-03-14 17:43:12 +01:00
Paul B Mahol
a71a3d1ed2
avfilter/af_afftdn: stop producing small impulsive noise at start of output
2022-03-14 10:08:33 +01:00
Paul B Mahol
19614921e9
avfilter/vf_decimate: also check for ready frames if not ppsrc is used
...
Fixes filtering when cascading multiple decimate filters.
2022-03-13 21:59:54 +01:00
Paul B Mahol
07b8d6a897
avfilter/avf_showspectrum: stop rewriting pts
...
Also fix dropping of first frame for fullframe sliding.
2022-03-13 18:02:24 +01:00
Paul B Mahol
61224c856c
avfilter/af_afftdn: add way to control noise floor link for >1 channels
2022-03-13 17:28:24 +01:00
Paul B Mahol
3cb5a5f64c
avfilter/af_afftdn: improve residual tracking
2022-03-13 17:28:24 +01:00
Paul B Mahol
9e279c8c2d
avfilter/af_afftdn: rename some variables to less cryptic name
2022-03-13 17:28:24 +01:00
Paul B Mahol
b578324b1d
avfilter/af_afftdn: reduce some pointless pointer indirections
2022-03-13 17:28:24 +01:00
Paul B Mahol
447ca90bcf
avfilter/af_afftdn: use define for sfm flags mask and size
...
Instead of hardcoding values.
2022-03-13 17:28:24 +01:00
Paul B Mahol
546afd0d49
avfilter/af_afftdn: allow user to change ratio factor
...
While here change default to lower value as previous
value were causing too much smearing on time axis of spectrogram.
2022-03-13 01:49:02 +01:00
Paul B Mahol
b2c6c7c4c5
avfilter/af_afftdn: stop sharing non-shareable parameters between channels
2022-03-13 01:49:02 +01:00
Paul B Mahol
df8163ae55
avfilter/af_afftdn: use RDFT instead
...
Makes spectral filtering less crude.
2022-03-12 18:58:24 +01:00
Paul B Mahol
b8af574477
avfilter/af_afftdn: reduce code duplication
2022-03-12 18:58:24 +01:00
Paul B Mahol
0bebff0c18
avfilter/af_afftdn: reduce scaling of input samples
...
It was multiplied too much.
2022-03-12 18:58:24 +01:00
Paul B Mahol
4a8b62c29a
avfilter/af_afftdn: fix small memory leak
2022-03-12 12:12:25 +01:00
Paul B Mahol
386e5e4cfc
avfilter/af_afftdn: change noise profile to floating point precision
2022-03-12 12:12:25 +01:00
Paul B Mahol
32e99157c2
avfilter/af_afftdn: generalize noise profile mean estimation
2022-03-12 12:12:25 +01:00
Paul B Mahol
983b15e5f4
avfilter/af_afftdn: use single define for number of bands in noise profile
2022-03-12 12:12:25 +01:00
Shubhanshu Saxena
d0a999a0ab
libavfilter: Remove DNNReturnType from DNN Module
...
This patch removes all occurences of DNNReturnType from the DNN module.
This commit replaces DNN_SUCCESS by 0 (essentially the same), so the
functions with DNNReturnType now return 0 in case of success, the negative
values otherwise.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2022-03-12 15:10:28 +08:00
Shubhanshu Saxena
1df77bab08
lavfi/dnn_backend_common: Return specific error codes
...
Switch to returning specific error codes or DNN_GENERIC_ERROR
when an error is encountered in the common DNN backend functions.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2022-03-12 15:10:28 +08:00
Shubhanshu Saxena
515ff6b4f8
lavfi/dnn_backend_native: Return Specific Error Codes
...
Switch to returning specific error codes or DNN_GENERIC_ERROR
when an error is encountered.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2022-03-12 15:10:28 +08:00
Shubhanshu Saxena
3fa89bd758
lavfi/dnn_backend_tf: Return Specific Error Codes
...
Switch to returning specific error codes or DNN_GENERIC_ERROR
when an error is encountered. For TensorFlow C API errors, currently
DNN_GENERIC_ERROR is returned.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2022-03-12 15:10:28 +08:00
Shubhanshu Saxena
91af38f2b3
lavfi/dnn_backend_openvino: Return Specific Error Codes
...
Switch to returning specific error codes or DNN_GENERIC_ERROR
when an error is encountered. For OpenVINO API errors, currently
DNN_GENERIC_ERROR is returned.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2022-03-12 15:10:28 +08:00
Shubhanshu Saxena
d0587daec2
lavfi/dnn_io_proc: Return Specific Error Codes
...
This commit returns specific error codes from the functions in the
dnn_io_proc instead of DNN_ERROR.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2022-03-12 15:10:28 +08:00
Shubhanshu Saxena
b602f11a06
lavfi/dnn: Error Specificity in Native Backend Layers
...
This commit returns specific error codes from the execution
functions in the Native Backend layers instead of DNN_ERROR.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2022-03-12 15:10:28 +08:00
Shubhanshu Saxena
e5ce6a6070
libavfilter: Prepare to handle specific error codes in DNN Filters
...
This commit prepares the filter side to handle specific error codes
from the DNN backends instead of current DNN_ERROR.
Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
2022-03-12 15:10:28 +08:00
Paul B Mahol
e7caa18b4a
avfilter/af_afftdn: remove special handling for first and last bin
2022-03-11 23:57:33 +01:00
Paul B Mahol
ea777333de
avfilter/af_afftdn: remove code that have marginal impact to denoising
2022-03-11 23:57:33 +01:00
Paul B Mahol
a0724328a8
avfilter/vf_zscale: do not attempt to continue filtering if there is no graph
2022-03-11 09:34:04 +01:00
Paul B Mahol
4ac85ae448
avfilter/vf_zscale: also check formats
2022-03-11 01:54:03 +01:00
Paul B Mahol
5cd8eb2aef
avfilter/af_lv2: add commands support
2022-03-10 12:08:47 +01:00
Paul B Mahol
34715fe4a2
avfilter/af_anlmdn: add support for using writable frames
2022-03-10 12:08:47 +01:00
Paul B Mahol
c71b76e141
avfilter/af_anlmdn: stop using fifo and rewriting pts
2022-03-09 22:08:36 +01:00
Paul B Mahol
41cae501b7
avfilter/af_anlmdn: fix possible array overflow and increase options limits
2022-03-09 22:08:36 +01:00