summaryrefslogtreecommitdiffstats
path: root/libavfilter/avf_showspectrum.c
Commit message (Collapse)AuthorAgeFilesLines
* avfilter/avf_showspectrum: improve pts handlingPaul B Mahol2016-02-121-3/+7
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showfreqs/showspectrum: rename skip_samples to hop_sizePaul B Mahol2016-01-181-5/+5
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: reduce number of operationsPaul B Mahol2016-01-121-6/+8
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add posibility to display phasePaul B Mahol2016-01-121-4/+52
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avf_showspectrum: Silence "deprecated pixel format" warningTimothy Gu2016-01-091-1/+1
|
* avfilter/avf_showspectrum: set color range to framePaul B Mahol2016-01-091-0/+1
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add cool color mapPaul B Mahol2016-01-081-5/+13
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add option to draw legendPaul B Mahol2016-01-081-74/+296
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/avf_showspectrum: replace pow(x, 0.25) by sqrt(sqrt(x))Ganesh Ajjanagadde2016-01-071-1/+1
| | | | | | | This is faster; precision assured as result is a float. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/window_func: add tukey window functionPaul B Mahol2016-01-051-0/+2
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: use av_clip/lrintfPaul B Mahol2016-01-051-3/+3
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add yet another color mapPaul B Mahol2016-01-051-1/+13
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add option to set gain for calculating color ↵Paul B Mahol2016-01-041-1/+5
| | | | | | | | intensity Inspired by Sonic Visualizer. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: finally fix log scalerPaul B Mahol2016-01-031-1/+1
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: switch to FFTPaul B Mahol2016-01-031-43/+47
| | | | | | Rationale: supports >16 bit audio, more than 96dB SNR. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add 4th and 5th root scalerPaul B Mahol2016-01-021-1/+11
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: make some helper functionsPaul B Mahol2016-01-021-51/+57
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: fix null pointer dereference if allocation failsPaul B Mahol2016-01-021-4/+8
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add fiery color mapPaul B Mahol2016-01-021-1/+13
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add showspectrumpic filterPaul B Mahol2016-01-021-45/+260
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: store win_size in private context and calculate ↵Paul B Mahol2016-01-021-22/+17
| | | | | | it only once Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add window overlap supportPaul B Mahol2015-12-311-9/+49
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add fire color mapPaul B Mahol2015-12-311-1/+12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add nebulae color mapPaul B Mahol2015-12-301-1/+12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add moreland color mapPaul B Mahol2015-12-301-4/+14
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add rainbow colormapPaul B Mahol2015-12-291-23/+37
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: properly calculate w factorPaul B Mahol2015-12-291-1/+7
| | | | | | It is used in calculating loudness of each frequency bin. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add horizontal orientation supportPaul B Mahol2015-12-291-41/+111
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: use FF_ARRAY_ELEMS()Paul B Mahol2015-12-281-1/+1
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: make colors for log scale more user friendlyPaul B Mahol2015-12-281-1/+1
| | | | | | | | | Previosly output was almost useless because background noise, due to windowing function picked and which is not actually present in audio, had too much brightness. Now output of sine wave matches more with SoX. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: use ff_generate_window_funcPaul B Mahol2015-12-281-26/+19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showspectrum: add rscroll sliding modePaul B Mahol2015-12-281-2/+12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/avf_showspectrum: replace rint by lrintGanesh Ajjanagadde2015-12-261-1/+1
| | | | | | avoids float to int cast. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/avf_showspectrum: use log10 instead of log()/...Ganesh Ajjanagadde2015-10-291-1/+1
| | | | | | | This is likely more precise and conveys the intent better. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/all: propagate errors of functions from avfilter/formatsGanesh Ajjanagadde2015-10-141-12/+9
| | | | | | | | | | | | | | | | | | 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/avf_showspectrum: reindent after last commit.Nicolas George2015-10-071-11/+10
|
* lavfi/avf_showspectrum: remove looping on request_frame().Nicolas George2015-10-071-6/+1
|
* avfilter/avf_showspectrum: use av_calloc()Paul B Mahol2015-08-061-9/+2
|
* avfilter/avf_showspectrum: reindentPaul B Mahol2015-08-041-136/+134
|
* avfilter/avf_showspectrum: Change enums to int, which are accessed via ↵Michael Niedermayer2015-03-021-4/+4
| | | | | | | | AVOption as int This fixes depending on implementation defined behavior Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avfilter/avf_showspectrum: fix colums typoMichael Niedermayer2014-08-201-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi/avf_showspectrum: check RDFT context init.Nicolas George2014-08-141-0/+5
| | | | Fix a segfault with large window size.
* lavfi/avf_showspectrum: add full frame sliding mode.Nicolas George2014-08-141-18/+32
|
* lavfi/avf_showspectrum: use automatic framing.Nicolas George2014-08-141-31/+17
| | | | | The framework can ensure that each input frame has exactly the correct number of samples, except the last one.
* lavfi/avf_showspectrum: do not push the frame at EOF.Nicolas George2014-08-141-2/+0
| | | | | | | | It is always identical to the last pushed frame. The samples in the last incomplete window were ignored, this is unchanged. Possible enhancement: pad the last incomplete window with silence.
* lavfi/avf_showspectrum: fix output pts computation.Nicolas George2014-08-141-1/+1
|
* lavfi/avf_showspectrum: set output frame rate.Nicolas George2014-08-141-0/+2
|
* avfilter/avf_showspectrum: fix macro ()Michael Niedermayer2014-06-211-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avfilter/showspectrum: use 0 dummies for range in const.Clément Bœsch2013-11-201-3/+3
| | | | This is consistent with other options.
* avfilter/showspectrum: reindent const options.Clément Bœsch2013-11-201-10/+10
|
OpenPOWER on IntegriCloud