ffmpeg | branch: master | Nicolas George <geo...@nsup.org> | Tue Dec 20 15:57:19 2016 +0100| [918891e1468f34b9f52423e1779f909ddd9dc34d] | committer: Nicolas George
lavfi: export ff_filter_set_ready() to the library. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=918891e1468f34b9f52423e1779f909ddd9dc34d --- libavfilter/avfilter.c | 2 +- libavfilter/filters.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index f3dea6e..823e1ba 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -190,7 +190,7 @@ int avfilter_link_get_channels(AVFilterLink *link) return link->channels; } -static void ff_filter_set_ready(AVFilterContext *filter, unsigned priority) +void ff_filter_set_ready(AVFilterContext *filter, unsigned priority) { filter->ready = FFMAX(filter->ready, priority); } diff --git a/libavfilter/filters.h b/libavfilter/filters.h index d3c4c30..72e5676 100644 --- a/libavfilter/filters.h +++ b/libavfilter/filters.h @@ -28,6 +28,18 @@ #include "avfilter.h" /** + * Mark a filter ready and schedule it for activation. + * + * This is automatically done when something happens to the filter (queued + * frame, status change, request on output). + * Filters implementing the activate callback can call it directly to + * perform one more round of processing later. + * It is also useful for filters reacting to external or asynchronous + * events. + */ +void ff_filter_set_ready(AVFilterContext *filter, unsigned priority); + +/** * Test and acknowledge the change of status on the link. * * Status means EOF or an error condition; a change from the normal (0) _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog