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

video field order filter, heavily influenced by vf_pad.c More...

#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  FieldOrderContext


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


static int query_formats (AVFilterContext *ctx)
static int config_input (AVFilterLink *inlink)
static int filter_frame (AVFilterLink *inlink, AVFrame *frame)


static const AVOption fieldorder_options []
static const AVFilterPad avfilter_vf_fieldorder_inputs []
static const AVFilterPad avfilter_vf_fieldorder_outputs []
AVFilter ff_vf_fieldorder

Detailed Description

video field order filter, heavily influenced by vf_pad.c

Definition in file vf_fieldorder.c.

Macro Definition Documentation

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

Definition at line 157 of file vf_fieldorder.c.

Definition at line 158 of file vf_fieldorder.c.

Function Documentation

static int query_formats ( AVFilterContext ctx)

accept any input pixel format that is not hardware accelerated, not a bitstream format, and does not have vertically sub-sampled chroma

Definition at line 41 of file vf_fieldorder.c.

static int config_input ( AVFilterLink inlink)

Definition at line 69 of file vf_fieldorder.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 

Move every line up one line, working from the top to the bottom of the frame. The original top line is lost. The new last line is created as a copy of the penultimate line from that field.

Move every line down one line, working from the bottom to the top of the frame. The original bottom line is lost. The new first line is created as a copy of the second line from that field.

Definition at line 77 of file vf_fieldorder.c.


Variable Documentation

const AVOption fieldorder_options[]
Initial value:
= {
{ "order", "output field order", OFFSET(dst_tff), AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 1, FLAGS, "order" },
{ "bff", "bottom field first", 0, AV_OPT_TYPE_CONST, { .i64 = 0 }, .flags=FLAGS, .unit = "order" },
{ "tff", "top field first", 0, AV_OPT_TYPE_CONST, { .i64 = 1 }, .flags=FLAGS, .unit = "order" },
{ NULL }
#define NULL
Definition: coverity.c:32
#define FLAGS
#define OFFSET(x)

Definition at line 160 of file vf_fieldorder.c.

const AVFilterPad avfilter_vf_fieldorder_inputs[]
Initial value:
= {
.name = "default",
.config_props = config_input,
.filter_frame = filter_frame,
{ NULL }
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_fieldorder.c:77
static int config_input(AVFilterLink *inlink)
Definition: vf_fieldorder.c:69

Definition at line 169 of file vf_fieldorder.c.

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

Definition at line 179 of file vf_fieldorder.c.

AVFilter ff_vf_fieldorder
Initial value:
= {
.name = "fieldorder",
.description = NULL_IF_CONFIG_SMALL("Set the field order."),
.priv_size = sizeof(FieldOrderContext),
.priv_class = &fieldorder_class,
static int query_formats(AVFilterContext *ctx)
Definition: vf_fieldorder.c:41
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:125
static const AVFilterPad avfilter_vf_fieldorder_inputs[]
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 avfilter_vf_fieldorder_outputs[]
static int flags
Definition: cpu.c:47

Definition at line 187 of file vf_fieldorder.c.