#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
◆ OFFSET
◆ FLAGS
◆ do_colorkey_pixel()
◆ do_colorkey_slice()
◆ filter_frame()
◆ config_output()
◆ query_formats()
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
colorkey |
| ) |
|
◆ colorkey_inputs
Initial value:= {
{
.name = "default",
},
}
static int filter_frame(AVFilterLink *link, AVFrame *frame)
Definition at line 130 of file vf_colorkey.c.
◆ colorkey_outputs
Initial value:= {
{
.name = "default",
},
}
static av_cold int config_output(AVFilterLink *outlink)
Definition at line 139 of file vf_colorkey.c.
◆ colorkey_options
Initial value:= {
{
"similarity",
"set the colorkey similarity value",
OFFSET(similarity),
AV_OPT_TYPE_FLOAT, { .dbl = 0.01 }, 0.01, 1.0, FLAGS },
{
"blend",
"set the colorkey key blend value",
OFFSET(blend),
AV_OPT_TYPE_FLOAT, { .dbl = 0.0 }, 0.0, 1.0, FLAGS },
}
Definition at line 151 of file vf_colorkey.c.
◆ ff_vf_colorkey
Initial value:= {
.name = "colorkey",
.description =
NULL_IF_CONFIG_SMALL(
"Turns a certain color into transparency. Operates on RGB colors."),
.priv_class = &colorkey_class,
}
static const AVFilterPad colorkey_outputs[]
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
static const AVFilterPad colorkey_inputs[]
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
static av_cold int query_formats(AVFilterContext *avctx)
Definition at line 160 of file vf_colorkey.c.