Go to the documentation of this file.
21 #include "config_components.h"
39 s->min_latency = INT64_MAX;
40 s->max_latency = INT64_MIN;
53 if (!
ctx->is_disabled &&
ctx->inputs[0]->src &&
54 ctx->inputs[0]->src->nb_inputs > 0) {
58 switch (prevlink->
type) {
94 if (
s->min_latency != INT64_MAX)
96 if (
s->max_latency != INT64_MIN)
100 #if CONFIG_LATENCY_FILTER
115 #endif // CONFIG_LATENCY_FILTER
117 #if CONFIG_ALATENCY_FILTER
130 #endif // CONFIG_ALATENCY_FILTER
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
The exact code depends on how similar the blocks are and how related they are to the and needs to apply these operations to the correct inlink or outlink if there are several Macros are available to factor that when no extra processing is inlink
This structure describes decoded (raw) audio or video data.
const char * name
Filter name.
A link between two filters.
#define FF_FILTER_FORWARD_STATUS_BACK(outlink, inlink)
Forward the status on an output link to an input link.
int ff_inlink_consume_frame(AVFilterLink *link, AVFrame **rframe)
Take a frame from the link's FIFO and update the link's stats.
enum AVMediaType type
filter media type
static av_cold void uninit(AVFilterContext *ctx)
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
#define FILTER_INPUTS(array)
const AVFilterPad ff_audio_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_AUDIO.
size_t ff_inlink_queued_frames(AVFilterLink *link)
Get the number of frames available on the link.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int activate(AVFilterContext *ctx)
int64_t sample_count_in
Number of past samples sent through the link.
FF_FILTER_FORWARD_WANTED(outlink, inlink)
#define AV_LOG_INFO
Standard information.
const AVFilter ff_vf_latency
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
int64_t frame_count_in
Number of past frames sent through the link.
FF_FILTER_FORWARD_STATUS(inlink, outlink)
#define FILTER_OUTPUTS(array)
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
#define flags(name, subs,...)
static av_cold int init(AVFilterContext *ctx)
const AVFilter ff_af_alatency