FFmpeg
|
vf_setfield.c File Reference
set field order More...
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
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
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
enum SetFieldMode |
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 |
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,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: vf_setfield.c:38
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: filter_design.txt:216
Definition at line 88 of file vf_setfield.c.
|
static |
Initial value:
= {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.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
Definition: avutil.h:143
Definition at line 70 of file vf_setfield.c.
|
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: opt.h:222
Definition: vf_setfield.c:34
Definition: opt.h:229
Definition: vf_setfield.c:35
Definition: vf_setfield.c:32
Definition: vf_setfield.c:33
Definition at line 46 of file vf_setfield.c.
|
static |
Initial value:
Definition at line 80 of file vf_setfield.c.
Generated on Mon Nov 18 2024 06:52:10 for FFmpeg by 1.8.11