summaryrefslogtreecommitdiff
path: root/libavfilter
Commit message (Collapse)AuthorAge
* zscale: Factor out graph buildingVittorio Giovara2017-07-21
|
* zscale: Factor out format initializationVittorio Giovara2017-07-21
|
* avfilter/af_astats: measure dynamic rangePaul B Mahol2017-07-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_astats: do not overwrite already set values when doing resetPaul B Mahol2017-07-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: Add blue and violet noise generation filtersGeorge Boyle2017-07-19
| | | | | | | | | For the blue and violet noise, I took the pink and brown noise respectively and subtracted the offsets instead of adding them. When I eyeball the frequency spectrum of the resulting outputs it looks correct to me, i.e. the blue graph appears to be a mirror image of the pink, and the same can be said of the violet and the brown. I did not do anything else to confirm the correctness.
* avfilter/pthread: use slice threading from avutilMuhammad Faiz2017-07-19
| | | | | | | | | | | | | | | | | Benchmark (with 2 cpus): ./ffmpeg -f rawvideo -s 1280x720 -t 1000 -i /dev/zero \ -filter_threads $threads -vf transpose=clock -f null null threads=2: old: 31.129s 31.446s 31.574s new: 29.602s 29.636s 29.656s threads=3 (nb_threads = nb_cpus + 1 is bad choice at this situation): old: 40.132s 40.279s 40.279s new: 39.308s 39.570s 39.693s threads=4: old: 31.306s 31.366s 31.654s new: 30.231s 30.360s 30.451s Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* avfilter: add LIBVMAF filterAshish Singh2017-07-16
| | | | | | | | This one changes the previous vmaf patch to libvmaf to keep it separate from the native implementation of vmaf inside ffmpeg later. Signed-off-by: Ashish Singh <ashk43712@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* x86/vf_limiter: make limiter functions work on x86_32James Almer2017-07-13
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter: add limiter filterPaul B Mahol2017-07-08
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* af_amix: Add missing error checkDerek Buitenhuis2017-07-07
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* af_tempo: Add missing error checkDerek Buitenhuis2017-07-07
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* libavfilter/scale2ref: Maintain main input's DARKevin Mark2017-07-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The scale2ref filter will now maintain the DAR of the main input and not the DAR of the reference input. This previous behavior was deemed counterintuitive for most (all?) use-cases. Before: scale2ref=iw/4:ow/mdar in w:320 h:240 fmt:rgb24 sar:1/1 ref w:640 h:360 fmt:rgb24 sar:1/1 out w:160 h:120 fmt:rgb24 sar:4/3 flags:0x2 SAR: ((120 * 640) / (160 * 360)) * (1 / 1) = 4 / 3 DAR: (160 / 120) * (4 / 3) = 16 / 9 (main out now same DAR as ref) Now: scale2ref=iw/4:ow/mdar in w:320 h:240 fmt:rgb24 sar:1/1 ref w:640 h:360 fmt:rgb24 sar:1/1 out w:160 h:120 fmt:rgb24 sar:1/1 flags:0x2 SAR: ((120 * 320) / (160 * 240)) * (1 / 1) = 1 / 1 DAR: (160 / 120) * (1 / 1) = 4 / 3 (main out same DAR as main in) The scale2ref FATE test has also been updated. Signed-off-by: Kevin Mark <kmark937@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_ssim: use unsigned so result can be properly storedPaul B Mahol2017-07-04
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_geq: >8 bps supportMichael Niedermayer2017-06-30
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* x86/vf_blend: use ABS2 macroJames Almer2017-06-27
|
* x86/vf_blend: optimize difference and negation functionsJames Almer2017-06-27
| | | | | | | Process more pixels per loop. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* x86/vf_blend: add sse and ssse3 extremity functionsJames Almer2017-06-27
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter: remove usage of empty headerPaul B Mahol2017-06-26
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_blend: add extremity blend modePaul B Mahol2017-06-25
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_waveform: allow alpha output for >8 depth planar rgb inputsPaul B Mahol2017-06-25
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_overlay: separate functions with main alphaPaul B Mahol2017-06-25
| | | | | | ~5-15% faster overall with main input without alpha. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_lut2: add support for gray10 and gray12 pixel formatsPaul B Mahol2017-06-24
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_overlay: remove rgb optionPaul B Mahol2017-06-24
| | | | | | Its been deprecated for over 3 years. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_headphone: do not free frame that's gonna be reused laterPaul B Mahol2017-06-24
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: do not leak AVFrame on failed buffer allocationPaul B Mahol2017-06-24
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* vf_spp: only assign function pointers if permutation matches expectations.Ronald S. Bultje2017-06-24
|
* avfilter/vf_overlay: add auto format modePaul B Mahol2017-06-24
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* Revert "lavfi/buffersrc: push the frame deeper if requested."Paul B Mahol2017-06-23
| | | | | | Fixes framesync filters with shortest option enabled. This reverts commit 0ff5567a30be6d7c804e95997ae282d6bacd76c3.
* build: Generalize yasm/nasm-related variable namesDiego Biurrun2017-06-21
| | | | | | | | None of them are specific to the YASM assembler. (Cherry-picked from libav commit 39e208f4d4756367c7cd2d581847e0c1b8a429c1) Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/af_stereotools: add forgotten breakPaul B Mahol2017-06-21
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* libavfilter/scale: Populate ow/oh when using 0 as w/hKevin Mark2017-06-19
| | | | | | | | | | | | | | | | | | | | | | The input width and height is known at parse time so there's no reason ow/oh should not be usable when using 0 as the width or height expression. Previously in "scale=0:ow" ow would be set to "0" which works, conveniently, as "scale=0:0" is perfectly valid input but this breaks down when you do something like "scale=0:ow/4" which one could reasonably expect to work as well, but does not as ow is 0 not the real value. This change handles the 0 case for w/h immediately so the ow/oh variables work as expected. Consequently, the rest of the code does not need to handle 0 input. w/h will always be > 0 or < 0. The second explicit (int) cast ensures that ow/oh appear as integers as a user might expect when dealing with pixel dimensions. Signed-off-by: Kevin Mark <kmark937@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avfilter/af_stereotools: add 2 more modesPaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_superequalizer: stop leaking s->out framePaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_superequalizer: improve descriptionPaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_superequalizer: fix out of array accessPaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add roberts cross operatorPaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add superequalizer filterPaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi: print the error message when threading init fails.Nicolas George2017-06-19
|
* avfilter/af_amix: fix possible hangPaul B Mahol2017-06-18
| | | | | | Fixes #6424. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* vf_hwmap: Properly free a locally derived deviceMark Thompson2017-06-18
| | | | | | Fixes CID 1412853. (cherry picked from commit a670eea56087d0ecd4fbeccf3a9beb9110b7031f)
* vf_hwmap: Add missing error codeMark Thompson2017-06-18
| | | | | | Fixes CID 1412854. (cherry picked from commit 5635c80bf59d90e63ede473e2c014647850a8446)
* libavfilter/af_biquads: add shorter option for width_typePaul B Mahol2017-06-18
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_headphone: fix possible memory leaks on failurePaul B Mahol2017-06-15
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* vf_hwmap: Add reverse mapping for hardware framesMark Thompson2017-06-14
| | | | | | | | | | | This is something of a hack. It allocates a new hwframe context for the target format, then maps it back to the source link and overwrites the input link hw_frames_ctx so that the previous filter will receive the frames we want from ff_get_video_buffer(). It may fail if the previous filter imposes any additional constraints on the frames it wants to use as output. (cherry picked from commit 81a4cb8e58636d4efd200c2b4fec786a7e948d8b)
* vf_hwmap: Add device derivationMark Thompson2017-06-14
| | | | | | | Also refactor a little and improve error messages to make failure cases easier to understand. (cherry picked from commit 38cb05f1c89cae1862b360d4e7e3f0cd2b5bbb67)
* vf_deinterlace_vaapi: Add support for field rate outputMark Thompson2017-06-14
| | | | | | | | | In order to work correctly with the i965 driver, this also fixes the direction of forward/backward references - forward references are intended to be those from the past to the current frame, not from the current frame to the future. (cherry picked from commit 9aa251c98ce60e5ee83156e5292547a7671ced3a)
* avfilter/vf_signature: fix memory leaks in error casesTimo Rothenpieler2017-06-13
| | | | Fixes CIDs 1403234 and 1403235
* avfilter/vf_scale_npp: fix out-of-bounds readsTimo Rothenpieler2017-06-13
| | | | Fixes CIDs 1396414 and 1396415
* avfilter/unsharp: fix uninitialized pointer readTimo Rothenpieler2017-06-13
| | | | Fixes CID 1396855
* avfilter: properly set SAR for A->V filtersPaul B Mahol2017-06-13
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>