FFmpeg
Data Structures | Functions | Variables
fifo.c File Reference
#include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  Buf
 
struct  FifoContext
 

Functions

static av_cold int init (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static int add_to_queue (AVFilterLink *inlink, AVFrame *frame)
 
static void queue_pop (FifoContext *s)
 
static int request_frame (AVFilterLink *outlink)
 

Variables

static const AVFilterPad avfilter_vf_fifo_inputs []
 
static const AVFilterPad avfilter_vf_fifo_outputs []
 
const AVFilter ff_vf_fifo
 
static const AVFilterPad avfilter_af_afifo_inputs []
 
static const AVFilterPad avfilter_af_afifo_outputs []
 
const AVFilter ff_af_afifo
 

Detailed Description

FIFO buffering filter

Definition in file fifo.c.

Function Documentation

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 50 of file fifo.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 58 of file fifo.c.

◆ add_to_queue()

static int add_to_queue ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 72 of file fifo.c.

◆ queue_pop()

static void queue_pop ( FifoContext s)
static

Definition at line 88 of file fifo.c.

Referenced by request_frame().

◆ request_frame()

static int request_frame ( AVFilterLink outlink)
static

Definition at line 97 of file fifo.c.

Variable Documentation

◆ avfilter_vf_fifo_inputs

const AVFilterPad avfilter_vf_fifo_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = add_to_queue,
},
}

Definition at line 113 of file fifo.c.

◆ avfilter_vf_fifo_outputs

const AVFilterPad avfilter_vf_fifo_outputs[]
static
Initial value:
= {
{
.name = "default",
.request_frame = request_frame,
},
}

Definition at line 121 of file fifo.c.

◆ ff_vf_fifo

const AVFilter ff_vf_fifo
Initial value:
= {
.name = "fifo",
.description = NULL_IF_CONFIG_SMALL("Buffer input images and send them when they are requested."),
.init = init,
.uninit = uninit,
.priv_size = sizeof(FifoContext),
}

Definition at line 129 of file fifo.c.

◆ avfilter_af_afifo_inputs

const AVFilterPad avfilter_af_afifo_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = add_to_queue,
},
}

Definition at line 140 of file fifo.c.

◆ avfilter_af_afifo_outputs

const AVFilterPad avfilter_af_afifo_outputs[]
static
Initial value:
= {
{
.name = "default",
.request_frame = request_frame,
},
}

Definition at line 148 of file fifo.c.

◆ ff_af_afifo

const AVFilter ff_af_afifo
Initial value:
= {
.name = "afifo",
.description = NULL_IF_CONFIG_SMALL("Buffer input frames and send them when they are requested."),
.init = init,
.uninit = uninit,
.priv_size = sizeof(FifoContext),
}

Definition at line 156 of file fifo.c.

avfilter_af_afifo_outputs
static const AVFilterPad avfilter_af_afifo_outputs[]
Definition: fifo.c:148
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: fifo.c:58
FifoContext
Definition: fifo.c:38
avfilter_vf_fifo_inputs
static const AVFilterPad avfilter_vf_fifo_inputs[]
Definition: fifo.c:113
avfilter_vf_fifo_outputs
static const AVFilterPad avfilter_vf_fifo_outputs[]
Definition: fifo.c:121
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:191
avfilter_af_afifo_inputs
static const AVFilterPad avfilter_af_afifo_inputs[]
Definition: fifo.c:140
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
request_frame
static int request_frame(AVFilterLink *outlink)
Definition: fifo.c:97
add_to_queue
static int add_to_queue(AVFilterLink *inlink, AVFrame *frame)
Definition: fifo.c:72
AVFILTER_FLAG_METADATA_ONLY
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
Definition: avfilter.h:137
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:192
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
init
static av_cold int init(AVFilterContext *ctx)
Definition: fifo.c:50