summaryrefslogtreecommitdiffstats
path: root/libavfilter/buffersrc.c
Commit message (Collapse)AuthorAgeFilesLines
...
* lavfi/buffersrc: remove fifo.Nicolas George2019-12-231-34/+11
| | | | The frame is immediately pushed, the fifo has never more than one.
* avfilter/buffersrc: remove write-only variableZhao Zhili2019-12-021-3/+0
|
* avfilter/buffersrc: print relevant info when skipping filter reinitGyan Doshi2019-01-271-6/+12
| | | | | | The timestamp of the changed input frame as well as its relevant properties can be examined by the user. Only applicable when reinit_filter is disabled on the input stream.
* lavfi/buffersrc: Indent the code.Jun Zhao2018-11-271-15/+15
| | | | | | commit b0012de420f missed reindent. Signed-off-by: Jun Zhao <[email protected]>
* Merge commit '88fd836a015a5f3380df74592e440e7d1e5b8000'James Almer2017-10-211-8/+0
|\ | | | | | | | | | | | | * commit '88fd836a015a5f3380df74592e440e7d1e5b8000': lavfi: Drop deprecated way of passing options for a few filters Merged-by: James Almer <[email protected]>
| * lavfi: Drop deprecated way of passing options for a few filtersVittorio Giovara2017-03-231-8/+0
| | | | | | | | Deprecated in 02/2013.
* | lavfi/buffersrc: add av_buffersrc_close().Nicolas George2017-09-081-10/+12
| |
* | Revert "Revert "lavfi/buffersrc: push the frame deeper if requested.""Nicolas George2017-07-301-0/+25
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 04aa09c4bcf2d5a634a35da3a3ae3fc1abe30ef8 and reintroduces 0ff5567a30be6d7c804e95997ae282d6bacd76c3 that was temporarily reverted due to minor regressions. It also reverts e5bce8b4ce7b1f3a83998febdfa86a3771df96ce that fixed FATE refs. The fate-ffm change is caused by field_order now being set on the output format because the first frame arrives earlier. The fate-mxf change is assumed to be the same.
* | Revert "lavfi/buffersrc: push the frame deeper if requested."Paul B Mahol2017-06-231-25/+0
| | | | | | | | | | | | Fixes framesync filters with shortest option enabled. This reverts commit 0ff5567a30be6d7c804e95997ae282d6bacd76c3.
* | avfilter: do not use AVFrame accessorMuhammad Faiz2017-04-231-2/+2
| | | | | | | | | | Reviewed-by: wm4 <[email protected]> Signed-off-by: Muhammad Faiz <[email protected]>
* | lavfi/buffersrc: fix directly setting channel layoutRostislav Pehlivanov2017-02-211-5/+7
| | | | | | | | | | | | | | | | | | When setting the channel layout directly using AVBufferSrcParameters the channel layout was correctly set however the init function still expected the old string format to set the number of channels (when it hadn't already been specified). Signed-off-by: Rostislav Pehlivanov <[email protected]>
* | lavfi/buffersrc: push the frame deeper if requested.Nicolas George2016-12-241-0/+25
| | | | | | | | Reduce peak memory consumption with ffmpeg in certain cases.
* | lavfi: make filter_frame non-recursive.Nicolas George2016-12-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A lot of changes happen at the same time: - Add a framequeue fifo to AVFilterLink. - split AVFilterLink.status into status_in and status_out: requires changes to the few filters and programs that use it directly (f_interleave, split, filtfmts). - Add a field ready to AVFilterContext, marking when the filter is ready and its activation priority. - Add flags to mark blocked links. - Change ff_filter_frame() to enqueue the frame. - Change all filtering functions to update the ready field and the blocked flags. - Update ff_filter_graph_run_once() to use the ready field. - buffersrc: always push the frame immediately.
* | Merge commit 'b3dd30db0b2d857147fc0e1461a00bd6172a26a3'Derek Buitenhuis2016-02-241-2/+69
|\| | | | | | | | | | | | | * commit 'b3dd30db0b2d857147fc0e1461a00bd6172a26a3': lavfi: pass the hw frames context through the filter chain Merged-by: Derek Buitenhuis <[email protected]>
| * lavfi: pass the hw frames context through the filter chainAnton Khirnov2016-02-141-9/+86
| |
* | Merge commit 'c084d6d2cfb570b10d8784eb20cc696dfb7c5605'Derek Buitenhuis2016-02-171-2/+2
|\| | | | | | | | | | | | | * commit 'c084d6d2cfb570b10d8784eb20cc696dfb7c5605': buffersrc: default SAR to 0 (unknown) rather than 1 Merged-by: Derek Buitenhuis <[email protected]>
| * buffersrc: default SAR to 0 (unknown) rather than 1Anton Khirnov2016-02-141-1/+1
| | | | | | | | | | | | It makes more sense to not claim anything about the SAR if we don't know anything. No changes in the FATE tests, since this is what avconv ends up doing anyway.
* | Merge commit 'fb25d99b0a5e21fb8cc184c7a9d3736387778266'Derek Buitenhuis2016-02-161-1/+4
|\| | | | | | | | | | | | | | | | | This commit is a no-op. * commit 'fb25d99b0a5e21fb8cc184c7a9d3736387778266': buffersrc: do not discard the error from ff_filter_frame() Merged-by: Derek Buitenhuis <[email protected]>
| * buffersrc: do not discard the error from ff_filter_frame()Anton Khirnov2016-02-121-1/+1
| |
| * buffersrc: accept the frame rate as argument.Nicolas George2015-11-091-0/+3
| | | | | | | | | | | | (cherry picked from ffmpeg commit 9ca440679dc535b31edd569393d8d3dda59db90e) Signed-off-by: Anton Khirnov <[email protected]>
| * buffersrc: Improve initialization log messageVittorio Giovara2015-09-131-1/+4
| | | | | | | | Add timebase and aspect ratio information.
* | avfilter/all: propagate errors of functions from avfilter/formatsGanesh Ajjanagadde2015-10-141-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 <[email protected]> Previous version Reviewed-by: Nicolas George <[email protected]> Previous version Reviewed-by: Clément Bœsch <[email protected]> Signed-off-by: Ganesh Ajjanagadde <[email protected]>
* | Remove left-over FF_API_AVFILTERBUFFER cruftHendrik Leppkes2015-09-051-1/+0
| |
* | Merge commit 'f6974fe651d29ef6eb68d66d73f7b6c011062aa0'Hendrik Leppkes2015-09-051-121/+0
|\| | | | | | | | | | | | | * commit 'f6974fe651d29ef6eb68d66d73f7b6c011062aa0': lavfi: Drop deprecated AVFilterBuffer* code Merged-by: Hendrik Leppkes <[email protected]>
| * lavfi: Drop deprecated AVFilterBuffer* codeVittorio Giovara2015-08-281-108/+0
| | | | | | | | Deprecated in 11/2012.
| * buffersrc: Use the correct deallocation functionFederico Tomassetti2015-04-221-1/+1
| | | | | | | | | | | | This correction was suggested to me by Michael Niedermayer Signed-off-by: Luca Barbato <[email protected]>
* | avfilter/buffersrc: Use correct, matching deallocation functionMichael Niedermayer2015-04-201-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge commit '617814b4a717b38add5ccb8dd200dbb655f98f09'Michael Niedermayer2015-04-201-0/+1
|\| | | | | | | | | | | | | * commit '617814b4a717b38add5ccb8dd200dbb655f98f09': buffersrc: Fix resource leak on error Merged-by: Michael Niedermayer <[email protected]>
| * buffersrc: Fix resource leak on errorFederico Tomassetti2015-04-191-0/+1
| | | | | | | | | | | | Bug-Id: CID 1267902 CC: [email protected] Signed-off-by: Vittorio Giovara <[email protected]>
| * buffersrc: avoid using AV_PIX_FMT_NBAnton Khirnov2014-05-261-1/+1
| | | | | | | | | | That hardcodes the number of pixel formats into lavfi and will break when a shared lavu is updated, adding new pixel formats.
* | avfilter/buffersrc: add context to av_log() callMichael Niedermayer2014-12-061-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | avfilter/buffersrc: reindentClément Bœsch2014-06-291-7/+7
| |
* | avcodec/buffersrc: use av_mallocz_array()Michael Niedermayer2014-05-121-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | lavfi: use av_fifo_freepLukasz Marek2014-05-071-2/+1
| | | | | | | | Signed-off-by: Lukasz Marek <[email protected]>
* | Merge commit '58400ac133bcfb6bf8196b4e5208bc178307739b'Michael Niedermayer2014-04-191-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '58400ac133bcfb6bf8196b4e5208bc178307739b': lavfi: name anonymous structs Conflicts: libavfilter/buffersink.c libavfilter/f_select.c libavfilter/src_movie.c libavfilter/vf_drawbox.c libavfilter/vf_drawtext.c libavfilter/vf_overlay.c libavfilter/vf_showinfo.c libavfilter/vf_unsharp.c Merged-by: Michael Niedermayer <[email protected]>
| * lavfi: name anonymous structsVittorio Giovara2014-04-191-1/+1
| |
* | Merge commit '104a97beaffa6348e6fd2c2d07d67c1402322bb3'Michael Niedermayer2014-01-171-3/+15
|\| | | | | | | | | | | | | | | | | | | * commit '104a97beaffa6348e6fd2c2d07d67c1402322bb3': buffersrc: handle non-refcounted frames in av_buffersrc_add_frame() correctly Conflicts: libavfilter/buffersrc.c Merged-by: Michael Niedermayer <[email protected]>
| * buffersrc: handle non-refcounted frames in av_buffersrc_add_frame() correctlyAnton Khirnov2014-01-171-3/+15
| |
* | lavfi/abuffersrc: use AV_OPT_TYPE_SAMPLE_FMT for sample_fmt optionStefano Sabatini2013-12-261-6/+3
| | | | | | | | Simplify/extend syntax.
* | lavfi/buffersrc: set min and max values for pix_fmt optionStefano Sabatini2013-12-161-1/+1
| | | | | | | | | | Currently the min and max values are not honored, but this will change in a following patch.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-10-291-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: lavfi: do not export the filters from shared objects Conflicts: libavfilter/af_amix.c libavfilter/af_anull.c libavfilter/asrc_anullsrc.c libavfilter/f_select.c libavfilter/f_settb.c libavfilter/split.c libavfilter/src_movie.c libavfilter/vf_aspect.c libavfilter/vf_blackframe.c libavfilter/vf_colorbalance.c libavfilter/vf_copy.c libavfilter/vf_crop.c libavfilter/vf_cropdetect.c libavfilter/vf_drawbox.c libavfilter/vf_format.c libavfilter/vf_framestep.c libavfilter/vf_frei0r.c libavfilter/vf_hflip.c libavfilter/vf_libopencv.c libavfilter/vf_lut.c libavfilter/vf_null.c libavfilter/vf_overlay.c libavfilter/vf_scale.c libavfilter/vf_transpose.c libavfilter/vf_unsharp.c libavfilter/vf_vflip.c Merged-by: Michael Niedermayer <[email protected]>
| * lavfi: do not export the filters from shared objectsAnton Khirnov2013-10-281-2/+2
| |
* | Merge commit '7950e519bb094897f957b9a9531cc60ba46cbc91'Michael Niedermayer2013-08-031-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7950e519bb094897f957b9a9531cc60ba46cbc91': Disable deprecation warnings for cases where a replacement is available Conflicts: libavcodec/avpacket.c libavcodec/pthread.c libavcodec/utils.c libavdevice/v4l2.c libavfilter/avfiltergraph.c libavfilter/buffersrc.c Merged-by: Michael Niedermayer <[email protected]>
| * Disable deprecation warnings for cases where a replacement is availableDiego Biurrun2013-08-021-0/+3
| |
| * lavfi: add attribute_align_arg to all public entry pointsHendrik Leppkes2013-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | Previously it was partly only added to central functions called internally, however if GCC would inline these into the public fuction, the alignment attribute would not take effect. Instead, add it to all public entry points to avoid these problems. Signed-off-by: Martin Storsjö <[email protected]>
| * lavfi: let gcc realign the stack on public graph driving functionsHendrik Leppkes2013-05-041-1/+2
| | | | | | | | | | | | | | | | | | | | The functions which actually drive the filter graph by pushing frames through it need to ensure an aligned stack for SIMD functions. This fixes a crash in YADIF filter when using a mingw build in a MSVC application. Signed-off-by: Martin Storsjö <[email protected]>
| * lavfi: remove now unused args parameter from AVFilter.initAnton Khirnov2013-04-091-2/+2
| |
| * buffersrc: switch to an AVOptions-based system.Anton Khirnov2013-04-091-29/+42
| |
* | lavfi: add attribute_align_arg to all public entry pointsHendrik Leppkes2013-07-261-5/+5
| | | | | | | | | | | | | | | | | | | | Previously it was partly only added to central functions called internally, however if GCC would inline these into the public fuction, the alignment attribute would not take effect. Instead, add it to all public entry points to avoid these problems. Signed-off-by: Michael Niedermayer <[email protected]>
* | lavfi/buffersrc: remove unused item from BufferSourceContextPaul B Mahol2013-07-261-1/+0
| | | | | | | | Signed-off-by: Paul B Mahol <[email protected]>