FFmpeg
Data Structures | Macros | Functions | Variables
vf_dejudder.c File Reference
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "filters.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 68 of file vf_dejudder.c.

◆ FLAGS

Definition at line 69 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 79 of file vf_dejudder.c.

◆ dejudder_init()

static av_cold int dejudder_init ( AVFilterContext ctx)
static

Definition at line 95 of file vf_dejudder.c.

◆ dejudder_uninit()

static av_cold void dejudder_uninit ( AVFilterContext ctx)
static

Definition at line 113 of file vf_dejudder.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 120 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 71 of file vf_dejudder.c.

◆ dejudder_inputs

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

Definition at line 161 of file vf_dejudder.c.

◆ dejudder_outputs

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

Definition at line 169 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 177 of file vf_dejudder.c.

dejudder_inputs
static const AVFilterPad dejudder_inputs[]
Definition: vf_dejudder.c:161
dejudder_outputs
static const AVFilterPad dejudder_outputs[]
Definition: vf_dejudder.c:169
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
dejudder_init
static av_cold int dejudder_init(AVFilterContext *ctx)
Definition: vf_dejudder.c:95
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_dejudder.c:120
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
dejudder_uninit
static av_cold void dejudder_uninit(AVFilterContext *ctx)
Definition: vf_dejudder.c:113
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:94
DejudderContext
Definition: vf_dejudder.c:57
FLAGS
#define FLAGS
Definition: vf_dejudder.c:69
OFFSET
#define OFFSET(x)
Definition: vf_dejudder.c:68
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition: opt.h:259
config_out_props
static int config_out_props(AVFilterLink *outlink)
Definition: vf_dejudder.c:79
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201