Commit 918891e1 authored by Nicolas George's avatar Nicolas George

lavfi: export ff_filter_set_ready() to the library.

parent 4c24f3ac
...@@ -190,7 +190,7 @@ int avfilter_link_get_channels(AVFilterLink *link) ...@@ -190,7 +190,7 @@ int avfilter_link_get_channels(AVFilterLink *link)
return link->channels; 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); filter->ready = FFMAX(filter->ready, priority);
} }
......
...@@ -27,6 +27,18 @@ ...@@ -27,6 +27,18 @@
#include "avfilter.h" #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. * Test and acknowledge the change of status on the link.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment