FFmpeg
Data Structures | Macros | Functions | Variables
vf_dejudder.c File Reference
#include "libavutil/opt.h"
#include "libavutil/mathematics.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  DejudderContext
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (dejudder)
 
static int config_out_props (AVFilterLink *outlink)
 
static av_cold int dejudder_init (AVFilterContext *ctx)
 
static av_cold void dejudder_uninit (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *frame)
 

Variables

static const AVOption dejudder_options []
 
static const AVFilterPad dejudder_inputs []
 
static const AVFilterPad dejudder_outputs []
 
const AVFilter ff_vf_dejudder
 

Detailed Description

remove judder in video stream

Algorithm:

Definition in file vf_dejudder.c.

Macro Definition Documentation

◆ OFFSET

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

Definition at line 69 of file vf_dejudder.c.

◆ FLAGS

Definition at line 70 of file vf_dejudder.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( dejudder  )

◆ config_out_props()

static int config_out_props ( AVFilterLink outlink)
static

Definition at line 80 of file vf_dejudder.c.

◆ dejudder_init()

static av_cold int dejudder_init ( AVFilterContext ctx)
static

Definition at line 94 of file vf_dejudder.c.

◆ dejudder_uninit()

static av_cold void dejudder_uninit ( AVFilterContext ctx)
static

Definition at line 112 of file vf_dejudder.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 119 of file vf_dejudder.c.

Variable Documentation

◆ dejudder_options

const AVOption dejudder_options[]
static
Initial value:
= {
{"cycle", "set the length of the cycle to use for dejuddering",
OFFSET(cycle), AV_OPT_TYPE_INT, {.i64 = 4}, 2, 240, .flags = FLAGS},
{NULL}
}

Definition at line 72 of file vf_dejudder.c.

◆ dejudder_inputs

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

Definition at line 160 of file vf_dejudder.c.

◆ dejudder_outputs

const AVFilterPad dejudder_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_out_props,
},
}

Definition at line 168 of file vf_dejudder.c.

◆ ff_vf_dejudder

const AVFilter ff_vf_dejudder
Initial value:
= {
.name = "dejudder",
.description = NULL_IF_CONFIG_SMALL("Remove judder produced by pullup."),
.priv_size = sizeof(DejudderContext),
.priv_class = &dejudder_class,
.init = dejudder_init,
.uninit = dejudder_uninit,
}

Definition at line 176 of file vf_dejudder.c.

dejudder_inputs
static const AVFilterPad dejudder_inputs[]
Definition: vf_dejudder.c:160
dejudder_outputs
static const AVFilterPad dejudder_outputs[]
Definition: vf_dejudder.c:168
dejudder_init
static av_cold int dejudder_init(AVFilterContext *ctx)
Definition: vf_dejudder.c:94
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_dejudder.c:119
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:194
dejudder_uninit
static av_cold void dejudder_uninit(AVFilterContext *ctx)
Definition: vf_dejudder.c:112
NULL
#define NULL
Definition: coverity.c:32
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:115
DejudderContext
Definition: vf_dejudder.c:58
FLAGS
#define FLAGS
Definition: vf_dejudder.c:70
OFFSET
#define OFFSET(x)
Definition: vf_dejudder.c:69
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:225
config_out_props
static int config_out_props(AVFilterLink *outlink)
Definition: vf_dejudder.c:80
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:195