FFmpeg
Data Structures | Macros | Functions | Variables
vf_kerndeint.c File Reference
#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 }
}

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 }
}

Definition at line 291 of file vf_kerndeint.c.

◆ kerndeint_outputs

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

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,
}

Definition at line 310 of file vf_kerndeint.c.

uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_kerndeint.c:62
kerndeint_inputs
static const AVFilterPad kerndeint_inputs[]
Definition: vf_kerndeint.c:291
KerndeintContext
Definition: vf_kerndeint.c:38
config_props
static int config_props(AVFilterLink *inlink)
Definition: vf_kerndeint.c:87
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
kerndeint_outputs
static const AVFilterPad kerndeint_outputs[]
Definition: vf_kerndeint.c:301
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: vf_kerndeint.c:69
NULL
#define NULL
Definition: coverity.c:32
inputs
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:243
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
Definition: vf_kerndeint.c:108
FLAGS
#define FLAGS
Definition: vf_kerndeint.c:50
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:223
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
map
const VDPAUPixFmtMap * map
Definition: hwcontext_vdpau.c:85
AV_OPT_TYPE_BOOL
@ AV_OPT_TYPE_BOOL
Definition: opt.h:240
OFFSET
#define OFFSET(x)
Definition: vf_kerndeint.c:49