FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 int init (AVFilterContext *ctx, const char *args)
 
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, AVFilterBufferRef *inpic)
 

Variables

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

Detailed Description

Kernel Deinterlacer Ported from MPlayer libmpcodecs/vf_kerndeint.c.

Definition in file vf_kerndeint.c.

Macro Definition Documentation

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

Definition at line 49 of file vf_kerndeint.c.

Definition at line 50 of file vf_kerndeint.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( kerndeint  )
static av_cold int init ( AVFilterContext ctx,
const char *  args 
)
static

Definition at line 62 of file vf_kerndeint.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 73 of file vf_kerndeint.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 81 of file vf_kerndeint.c.

static int config_props ( AVFilterLink inlink)
static

Definition at line 98 of file vf_kerndeint.c.

static int filter_frame ( AVFilterLink inlink,
AVFilterBufferRef 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 119 of file vf_kerndeint.c.

Variable Documentation

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_INT, {.i64=0}, 0, 1, FLAGS },
{ "order", "set the order", OFFSET(order), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, FLAGS },
{ "sharp", "enable sharpening", OFFSET(sharp), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, FLAGS },
{ "twoway", "enable twoway", OFFSET(twoway), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, FLAGS },
{ NULL }
}

Definition at line 51 of file vf_kerndeint.c.

const AVFilterPad kerndeint_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_props,
.min_perms = AV_PERM_READ,
},
{ NULL }
}

Definition at line 302 of file vf_kerndeint.c.

const AVFilterPad kerndeint_outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}

Definition at line 313 of file vf_kerndeint.c.

AVFilter avfilter_vf_kerndeint
Initial value:
= {
.name = "kerndeint",
.description = NULL_IF_CONFIG_SMALL("Apply kernel deinterlacing to the input."),
.priv_size = sizeof(KerndeintContext),
.init = init,
.priv_class = &kerndeint_class,
}

Definition at line 321 of file vf_kerndeint.c.