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 avfilter_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}
}

Definition at line 46 of file vf_setfield.c.

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

Definition at line 70 of file vf_setfield.c.

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

Definition at line 80 of file vf_setfield.c.

AVFilter avfilter_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,
}

Definition at line 88 of file vf_setfield.c.