summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showfreqs.c
Commit message (Collapse)AuthorAge
* avfilter: Constify all AVFiltersAndreas Rheinhardt2021-04-27
| | | | | | | This is possible now that the next-API is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/avf_showfreqs: add group delay data modePaul B Mahol2020-11-28
|
* avfilter/avf_showfreqs: implement phase displayPaul B Mahol2020-11-27
|
* lavfi: regroup formats lists in a single structure.Nicolas George2020-09-08
| | | | | | | | | | | | | | | It will allow to refernce it as a whole without clunky macros. Most of the changes have been automatically made with sed: sed -i ' s/-> *in_formats/->incfg.formats/g; s/-> *out_formats/->outcfg.formats/g; s/-> *in_channel_layouts/->incfg.channel_layouts/g; s/-> *out_channel_layouts/->outcfg.channel_layouts/g; s/-> *in_samplerates/->incfg.samplerates/g; s/-> *out_samplerates/->outcfg.samplerates/g; ' src/libavfilter/*(.)
* avfilter/avf_showfreqs: free input frame after using itJames Almer2019-10-26
| | | | | | | Fixes ticket #8336. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/avf_showfreqs: fix check for failed allocationPaul B Mahol2019-09-21
|
* avfilter/avf_showfreqs: make selecting window size simplerPaul B Mahol2019-07-10
| | | | The previous solution was very bad.
* avfilter/avf_showfreqs: switch to activatePaul B Mahol2019-05-26
|
* avfilter/window_func: add bohman windowPaul B Mahol2018-10-27
|
* lavfi: make window_func an inline functionRostislav Pehlivanov2017-09-23
| | | | | | | Eliminate lavc->lavfi dependency. The function isn't big and doesn't deserve its own file. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avfilter: properly set SAR for A->V filtersPaul B Mahol2017-06-13
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* 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