vf_setfield.c File Reference

set field order More...

#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"
Include dependency graph for vf_setfield.c:

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

Definition at line 44 of file vf_setfield.c.

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

Definition at line 43 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

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,
}
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:117
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVFilterPad setfield_outputs[]
Definition: vf_setfield.c:80
static const AVFilterPad setfield_inputs[]
Definition: vf_setfield.c:70
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs

Definition at line 88 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 }
}
static int filter_frame(AVFilterLink *inlink, AVFrame *picref)
Definition: vf_setfield.c:57
AVFrame * ff_null_get_video_buffer(AVFilterLink *link, int w, int h)
Definition: video.c:35
NULL
Definition: eval.c:55

Definition at line 70 of file vf_setfield.c.

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 FLAGS
Definition: vf_setfield.c:44
#define OFFSET(x)
Definition: vf_setfield.c:43
mode
Definition: f_perms.c:27
NULL
Definition: eval.c:55

Definition at line 46 of file vf_setfield.c.

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

Definition at line 80 of file vf_setfield.c.