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 "filters.h"
#include "formats.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 query_formats (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *frame)
 

Variables

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

Macro Definition Documentation

◆ OFFSET

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

Definition at line 47 of file vf_setparams.c.

◆ FLAGS

Definition at line 48 of file vf_setparams.c.

Enumeration Type Documentation

◆ SetFieldMode

Enumerator
MODE_AUTO 
MODE_BFF 
MODE_TFF 
MODE_PROG 

Definition at line 30 of file vf_setparams.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( setparams  )

◆ query_formats()

static int query_formats ( const AVFilterContext ctx,
AVFilterFormatsConfig **  cfg_in,
AVFilterFormatsConfig **  cfg_out 
)
static

Definition at line 139 of file vf_setparams.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 163 of file vf_setparams.c.

Variable Documentation

◆ setparams_options

const AVOption setparams_options[]
static

Definition at line 50 of file vf_setparams.c.

◆ inputs

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

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

FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_setparams.c:163
ff_video_default_filterpad
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition: video.c:37
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
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:94
FILTER_QUERY_FUNC2
#define FILTER_QUERY_FUNC2(func)
Definition: filters.h:239
inputs
static const AVFilterPad inputs[]
Definition: vf_setparams.c:205
SetParamsContext
Definition: vf_setparams.c:37
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:168
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:482
query_formats
static int query_formats(const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
Definition: vf_setparams.c:139