FFmpeg
Data Structures | Macros | Functions | Variables
vf_dejudder.c File Reference

remove judder in video stream More...

#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 []
 
AVFilter ff_vf_dejudder
 

Detailed Description

remove judder in video stream

Algorithm:

Definition in file vf_dejudder.c.

Macro Definition Documentation

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

Definition at line 69 of file vf_dejudder.c.

Definition at line 70 of file vf_dejudder.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( dejudder  )
static int config_out_props ( AVFilterLink outlink)
static

Definition at line 80 of file vf_dejudder.c.

static av_cold int dejudder_init ( AVFilterContext ctx)
static

Definition at line 94 of file vf_dejudder.c.

static av_cold void dejudder_uninit ( AVFilterContext ctx)
static

Definition at line 112 of file vf_dejudder.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 119 of file vf_dejudder.c.

Variable Documentation

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}
}
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_dejudder.c:70
#define OFFSET(x)
Definition: vf_dejudder.c:69

Definition at line 72 of file vf_dejudder.c.

const AVFilterPad dejudder_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_dejudder.c:119

Definition at line 160 of file vf_dejudder.c.

const AVFilterPad dejudder_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_out_props,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_out_props(AVFilterLink *outlink)
Definition: vf_dejudder.c:80

Definition at line 169 of file vf_dejudder.c.

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,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static const AVFilterPad dejudder_inputs[]
Definition: vf_dejudder.c:160
static const AVFilterPad dejudder_outputs[]
Definition: vf_dejudder.c:169
static av_cold int uninit(AVCodecContext *avctx)
Definition: crystalhd.c:279
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static av_cold void dejudder_uninit(AVFilterContext *ctx)
Definition: vf_dejudder.c:112
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
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
static av_cold int dejudder_init(AVFilterContext *ctx)
Definition: vf_dejudder.c:94

Definition at line 178 of file vf_dejudder.c.