#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.
|
static uint8_t | do_chromakey_pixel (ChromakeyContext *ctx, uint8_t u[9], uint8_t v[9]) |
|
static av_always_inline void | get_pixel_uv (AVFrame *frame, int hsub_log2, int vsub_log2, int x, int y, uint8_t *u, uint8_t *v) |
|
static int | do_chromakey_slice (AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) |
|
static int | do_chromahold_slice (AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter_frame (AVFilterLink *link, AVFrame *frame) |
|
static av_cold int | initialize_chromakey (AVFilterContext *avctx) |
|
static av_cold int | query_formats (AVFilterContext *avctx) |
|
static av_cold int | config_input (AVFilterLink *inlink) |
|
| AVFILTER_DEFINE_CLASS (chromakey) |
|
| AVFILTER_DEFINE_CLASS (chromahold) |
|
◆ FIXNUM
#define FIXNUM |
( |
|
x | ) |
lrint((x) * (1 << 10)) |
◆ RGB_TO_U
#define RGB_TO_U |
( |
|
rgb | ) |
(((- FIXNUM(0.16874) * rgb[0] - FIXNUM(0.33126) * rgb[1] + FIXNUM(0.50000) * rgb[2] + (1 << 9) - 1) >> 10) + 128) |
◆ RGB_TO_V
#define RGB_TO_V |
( |
|
rgb | ) |
((( FIXNUM(0.50000) * rgb[0] - FIXNUM(0.41869) * rgb[1] - FIXNUM(0.08131) * rgb[2] + (1 << 9) - 1) >> 10) + 128) |
◆ OFFSET
◆ FLAGS
◆ do_chromakey_pixel()
◆ get_pixel_uv()
◆ do_chromakey_slice()
◆ do_chromahold_slice()
◆ filter_frame()
◆ initialize_chromakey()
◆ query_formats()
◆ config_input()
◆ AVFILTER_DEFINE_CLASS() [1/2]
AVFILTER_DEFINE_CLASS |
( |
chromakey |
| ) |
|
◆ AVFILTER_DEFINE_CLASS() [2/2]
AVFILTER_DEFINE_CLASS |
( |
chromahold |
| ) |
|
◆ chromakey_inputs
Initial value:= {
{
.name = "default",
.needs_writable = 1,
},
}
Definition at line 223 of file vf_chromakey.c.
◆ chromakey_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 234 of file vf_chromakey.c.
◆ chromakey_options
◆ ff_vf_chromakey
Initial value:= {
.name = "chromakey",
.description =
NULL_IF_CONFIG_SMALL(
"Turns a certain color into transparency. Operates on YUV colors."),
.priv_class = &chromakey_class,
}
Definition at line 255 of file vf_chromakey.c.
◆ chromahold_options
◆ chromahold_inputs
Initial value:= {
{
.name = "default",
.needs_writable = 1,
},
}
Definition at line 275 of file vf_chromakey.c.
◆ chromahold_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 286 of file vf_chromakey.c.
◆ ff_vf_chromahold
Initial value:= {
.name = "chromahold",
.priv_class = &chromahold_class,
}
Definition at line 296 of file vf_chromakey.c.