summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showfreqs.c
Commit message (Collapse)AuthorAge
* lavfi: split frame_count between input and output.Nicolas George2016-11-13
| | | | | | | | | | | | AVFilterLink.frame_count is supposed to count the number of frames that were passed on the link, but with min_samples, that number is not always the same for the source and destination filters. With the addition of a FIFO on the link, the difference will become more significant. Split the variable in two: frame_count_in counts the number of frames that entered the link, frame_count_out counts the number of frames that were sent to the destination filter.
* avfilter/avf_showfreqs: make minimum amplitude for log scaler configurablePaul B Mahol2016-08-17
|
* avfilter/window_func: add cauchy, parzen and poisson window functionPaul B Mahol2016-08-16
|
* avfilter/window_func: add dolph windowPaul B Mahol2016-08-16
|
* avfilter/avf_showfreqs: assert that variables are initialized by switch()Michael Niedermayer2016-02-12
| | | | | | Silences: CID1351396 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avf_showfreqs: properly handle ptsPaul B Mahol2016-01-31
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showfreqs/showspectrum: rename skip_samples to hop_sizePaul B Mahol2016-01-18
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showfreqs: fix possible null pointer dereferencePaul B Mahol2016-01-08
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/window_func: add tukey window functionPaul B Mahol2016-01-05
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: move window function generation into separate filePaul B Mahol2015-12-28
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showfreqs: make it possible to split channelsPaul B Mahol2015-12-20
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showfreqs: avoid wasteful powGanesh Ajjanagadde2015-12-09
| | | | | | | pow is a ridiculous function for computing a simple Gaussian. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter,swresample,swscale: use fabs, fabsf instead of FFABSGanesh Ajjanagadde2015-10-22
| | | | | | | | | | | | | | | | | | | | | | | | It is well known that fabs and fabsf are at least as fast and sometimes faster than the FFABS macro, at least on the gcc+glibc combination. For instance, see the reference: http://patchwork.sourceware.org/patch/6735/. This was a patch to glibc in order to remove their usages of a macro. The reason essentially boils down to fabs using the __builtin_fabs of the compiler, while FFABS needs to infer to not use a branch and to simply change the sign bit. Usually the inference works, but sometimes it does not. This may be easily checked by looking at the asm. This also has the added benefit of reducing macro usage, which has problems with side-effects. Note that avcodec is not handled here, as it is huge and most things there are integer arithmetic anyway. Tested with FATE. Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/all: propagate errors of functions from avfilter/formatsGanesh Ajjanagadde2015-10-14
| | | | | | | | | | | | | | | | | | Many of the functions from avfilter/formats can return errors, usually AVERROR(ENOMEM). This propagates the return values. All of these were found by using av_warn_unused_result, demonstrating its utility. Tested with FATE. I am least sure of the changes to avfilter/filtergraph, since I don't know what/how reduce_format is intended to behave and how it should react to errors. Fixes: CID 1325680, 1325679, 1325678. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Previous version Reviewed-by: Nicolas George <george@nsup.org> Previous version Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* lavfi: remove FF_LINK_FLAG_REQUEST_LOOP.Nicolas George2015-09-20
| | | | It has no longer any effect.
* avfilter/avf_showfreqs: add lanczos and gauss windowing functionsPaul B Mahol2015-09-15
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showfreqs: Fix memleak of out frameMichael Niedermayer2015-09-05
| | | | | | Fixes CID1322344 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avf_showfreqs: Fix "may be used uninitialized in this function" warningMichael Niedermayer2015-09-05
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avf_showfreqs: Free finMichael Niedermayer2015-09-05
| | | | | | Fixes CID1322345 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avf_showfreqs: Use floating point division in WFUNC_BHANNMichael Niedermayer2015-09-03
| | | | | | | Fixes: CID1322365 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter: add showfreqs filterPaul B Mahol2015-08-19