mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-10 17:41:09 +02:00
lavfi: export ff_filter_set_ready() to the library.
This commit is contained in:
parent
4c24f3ac16
commit
918891e146
@ -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);
|
||||
}
|
||||
|
@ -27,6 +27,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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user