FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
vf_setparams.c File Reference
#include "config_components.h"
#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 []
 
const AVFilter ff_vf_setparams
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 45 of file vf_setparams.c.

◆ FLAGS

Definition at line 46 of file vf_setparams.c.

Enumeration Type Documentation

◆ SetFieldMode

Enumerator
MODE_AUTO 
MODE_BFF 
MODE_TFF 
MODE_PROG 

Definition at line 29 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 123 of file vf_setparams.c.

Variable Documentation

◆ setparams_options

const AVOption setparams_options[]
static

Definition at line 48 of file vf_setparams.c.

◆ inputs

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

Definition at line 150 of file vf_setparams.c.

◆ outputs

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

Definition at line 158 of file vf_setparams.c.

◆ ff_vf_setparams

const 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:123
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:190
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:115
inputs
static const AVFilterPad inputs[]
Definition: vf_setparams.c:150
outputs
static const AVFilterPad outputs[]
Definition: vf_setparams.c:158
SetParamsContext
Definition: vf_setparams.c:36
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:143
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:191
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561