FFmpeg
Data Structures | Macros | Functions | Variables
vf_dedot.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  DedotContext
 
struct  ThreadData
 Used for passing data between threads. More...
 

Macros

#define DEFINE_DEDOTCRAWL(name, type, div)
 
#define DEFINE_DERAINBOW(name, type, div)
 
#define OFFSET(x)   offsetof(DedotContext, x)
 
#define FLAGS   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
 

Functions

static int query_formats (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 
static int activate (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 
 AVFILTER_DEFINE_CLASS (dedot)
 

Variables

static const AVOption dedot_options []
 
static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 
AVFilter ff_vf_dedot
 

Macro Definition Documentation

#define DEFINE_DEDOTCRAWL (   name,
  type,
  div 
)

Definition at line 83 of file vf_dedot.c.

#define DEFINE_DERAINBOW (   name,
  type,
  div 
)

Definition at line 162 of file vf_dedot.c.

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

Definition at line 369 of file vf_dedot.c.

Definition at line 370 of file vf_dedot.c.

Function Documentation

static int query_formats ( AVFilterContext ctx)
static

Definition at line 59 of file vf_dedot.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 226 of file vf_dedot.c.

static int activate ( AVFilterContext ctx)
static

Definition at line 260 of file vf_dedot.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 361 of file vf_dedot.c.

AVFILTER_DEFINE_CLASS ( dedot  )

Variable Documentation

const AVOption dedot_options[]
static
Initial value:
= {
{ "m", "set filtering mode", OFFSET( m), AV_OPT_TYPE_FLAGS, {.i64=3}, 0, 3, FLAGS, "m" },
{ "dotcrawl", 0, 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, "m" },
{ "rainbows", 0, 0, AV_OPT_TYPE_CONST, {.i64=2}, 0, 0, FLAGS, "m" },
{ "lt", "set spatial luma threshold", OFFSET(lt), AV_OPT_TYPE_FLOAT, {.dbl=.079}, 0, 1, FLAGS },
{ "tl", "set tolerance for temporal luma", OFFSET(tl), AV_OPT_TYPE_FLOAT, {.dbl=.079}, 0, 1, FLAGS },
{ "tc", "set tolerance for chroma temporal variation", OFFSET(tc), AV_OPT_TYPE_FLOAT, {.dbl=.058}, 0, 1, FLAGS },
{ "ct", "set temporal chroma threshold", OFFSET(ct), AV_OPT_TYPE_FLOAT, {.dbl=.019}, 0, 1, FLAGS },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define tc
Definition: regdef.h:69
#define FLAGS
Definition: vf_dedot.c:370
#define OFFSET(x)
Definition: vf_dedot.c:369

Definition at line 372 of file vf_dedot.c.

const AVFilterPad inputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}
#define NULL
Definition: coverity.c:32

Definition at line 383 of file vf_dedot.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_dedot.c:226

Definition at line 391 of file vf_dedot.c.

AVFilter ff_vf_dedot
Initial value:
= {
.name = "dedot",
.description = NULL_IF_CONFIG_SMALL("Reduce cross-luminance and cross-color."),
.priv_size = sizeof(DedotContext),
.priv_class = &dedot_class,
}
static int activate(AVFilterContext *ctx)
Definition: vf_dedot.c:260
static int query_formats(AVFilterContext *ctx)
Definition: vf_dedot.c:59
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition: avfilter.h:116
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
Definition: avfilter.h:133
static const AVFilterPad inputs[]
Definition: vf_dedot.c:383
#define flags(name, subs,...)
Definition: cbs_av1.c:561
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_dedot.c:361
static const AVFilterPad outputs[]
Definition: vf_dedot.c:391

Definition at line 402 of file vf_dedot.c.