FFmpeg
Macros | Functions | Variables
yadif_common.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "internal.h"
#include "yadif.h"

Go to the source code of this file.

Macros

#define OFFSET(x)   offsetof(YADIFContext, x)
 
#define FLAGS   AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 
#define CONST(name, help, val, unit)   { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, INT_MIN, INT_MAX, FLAGS, unit }
 

Functions

static int return_frame (AVFilterContext *ctx, int is_second)
 
static int checkstride (YADIFContext *yadif, const AVFrame *a, const AVFrame *b)
 
static void fixstride (AVFilterLink *link, AVFrame *f)
 
int ff_yadif_filter_frame (AVFilterLink *link, AVFrame *frame)
 
int ff_yadif_request_frame (AVFilterLink *link)
 

Variables

const AVOption ff_yadif_options []
 

Macro Definition Documentation

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

Definition at line 193 of file yadif_common.c.

Definition at line 194 of file yadif_common.c.

#define CONST (   name,
  help,
  val,
  unit 
)    { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, INT_MIN, INT_MAX, FLAGS, unit }

Definition at line 196 of file yadif_common.c.

Function Documentation

static int return_frame ( AVFilterContext ctx,
int  is_second 
)
static

Definition at line 27 of file yadif_common.c.

Referenced by ff_yadif_filter_frame(), and ff_yadif_request_frame().

static int checkstride ( YADIFContext yadif,
const AVFrame a,
const AVFrame b 
)
static

Definition at line 69 of file yadif_common.c.

Referenced by ff_yadif_filter_frame().

static void fixstride ( AVFilterLink link,
AVFrame f 
)
static

Definition at line 78 of file yadif_common.c.

Referenced by ff_yadif_filter_frame().

int ff_yadif_filter_frame ( AVFilterLink link,
AVFrame frame 
)

Definition at line 92 of file yadif_common.c.

Referenced by ff_yadif_request_frame().

int ff_yadif_request_frame ( AVFilterLink link)

Definition at line 159 of file yadif_common.c.

Variable Documentation

const AVOption ff_yadif_options[]
Initial value:
= {
{ "mode", "specify the interlacing mode", OFFSET(mode), AV_OPT_TYPE_INT, {.i64=YADIF_MODE_SEND_FRAME}, 0, 3, FLAGS, "mode"},
CONST("send_frame", "send one frame for each frame", YADIF_MODE_SEND_FRAME, "mode"),
CONST("send_field", "send one frame for each field", YADIF_MODE_SEND_FIELD, "mode"),
CONST("send_frame_nospatial", "send one frame for each frame, but skip spatial interlacing check", YADIF_MODE_SEND_FRAME_NOSPATIAL, "mode"),
CONST("send_field_nospatial", "send one frame for each field, but skip spatial interlacing check", YADIF_MODE_SEND_FIELD_NOSPATIAL, "mode"),
{ "parity", "specify the assumed picture field parity", OFFSET(parity), AV_OPT_TYPE_INT, {.i64=YADIF_PARITY_AUTO}, -1, 1, FLAGS, "parity" },
CONST("tff", "assume top field first", YADIF_PARITY_TFF, "parity"),
CONST("bff", "assume bottom field first", YADIF_PARITY_BFF, "parity"),
CONST("auto", "auto detect parity", YADIF_PARITY_AUTO, "parity"),
{ "deint", "specify which frames to deinterlace", OFFSET(deint), AV_OPT_TYPE_INT, {.i64=YADIF_DEINT_ALL}, 0, 1, FLAGS, "deint" },
CONST("all", "deinterlace all frames", YADIF_DEINT_ALL, "deint"),
CONST("interlaced", "only deinterlace frames marked as interlaced", YADIF_DEINT_INTERLACED, "deint"),
{ NULL }
}
#define NULL
Definition: coverity.c:32
send 1 frame for each frame but skips spatial interlacing check
Definition: yadif.h:29
#define FLAGS
Definition: yadif_common.c:194
bottom field first
Definition: yadif.h:35
send 1 frame for each field
Definition: yadif.h:28
auto detection
Definition: yadif.h:36
mcdeint parity
Definition: vf_mcdeint.c:274
#define OFFSET(x)
Definition: yadif_common.c:193
#define CONST(name, help, val, unit)
Definition: yadif_common.c:196
send 1 frame for each field but skips spatial interlacing check
Definition: yadif.h:30
deinterlace all frames
Definition: yadif.h:40
send 1 frame for each frame
Definition: yadif.h:27
only deinterlace frames marked as interlaced
Definition: yadif.h:41
top field first
Definition: yadif.h:34
mode
Use these values in ebur128_init (or'ed).
Definition: ebur128.h:83

Definition at line 198 of file yadif_common.c.