21#include "config_components.h"
38 s->min_latency = INT64_MAX;
39 s->max_latency = INT64_MIN;
53 if (!
ctx->is_disabled &&
ctx->inputs[0]->src &&
54 ctx->inputs[0]->src->nb_inputs > 0) {
59 switch (prevlink->
type) {
95 if (
s->min_latency != INT64_MAX)
97 if (
s->max_latency != INT64_MIN)
101#if CONFIG_LATENCY_FILTER
118#if CONFIG_ALATENCY_FILTER
121 .p.name =
"alatency",
const FFFilter ff_af_alatency
const FFFilter ff_vf_latency
const AVFilterPad ff_audio_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_AUDIO.
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
size_t ff_inlink_queued_frames(AVFilterLink *link)
Get the number of frames available on the link.
int ff_inlink_consume_frame(AVFilterLink *link, AVFrame **rframe)
Take a frame from the link's FIFO and update the link's stats.
Main libavfilter public API header.
int(* init)(AVBSFContext *ctx)
static int activate(AVFilterContext *ctx)
static av_cold void uninit(AVFilterContext *ctx)
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
#define AV_LOG_INFO
Standard information.
static av_cold void uninit(AVBitStreamFilterContext *ctx)
static int activate(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
#define FF_FILTER_FORWARD_WANTED(outlink, inlink)
Forward the frame_wanted_out flag from an output link to an input link.
#define FF_FILTER_FORWARD_STATUS(inlink, outlink)
Acknowledge the status on an input link and forward it to an output link.
#define FFERROR_NOT_READY
Filters implementation helper functions and internal structures.
#define FF_FILTER_FORWARD_STATUS_BACK(outlink, inlink)
Forward the status on an output link to an input link.
static FilterLink * ff_filter_link(AVFilterLink *link)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
A link between two filters.
enum AVMediaType type
filter media type
This structure describes decoded (raw) audio or video data.
Link properties exposed to filter code, but not external callers.
int64_t sample_count_in
Number of past samples sent through the link.
int64_t frame_count_in
Number of past frames sent through the link.
static AVFormatContext * ctx
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.