Paul B Mahol
89c9c42c5b
avfilter/af_astats: clip input value to prevent overflow
4 years ago
Paul B Mahol
24db9372eb
avfilter/af_astats: add noise floor count stat
5 years ago
Paul B Mahol
715da29501
avfilter/af_astats: add slice threading support
5 years ago
Paul B Mahol
87b4fb65a8
avfilter/af_astats: measure noise floor
5 years ago
Paul B Mahol
bd6942b4c0
avfilter/af_astats: fix calculations involving last sample
6 years ago
Paul B Mahol
2a4a364f6a
avfilter/af_astats: fix initial values of variables
6 years ago
Matthias Troffaes
90b21ae5b5
avfilter/af_astats: fix msvc compile error
MSVC requires an explicit cast from void * to void when applying the
ternary conditional operator to switch between methods that return
void.
6 years ago
Paul B Mahol
1e01f66822
avfilter/af_astats: count number of NaNs/Infs/denormals for floating-point audio too
6 years ago
Marton Balint
6af67dcc35
avfilter/af_astats: add support for optimized min/max/peak calculation
Signed-off-by: Marton Balint <cus@passwd.hu>
6 years ago
Marton Balint
5cc4b79b29
avfilter/af_astats: rework sample loops
The channel loop is now the outer loop for both planar and interleaved. This is
needed by the next patch, and the speed difference is negligable if any.
Signed-off-by: Marton Balint <cus@passwd.hu>
6 years ago
Marton Balint
235228ea50
avfilter/af_astats: factorize sample loops
Signed-off-by: Marton Balint <cus@passwd.hu>
6 years ago
Marton Balint
233fdd84c2
avfilter/af_astats: fix identation
Signed-off-by: Marton Balint <cus@passwd.hu>
6 years ago
Marton Balint
e85f37d51e
avfilter/af_astats: add support for selecting measured statistics
set_metadata with many entries is not very efficient, and with small audio
frames the performance loss is noticable. Also with this very simple
calculations (like peak) can be even further optimized.
Unfoturnately there are some small differences in metadata and av_log info
output, so factorizing calculations and output might not worth the hassle.
Signed-off-by: Marton Balint <cus@passwd.hu>
6 years ago
Paul B Mahol
c4774c5474
avfilter/af_astats: count zero crossings
6 years ago
Paul B Mahol
12791ec5b0
avfilter/af_astats: measure dynamic range
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
a17fcd8e04
avfilter/af_astats: do not overwrite already set values when doing reset
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
ed93ed5ee3
avfilter: don't anonymously typedef structs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
e312ed0504
avfilter/af_astats: add RMS difference too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Muhammad Faiz
6af050d7d0
avfilter: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years ago
Paul B Mahol
703ae350c2
avfilter/af_astats: fix flt(p) support
8 years ago
Paul B Mahol
81f7d07608
avfilter/af_astats: add support for s64(p) sample format
8 years ago
Paul B Mahol
4f226714f5
avfilter/af_astats: add support for other sample formats
8 years ago
Paul B Mahol
4be8ab70a6
avfilter/af_astats: extend bitdepth calculation
8 years ago
Paul B Mahol
2a7f056d88
avfilter/af_astats: do not clear previous sample value
Should help when using reset=1 and metadata=1
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
0d65a7d033
avfilter/af_astats: clear all stats
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
c09248aecd
avfilter/af_astats: reset stats prior not after filtering
This way stats printed at uninit are also useful.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Ganesh Ajjanagadde
ac6b7c47cc
avfilter/af_astats: replace FFABS with fabs
9 years ago
Paul B Mahol
494b792441
avfilter: use ff_all_channel_counts() instead of ff_all_channel_layouts()
Fixes playback of some files with ffplay.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Clément Bœsch
816cfd00cb
avfilter/astats: use AV_OPT_TYPE_BOOL for metadata option
9 years ago
James Almer
6de5b6cd86
avfilter/af_astats: use UINT64_C instead of the LLU suffix
Should fix compilation with vs2012
Signed-off-by: James Almer <jamrial@gmail.com>
10 years ago
Paul B Mahol
3b365dda5c
avfilter/af_astats: measure minimal and mean difference between two consecutive samples
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
51925daafd
avfilter/af_astats: make sure p->last is actually always set when measuring max difference
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
59a9998908
avfilter/af_astats: also measure maximal difference between two consecutive samples
While here also mention bit depth in documentation.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
61641627b8
avfilter/af_astats: calculate audio bit-depth
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
c0d676f977
avfilter/af_astats: implement recalculation of stats after each X frames
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
d3836b603e
avfilter/af_astats: export metadata
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
a0854c084e
avfilter: handle error in query_formats() in bunch of filters
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
0c49cff117
avfilter/af_astats: redo zero channel handling
Suggested-by: Nicolas George
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Martin Vignali
65ba90eac6
avfilter/af_astats: Avoid Zero division in print part.
10 years ago
Paul B Mahol
b211607b5c
avfilter: various cosmetics
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Michael Niedermayer
7e7d090907
avfilter/af_astats: rename stat()
See CID1026741
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
44f69c0df8
avfilter/af_astats: fix 64bit printf type
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
f4341c64be
avfilter: add av_cold to uninit()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
cc5c155959
astats filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago