FFmpeg
Data Structures | Functions | Variables
vf_repeatfields.c File Reference
#include "libavutil/imgutils.h"
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  RepeatFieldsContext
 

Functions

static av_cold void uninit (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_input (AVFilterLink *inlink)
 
static void update_pts (AVFilterLink *link, AVFrame *f, int64_t pts, int fields)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 

Variables

static const AVFilterPad repeatfields_inputs []
 
static const AVFilterPad repeatfields_outputs []
 
AVFilter ff_vf_repeatfields
 

Function Documentation

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 34 of file vf_repeatfields.c.

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 41 of file vf_repeatfields.c.

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 59 of file vf_repeatfields.c.

◆ update_pts()

static void update_pts ( AVFilterLink link,
AVFrame f,
int64_t  pts,
int  fields 
)
static

Definition at line 76 of file vf_repeatfields.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 86 of file vf_repeatfields.c.

Variable Documentation

◆ repeatfields_inputs

const AVFilterPad repeatfields_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_input,
},
{ NULL }
}

Definition at line 166 of file vf_repeatfields.c.

◆ repeatfields_outputs

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

Definition at line 176 of file vf_repeatfields.c.

◆ ff_vf_repeatfields

AVFilter ff_vf_repeatfields
Initial value:
= {
.name = "repeatfields",
.description = NULL_IF_CONFIG_SMALL("Hard repeat fields based on MPEG repeat field flag."),
.priv_size = sizeof(RepeatFieldsContext),
}

Definition at line 184 of file vf_repeatfields.c.

uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_repeatfields.c:34
RepeatFieldsContext
Definition: vf_repeatfields.c:25
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
NULL
#define NULL
Definition: coverity.c:32
inputs
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Definition: filter_design.txt:243
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:188
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: vf_repeatfields.c:41
config_input
static int config_input(AVFilterLink *inlink)
Definition: vf_repeatfields.c:59
repeatfields_outputs
static const AVFilterPad repeatfields_outputs[]
Definition: vf_repeatfields.c:176
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_repeatfields.c:86
repeatfields_inputs
static const AVFilterPad repeatfields_inputs[]
Definition: vf_repeatfields.c:166