summaryrefslogtreecommitdiff
path: root/libavfilter
Commit message (Collapse)AuthorAge
* avfilter: use AV_OPT_TYPE_BOOL in a bunch of placesClément Bœsch2015-12-04
|
* avfilter/af_agate: change default for detection to rmsPaul B Mahol2015-12-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_sidechaincompress: kill init functionPaul B Mahol2015-12-03
| | | | | | Should make addition of process_command easier. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_agate: compile agate only when requested.Paul B Mahol2015-12-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_agate: add level_sc option for sidechaingate filterPaul B Mahol2015-12-03
| | | | | | Also correct usage of input gain for both filters. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add sidechaingate filterPaul B Mahol2015-12-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_agate: prepare for adding sidechain versionPaul B Mahol2015-12-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_flanger: use rint instead of floor hackGanesh Ajjanagadde2015-12-02
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/vf_perspective: use lrint instead of floor hackGanesh Ajjanagadde2015-12-02
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/vsrc_mptestsrc: use lrint instead of floor hackGanesh Ajjanagadde2015-12-02
| | | | | | | lrint is faster, and is more consistent across the codebase. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/af_compand: do not clip; allow >0dB curve pointsPaul B Mahol2015-12-02
| | | | | | | Do not clip output samples, so that clipping can be handled by other filters. Alow setting curve points above 0dB. This is useful when operating with floats. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_stereotools: remove floor usagePaul B Mahol2015-12-02
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add audio pulsator filterPaul B Mahol2015-12-02
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_volumedetect: use log10 instead of hardcoded constantGanesh Ajjanagadde2015-12-01
| | | | | | | This is likely more precise and conveys the intent better. Reviewed-by: Mark Harris <mark.hsj@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/vf_shuffleframes: Assert that the case of an uninitialized ret does ↵Michael Niedermayer2015-12-01
| | | | | | | | | not occur Fixes CID1258479 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_histogram: remove deprecated stuffPaul B Mahol2015-12-01
| | | | | | | | Remove all modes except levels mode. Users should already switch to other filters with extended funcionality: vectorscope and waveform. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_compand: use hypot()Ganesh Ajjanagadde2015-11-30
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/af_sidechaincompress: do not require writable input frames for ↵Paul B Mahol2015-11-30
| | | | | | acompressor filter Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_sidechaincompress: add level_in and level_sc optionsPaul B Mahol2015-11-30
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_sidechaincompress: fix output gain for rms(default) detectionPaul B Mahol2015-11-29
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_showvolume: Fix "warning: comparison of unsigned expression < 0 ↵Michael Niedermayer2015-11-29
| | | | | | is always false" Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avf_showvolume: fix several issuesPaul B Mahol2015-11-29
| | | | | | | | | Fix color fading: previously color could fade to red when volume level for red color was actually never reached. Display volume value on right side. Use red color only if clipping is needed. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add audio compressor filterPaul B Mahol2015-11-28
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add compensation delay line filterPaul B Mahol2015-11-28
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vsrc_mptestsrc: use hypot()Ganesh Ajjanagadde2015-11-26
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/af_dynaudnorm: remove wasteful powGanesh Ajjanagadde2015-11-26
| | | | | | | | This removes wasteful pow(x, 2.0) that although not terribly important for speed, is still useless. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/af_afade: improve accuracy and speed of gain computationGanesh Ajjanagadde2015-11-26
| | | | | | | | | | | | | | | | | | | Gain computation for various curves was being done in a needlessly inaccurate fashion. Of course these are all subjective curves, but when a curve is advertised to the user, it should be matched as closely as possible within the limitations of libm. In particular, the constants kept here were pretty inaccurate for double precision. Speed improvements are mainly due to the avoidance of pow, the most notorious of the libm functions in terms of performance. To be fair, it is the GNU libm that is among the worst, but it is not really GNU libm's fault since others simply yield a higher error as measured in ULP. "Magic" constants are also accordingly documented, since they take at least a minute of thought for a casual reader. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/vf_stack: make it possible to stop with shortest streamPaul B Mahol2015-11-26
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add '.' at and of long filter description where it is missingPaul B Mahol2015-11-25
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: do not leak frame if ff_get_audio_buffer() failsPaul B Mahol2015-11-25
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_alimiter: make description a bit longerPaul B Mahol2015-11-25
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_sidechaincompress: add forgotten optionPaul B Mahol2015-11-25
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vsrc_mandelbrot: change sin to sinf for color computationGanesh Ajjanagadde2015-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | lrintf is anyway used, suggesting we only care up to floating precision. Rurthermore, there is a compat hack in avutil/libm for this function, and it is used in avcodec/aacps_tablegen.h. This yields a non-negligible speedup. Sample benchmark: x86-64, Haswell, GNU/Linux: old (draw_mandelbrot): 274635709 decicycles in draw_mandelbrot, 256 runs, 0 skips 300287046 decicycles in draw_mandelbrot, 512 runs, 0 skips 371819935 decicycles in draw_mandelbrot, 1024 runs, 0 skips 336663765 decicycles in draw_mandelbrot, 2048 runs, 0 skips 581851016 decicycles in draw_mandelbrot, 4096 runs, 0 skips new (draw_mandelbrot): 269882717 decicycles in draw_mandelbrot, 256 runs, 0 skips 296359285 decicycles in draw_mandelbrot, 512 runs, 0 skips 370076599 decicycles in draw_mandelbrot, 1024 runs, 0 skips 331478354 decicycles in draw_mandelbrot, 2048 runs, 0 skips 571904318 decicycles in draw_mandelbrot, 4096 runs, 0 skips Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/vsrc_mandelbrot: avoid sqrt for epsilon calculationGanesh Ajjanagadde2015-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | This rewrites into a similar expression avoiding sqrt. Similarity is assured since sqrt(x^2 + y^2)/(x+y) lies in [1/sqrt(2), 1] for x, y > 0. Tested on x86-64, Haswell, GNU/Linux. Command: ffmpeg -f lavfi -i mandelbrot -f null - old (draw_mandelbrot): 277625266 decicycles in draw_mandelbrot, 256 runs, 0 skips 304527322 decicycles in draw_mandelbrot, 512 runs, 0 skips 377593582 decicycles in draw_mandelbrot, 1024 runs, 0 skips 338539499 decicycles in draw_mandelbrot, 2048 runs, 0 skips 583630357 decicycles in draw_mandelbrot, 4096 runs, 0 skips new (draw_mandelbrot): 274635709 decicycles in draw_mandelbrot, 256 runs, 0 skips 300287046 decicycles in draw_mandelbrot, 512 runs, 0 skips 371819935 decicycles in draw_mandelbrot, 1024 runs, 0 skips 336663765 decicycles in draw_mandelbrot, 2048 runs, 0 skips 581851016 decicycles in draw_mandelbrot, 4096 runs, 0 skips Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* vsrc_mandelbrot: Don't use German in commentsTimothy Gu2015-11-24
|
* lavfi/select: add support for concatdec_select optionMarton Balint2015-11-25
| | | | | | | | | This option can be used to select useful frames from an ffconcat file which is using inpoints and outpoints but where the source files are not intra frame only. Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/vsrc_mandelbrot: Fix speed regressionMichael Niedermayer2015-11-24
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/af_afade: add missing fifo write for second streamPaul B Mahol2015-11-23
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_fspp: use M_SQRT1_2, M_SQRT2Ganesh Ajjanagadde2015-11-22
| | | | | | | | This uses M_SQRT1_2, M_SQRT2 instead of the actual literals. Fixed point values remain unchanged. Patch tested with FATE on x86. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/af_dynaudnorm: use M_PIGanesh Ajjanagadde2015-11-20
| | | | | | | | | | The ad-hoc pi constant has a ludicrous number of digits that offer no value whatsoever. M_PI is more consistent and readable across the codebase. Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* Merge commit '1339009c4924a20e872aa62897097bf5d071157c'Hendrik Leppkes2015-11-11
|\ | | | | | | | | | | | | * commit '1339009c4924a20e872aa62897097bf5d071157c': vf_showinfo: show timebase & framerate too Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * vf_showinfo: show timebase & framerate tooMichael Niedermayer2015-11-09
| | | | | | | | | | (cherry picked from ffmpeg commit fdb93996811bacfa7b82995cdc0f93c46f3dc6cc) Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * vf_frei0r: also set AVFilterLink.frame_rateMichael Niedermayer2015-11-09
| | | | | | | | | | (cherry picked from ffmpeg commit 353cf95f948ef7c6139c8ead79e9eeb9eb8d2e6e) Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit '7d12cba95ca15198a930c05458dc414ac00c578b'Hendrik Leppkes2015-11-11
|\| | | | | | | | | | | | | * commit '7d12cba95ca15198a930c05458dc414ac00c578b': vf_framepack: Check and update frame_rate Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * vf_framepack: Check and update frame_rateMichael Niedermayer2015-11-09
| | | | | | | | | | (cherry picked from ffmpeg commit a46a23d30fea9c8a5570e07ec4d9c9b4eaa6eb4f) Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * vf_interlace: implement frame rateMichael Niedermayer2015-11-09
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from ffmpeg commit 227b4458fb434875b127a0c2306fa3b899a770bf) Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit '018bdaed37d2f1735dbecfc58309a1a164abadd5'Hendrik Leppkes2015-11-11
|\| | | | | | | | | | | | | * commit '018bdaed37d2f1735dbecfc58309a1a164abadd5': setpts: add FRAME_RATE constant Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * setpts: add FRAME_RATE constantStefano Sabatini2015-11-09
| | | | | | | | | | | | | | | | Useful for dealing with constant frame-rate video. (cherry picked from ffmpeg commit 722762f7e1212b4d02142778fabfdd73375722e0) Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * testsrc: set output framerateStefano Sabatini2015-11-09
| | | | | | | | | | | | (cherry picked from ffmpeg commit 7cd5fa35fecc2717223459d04822faed6bbd40fa) Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit '9df477e03ef74068f3de130adc4dd34349a16ef2'Hendrik Leppkes2015-11-11
|\| | | | | | | | | | | | | * commit '9df477e03ef74068f3de130adc4dd34349a16ef2': yadif: update frame rate Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>