FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
vf_setfield.c File Reference

set field order More...

#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  SetFieldContext
 

Macros

#define OFFSET(x)   offsetof(SetFieldContext, 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 (setfield)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *picref)
 

Variables

static const AVOption setfield_options []
 
static const AVFilterPad setfield_inputs []
 
static const AVFilterPad setfield_outputs []
 
AVFilter ff_vf_setfield
 

Detailed Description

set field order

Definition in file vf_setfield.c.

Macro Definition Documentation

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

Definition at line 43 of file vf_setfield.c.

Definition at line 44 of file vf_setfield.c.

Enumeration Type Documentation

Enumerator
MODE_AUTO 
MODE_BFF 
MODE_TFF 
MODE_PROG 

Definition at line 31 of file vf_setfield.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( setfield  )
static int filter_frame ( AVFilterLink inlink,
AVFrame picref 
)
static

Definition at line 57 of file vf_setfield.c.

Variable Documentation

const AVOption setfield_options[]
static
Initial value:
= {
{"mode", "select interlace mode", OFFSET(mode), AV_OPT_TYPE_INT, {.i64=MODE_AUTO}, -1, MODE_PROG, FLAGS, "mode"},
{"auto", "keep the same input field", 0, AV_OPT_TYPE_CONST, {.i64=MODE_AUTO}, INT_MIN, INT_MAX, FLAGS, "mode"},
{"bff", "mark as bottom-field-first", 0, AV_OPT_TYPE_CONST, {.i64=MODE_BFF}, INT_MIN, INT_MAX, FLAGS, "mode"},
{"tff", "mark as top-field-first", 0, AV_OPT_TYPE_CONST, {.i64=MODE_TFF}, INT_MIN, INT_MAX, FLAGS, "mode"},
{"prog", "mark as progressive", 0, AV_OPT_TYPE_CONST, {.i64=MODE_PROG}, INT_MIN, INT_MAX, FLAGS, "mode"},
{NULL}
}
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_setfield.c:44
#define OFFSET(x)
Definition: vf_setfield.c:43
mode
Use these values in ebur128_init (or'ed).
Definition: ebur128.h:83

Definition at line 46 of file vf_setfield.c.

const AVFilterPad setfield_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *picref)
Definition: vf_setfield.c:57

Definition at line 70 of file vf_setfield.c.

const AVFilterPad setfield_outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}
#define NULL
Definition: coverity.c:32

Definition at line 79 of file vf_setfield.c.

AVFilter ff_vf_setfield
Initial value:
= {
.name = "setfield",
.description = NULL_IF_CONFIG_SMALL("Force field for the output video frame."),
.priv_size = sizeof(SetFieldContext),
.priv_class = &setfield_class,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static const AVFilterPad setfield_outputs[]
Definition: vf_setfield.c:79
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
static const AVFilterPad setfield_inputs[]
Definition: vf_setfield.c:70

Definition at line 87 of file vf_setfield.c.