FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vf_weave.c File Reference
#include "libavutil/imgutils.h"
#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  WeaveContext
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (weave)
 
static int config_props_output (AVFilterLink *outlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVOption weave_options []
 
static const AVFilterPad weave_inputs []
 
static const AVFilterPad weave_outputs []
 
AVFilter ff_vf_weave
 

Macro Definition Documentation

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

Definition at line 37 of file vf_weave.c.

Definition at line 38 of file vf_weave.c.

Function Documentation

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

Definition at line 51 of file vf_weave.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 77 of file vf_weave.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 118 of file vf_weave.c.

Variable Documentation

const AVOption weave_options[]
static
Initial value:
= {
{ "first_field", "set first field", OFFSET(first_field), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, FLAGS, "field"},
{ "top", "set top field first", 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, FLAGS, "field"},
{ "t", "set top field first", 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, FLAGS, "field"},
{ "bottom", "set bottom field first", 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, "field"},
{ "b", "set bottom field first", 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, "field"},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int first_field(const struct video_data *s)
Definition: v4l2.c:228
#define OFFSET(x)
Definition: vf_weave.c:37
#define FLAGS
Definition: vf_weave.c:38

Definition at line 40 of file vf_weave.c.

const AVFilterPad weave_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_weave.c:77

Definition at line 125 of file vf_weave.c.

const AVFilterPad weave_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_weave.c:51

Definition at line 134 of file vf_weave.c.

AVFilter ff_vf_weave
Initial value:
= {
.name = "weave",
.description = NULL_IF_CONFIG_SMALL("Weave input video fields into frames."),
.priv_size = sizeof(WeaveContext),
.priv_class = &weave_class,
}
static const AVFilterPad weave_inputs[]
Definition: vf_weave.c:125
#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 weave_outputs[]
Definition: vf_weave.c:134
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_weave.c:118

Definition at line 143 of file vf_weave.c.