FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
vf_setparams.c File Reference
#include "libavutil/pixfmt.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  SetParamsContext
 

Macros

#define OFFSET(x)   offsetof(SetParamsContext, x)
 
#define FLAGS   AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 

Enumerations

enum  SetFieldMode { MODE_AUTO = -1, MODE_BFF, MODE_TFF, MODE_PROG }
 

Functions

 AVFILTER_DEFINE_CLASS (setparams)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *frame)
 

Variables

static const AVOption setparams_options []
 
static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 
AVFilter ff_vf_setparams
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(SetParamsContext, x)

Definition at line 43 of file vf_setparams.c.

◆ FLAGS

Definition at line 44 of file vf_setparams.c.

Enumeration Type Documentation

◆ SetFieldMode

Enumerator
MODE_AUTO 
MODE_BFF 
MODE_TFF 
MODE_PROG 

Definition at line 27 of file vf_setparams.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( setparams  )

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 121 of file vf_setparams.c.

Variable Documentation

◆ setparams_options

const AVOption setparams_options[]
static

Definition at line 46 of file vf_setparams.c.

◆ inputs

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

Definition at line 148 of file vf_setparams.c.

◆ outputs

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

Definition at line 157 of file vf_setparams.c.

◆ ff_vf_setparams

AVFilter ff_vf_setparams
Initial value:
= {
.name = "setparams",
.description = NULL_IF_CONFIG_SMALL("Force field, or color property for the output video frame."),
.priv_size = sizeof(SetParamsContext),
.priv_class = &setparams_class,
}

Definition at line 165 of file vf_setparams.c.

filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_setparams.c:121
NULL
#define NULL
Definition: coverity.c:32
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
inputs
static const AVFilterPad inputs[]
Definition: vf_setparams.c:148
outputs
static const AVFilterPad outputs[]
Definition: vf_setparams.c:157
SetParamsContext
Definition: vf_setparams.c:34
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201