FFmpeg  4.0
Data Structures | Macros | Functions | Variables
vf_kerndeint.c File Reference

Kernel Deinterlacer Ported from MPlayer libmpcodecs/vf_kerndeint.c. More...

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

Go to the source code of this file.

Data Structures

struct  KerndeintContext
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (kerndeint)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_props (AVFilterLink *inlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *inpic)
 

Variables

static const AVOption kerndeint_options []
 
static const AVFilterPad kerndeint_inputs []
 
static const AVFilterPad kerndeint_outputs []
 
AVFilter ff_vf_kerndeint
 

Detailed Description

Kernel Deinterlacer Ported from MPlayer libmpcodecs/vf_kerndeint.c.

Definition in file vf_kerndeint.c.

Macro Definition Documentation

◆ OFFSET

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

Definition at line 49 of file vf_kerndeint.c.

◆ FLAGS

Definition at line 50 of file vf_kerndeint.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( kerndeint  )

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 62 of file vf_kerndeint.c.

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 69 of file vf_kerndeint.c.

◆ config_props()

static int config_props ( AVFilterLink inlink)
static

Definition at line 87 of file vf_kerndeint.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame inpic 
)
static

< Previous field's pixel line number n

< Previous field's pixel line number (n - 1)

< Previous field's pixel line number (n + 1)

< Previous field's pixel line number (n - 2)

< Previous field's pixel line number (n + 2)

< Previous field's pixel line number (n - 4)

< Previous field's pixel line number (n + 4)

< Current field's pixel line number n

< Current field's pixel line number (n - 1)

< Current field's pixel line number (n + 1)

< Current field's pixel line number (n - 2)

< Current field's pixel line number (n + 2)

< Current field's pixel line number (n - 3)

< Current field's pixel line number (n + 3)

< Current field's pixel line number (n - 4)

< Current field's pixel line number (n + 4)

Definition at line 108 of file vf_kerndeint.c.

Variable Documentation

◆ kerndeint_options

const AVOption kerndeint_options[]
static
Initial value:
= {
{ "thresh", "set the threshold", OFFSET(thresh), AV_OPT_TYPE_INT, {.i64=10}, 0, 255, FLAGS },
{ "map", "set the map", OFFSET(map), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, FLAGS },
{ "order", "set the order", OFFSET(order), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, FLAGS },
{ "sharp", "set sharpening", OFFSET(sharp), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, FLAGS },
{ "twoway", "set twoway", OFFSET(twoway), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, FLAGS },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: vf_kerndeint.c:49
const VDPAUPixFmtMap * map
#define FLAGS
Definition: vf_kerndeint.c:50

Definition at line 51 of file vf_kerndeint.c.

◆ kerndeint_inputs

const AVFilterPad kerndeint_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_props,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_props(AVFilterLink *inlink)
Definition: vf_kerndeint.c:87
static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
Definition: vf_kerndeint.c:108

Definition at line 291 of file vf_kerndeint.c.

◆ kerndeint_outputs

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

Definition at line 301 of file vf_kerndeint.c.

◆ ff_vf_kerndeint

AVFilter ff_vf_kerndeint
Initial value:
= {
.name = "kerndeint",
.description = NULL_IF_CONFIG_SMALL("Apply kernel deinterlacing to the input."),
.priv_size = sizeof(KerndeintContext),
.priv_class = &kerndeint_class,
}
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_kerndeint.c:62
static const AVFilterPad kerndeint_inputs[]
Definition: vf_kerndeint.c:291
static const AVFilterPad kerndeint_outputs[]
Definition: vf_kerndeint.c:301
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int query_formats(AVFilterContext *ctx)
Definition: vf_kerndeint.c:69
static const AVFilterPad inputs[]
Definition: af_acontrast.c:193
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203

Definition at line 310 of file vf_kerndeint.c.