FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
vf_deblock.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  DeblockContext
 

Macros

#define WEAK_HFILTER(name, type, ldiv)
 
#define WEAK_VFILTER(name, type, ldiv)
 
#define STRONG_HFILTER(name, type, ldiv)
 
#define STRONG_VFILTER(name, type, ldiv)
 
#define OFFSET(x)   offsetof(DeblockContext, x)
 
#define FLAGS   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
 

Enumerations

enum  FilterType {
  BUTTERWORTH, CHEBYSHEV1, CHEBYSHEV2, NB_TYPES,
  biquad, equalizer, bass, treble,
  bandpass, bandreject, allpass, highpass,
  lowpass, lowshelf, highshelf, WEAK,
  STRONG, NB_FILTER, LOWPASS, FLAT,
  AFLAT, CHROMA, COLOR, ACOLOR,
  XFLAT, NB_FILTERS
}
 

Functions

static int query_formats (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
 AVFILTER_DEFINE_CLASS (deblock)
 

Variables

static const AVOption deblock_options []
 
static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 
AVFilter ff_vf_deblock
 

Macro Definition Documentation

#define WEAK_HFILTER (   name,
  type,
  ldiv 
)

Definition at line 92 of file vf_deblock.c.

#define WEAK_VFILTER (   name,
  type,
  ldiv 
)

Definition at line 131 of file vf_deblock.c.

#define STRONG_HFILTER (   name,
  type,
  ldiv 
)

Definition at line 172 of file vf_deblock.c.

#define STRONG_VFILTER (   name,
  type,
  ldiv 
)

Definition at line 218 of file vf_deblock.c.

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

Definition at line 369 of file vf_deblock.c.

Definition at line 370 of file vf_deblock.c.

Enumeration Type Documentation

enum FilterType
Enumerator
BUTTERWORTH 
CHEBYSHEV1 
CHEBYSHEV2 
NB_TYPES 
biquad 
equalizer 
bass 
treble 
bandpass 
bandreject 
allpass 
highpass 
lowpass 
lowshelf 
highshelf 
WEAK 
STRONG 
NB_FILTER 
LOWPASS 
FLAT 
AFLAT 
CHROMA 
COLOR 
ACOLOR 
XFLAT 
NB_FILTERS 

Definition at line 34 of file vf_deblock.c.

Function Documentation

static int query_formats ( AVFilterContext ctx)
static

Definition at line 64 of file vf_deblock.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 266 of file vf_deblock.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 308 of file vf_deblock.c.

AVFILTER_DEFINE_CLASS ( deblock  )

Variable Documentation

const AVOption deblock_options[]
static
Initial value:
= {
{ "filter", "set type of filter", OFFSET(filter), AV_OPT_TYPE_INT, {.i64=STRONG},0, 1, FLAGS, "filter" },
{ "weak", 0, 0, AV_OPT_TYPE_CONST, {.i64=WEAK}, 0, 0, FLAGS, "filter" },
{ "strong", 0, 0, AV_OPT_TYPE_CONST, {.i64=STRONG},0, 0, FLAGS, "filter" },
{ "block", "set size of block", OFFSET(block), AV_OPT_TYPE_INT, {.i64=8}, 4, 512, FLAGS },
{ "alpha", "set 1st detection threshold", OFFSET(alpha), AV_OPT_TYPE_FLOAT, {.dbl=.098}, 0, 1, FLAGS },
{ "beta", "set 2nd detection threshold", OFFSET(beta), AV_OPT_TYPE_FLOAT, {.dbl=.05}, 0, 1, FLAGS },
{ "gamma", "set 3rd detection threshold", OFFSET(gamma), AV_OPT_TYPE_FLOAT, {.dbl=.05}, 0, 1, FLAGS },
{ "delta", "set 4th detection threshold", OFFSET(delta), AV_OPT_TYPE_FLOAT, {.dbl=.05}, 0, 1, FLAGS },
{ "planes", "set planes to filter", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=15}, 0, 15, FLAGS },
{ NULL },
}
#define NULL
Definition: coverity.c:32
static int16_t block[64]
Definition: dct.c:115
static void filter(int16_t *output, ptrdiff_t out_stride, int16_t *low, ptrdiff_t low_stride, int16_t *high, ptrdiff_t high_stride, int len, int clip)
Definition: cfhd.c:153
float delta
static const struct @304 planes[]
static const int16_t alpha[]
Definition: ilbcdata.h:55
#define FLAGS
Definition: vf_deblock.c:370
#define OFFSET(x)
Definition: vf_deblock.c:369

Definition at line 372 of file vf_deblock.c.

const AVFilterPad inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_deblock.c:308

Definition at line 385 of file vf_deblock.c.

const AVFilterPad outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_output(AVFilterLink *outlink)
Definition: vf_deblock.c:266

Definition at line 394 of file vf_deblock.c.

AVFilter ff_vf_deblock
Initial value:
= {
.name = "deblock",
.description = NULL_IF_CONFIG_SMALL("Deblock video."),
.priv_size = sizeof(DeblockContext),
.priv_class = &deblock_class,
}
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:125
static const AVFilterPad inputs[]
Definition: vf_deblock.c:385
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVFilterPad outputs[]
Definition: vf_deblock.c:394
#define flags(name, subs,...)
Definition: cbs_av1.c:596
static int query_formats(AVFilterContext *ctx)
Definition: vf_deblock.c:64

Definition at line 405 of file vf_deblock.c.