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

field filter, based on libmpcodecs/vf_field.c by Rich Felker More...

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

Go to the source code of this file.

Data Structures

struct  FieldContext
 

Macros

#define OFFSET(x)   offsetof(FieldContext, x)
 
#define FLAGS   AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 

Enumerations

enum  FieldType { FIELD_UPPER = 0, FIELD_LOWER = 1, FIELD_TYPE_TOP = 0, FIELD_TYPE_BOTTOM }
 

Functions

 AVFILTER_DEFINE_CLASS (field)
 
static int config_props_output (AVFilterLink *outlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *inpicref)
 

Variables

static const AVOption field_options []
 
static const AVFilterPad field_inputs []
 
static const AVFilterPad field_outputs []
 
AVFilter ff_vf_field
 

Detailed Description

field filter, based on libmpcodecs/vf_field.c by Rich Felker

Definition in file vf_field.c.

Macro Definition Documentation

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

Definition at line 40 of file vf_field.c.

Definition at line 41 of file vf_field.c.

Enumeration Type Documentation

enum FieldType
Enumerator
FIELD_UPPER 
FIELD_LOWER 
FIELD_TYPE_TOP 
FIELD_TYPE_BOTTOM 

Definition at line 32 of file vf_field.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( field  )
static int config_props_output ( AVFilterLink outlink)
static

Definition at line 52 of file vf_field.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame inpicref 
)
static

Definition at line 69 of file vf_field.c.

Variable Documentation

const AVOption field_options[]
static
Initial value:
= {
{"type", "set field type (top or bottom)", OFFSET(type), AV_OPT_TYPE_INT, {.i64=FIELD_TYPE_TOP}, 0, 1, FLAGS, "field_type" },
{"top", "select top field", 0, AV_OPT_TYPE_CONST, {.i64=FIELD_TYPE_TOP}, INT_MIN, INT_MAX, FLAGS, "field_type"},
{"bottom", "select bottom field", 0, AV_OPT_TYPE_CONST, {.i64=FIELD_TYPE_BOTTOM}, INT_MIN, INT_MAX, FLAGS, "field_type"},
{NULL}
}
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_field.c:41
#define OFFSET(x)
Definition: vf_field.c:40
GLint GLenum type
Definition: opengl_enc.c:105

Definition at line 43 of file vf_field.c.

const AVFilterPad field_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
Definition: vf_field.c:69

Definition at line 86 of file vf_field.c.

const AVFilterPad field_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_props_output,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_props_output(AVFilterLink *outlink)
Definition: vf_field.c:52

Definition at line 95 of file vf_field.c.

AVFilter ff_vf_field
Initial value:
= {
.name = "field",
.description = NULL_IF_CONFIG_SMALL("Extract a field from the input video."),
.priv_size = sizeof(FieldContext),
.priv_class = &field_class,
}
static const AVFilterPad field_inputs[]
Definition: vf_field.c:86
#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 outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
static const AVFilterPad field_outputs[]
Definition: vf_field.c:95

Definition at line 104 of file vf_field.c.