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 uint16_t | do_chromakey_pixel16 (ChromakeyContext *ctx, uint16_t u[9], uint16_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 av_always_inline void | get_pixel16_uv (AVFrame *frame, int hsub_log2, int vsub_log2, int x, int y, uint16_t *u, uint16_t *v) |
|
static int | do_chromakey_slice (AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) |
|
static int | do_chromakey16_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 | do_chromahold16_slice (AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter_frame (AVFilterLink *link, AVFrame *frame) |
|
static av_cold int | config_output (AVFilterLink *outlink) |
|
static av_cold int | config_input (AVFilterLink *inlink) |
|
static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
|
| AVFILTER_DEFINE_CLASS (chromakey) |
|
| AVFILTER_DEFINE_CLASS (chromahold) |
|
◆ FIXNUM
#define FIXNUM |
( |
|
x | ) |
lrint((x) * (1 << 10)) |
◆ RGB_TO_U
◆ RGB_TO_V
◆ OFFSET
◆ FLAGS
◆ do_chromakey_pixel()
static uint8_t do_chromakey_pixel |
( |
ChromakeyContext * |
ctx, |
|
|
uint8_t |
u[9], |
|
|
uint8_t |
v[9] |
|
) |
| |
|
static |
◆ do_chromakey_pixel16()
static uint16_t do_chromakey_pixel16 |
( |
ChromakeyContext * |
ctx, |
|
|
uint16_t |
u[9], |
|
|
uint16_t |
v[9] |
|
) |
| |
|
static |
◆ get_pixel_uv()
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 |
◆ get_pixel16_uv()
static av_always_inline void get_pixel16_uv |
( |
AVFrame * |
frame, |
|
|
int |
hsub_log2, |
|
|
int |
vsub_log2, |
|
|
int |
x, |
|
|
int |
y, |
|
|
uint16_t * |
u, |
|
|
uint16_t * |
v |
|
) |
| |
|
static |
◆ do_chromakey_slice()
static int do_chromakey_slice |
( |
AVFilterContext * |
avctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ do_chromakey16_slice()
static int do_chromakey16_slice |
( |
AVFilterContext * |
avctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ do_chromahold_slice()
static int do_chromahold_slice |
( |
AVFilterContext * |
avctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ do_chromahold16_slice()
static int do_chromahold16_slice |
( |
AVFilterContext * |
avctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter_frame()
◆ config_output()
◆ config_input()
◆ process_command()
static int process_command |
( |
AVFilterContext * |
ctx, |
|
|
const char * |
cmd, |
|
|
const char * |
args, |
|
|
char * |
res, |
|
|
int |
res_len, |
|
|
int |
flags |
|
) |
| |
|
static |
◆ AVFILTER_DEFINE_CLASS() [1/2]
AVFILTER_DEFINE_CLASS |
( |
chromakey |
| ) |
|
◆ AVFILTER_DEFINE_CLASS() [2/2]
AVFILTER_DEFINE_CLASS |
( |
chromahold |
| ) |
|
◆ inputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 326 of file vf_chromakey.c.
◆ outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 336 of file vf_chromakey.c.
◆ chromakey_options
◆ chromakey_fmts
◆ 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 368 of file vf_chromakey.c.
◆ chromahold_options
◆ hold_pixel_fmts
◆ ff_vf_chromahold
Initial value:= {
.name = "chromahold",
.priv_class = &chromahold_class,
}
Definition at line 409 of file vf_chromakey.c.
static const AVFilterPad inputs[]
#define AV_PIX_FMT_YUVA422P16
static av_cold int config_input(AVFilterLink *inlink)
#define FILTER_PIXFMTS_ARRAY(array)
#define AV_PIX_FMT_YUVA422P9
#define FILTER_INPUTS(array)
#define AV_PIX_FMT_YUVA420P16
#define AV_PIX_FMT_YUVA420P10
#define AV_PIX_FMT_YUV420P10
#define AV_PIX_FMT_YUVA422P10
#define AV_PIX_FMT_YUVA420P9
#define AV_PIX_FMT_YUVA444P16
#define AV_PIX_FMT_YUV422P9
#define AV_PIX_FMT_YUV444P10
#define AV_PIX_FMT_YUV422P16
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
#define AV_PIX_FMT_YUV444P16
#define AV_PIX_FMT_YUVA444P12
#define AV_PIX_FMT_YUV420P9
#define AV_PIX_FMT_YUV420P16
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define FILTER_OUTPUTS(array)
@ AV_OPT_TYPE_COLOR
Underlying C type is uint8_t[4].
static const AVFilterPad outputs[]
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
#define AV_PIX_FMT_YUV422P10
static int filter_frame(AVFilterLink *link, AVFrame *frame)
#define AVFILTERPAD_FLAG_NEEDS_WRITABLE
The filter expects writable frames from its input link, duplicating data buffers if needed.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define AV_PIX_FMT_YUV422P12
#define AV_PIX_FMT_YUV444P12
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
#define AV_PIX_FMT_YUVA444P10
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
#define AV_PIX_FMT_YUV444P9
static enum AVPixelFormat hold_pixel_fmts[]
#define AV_PIX_FMT_YUVA444P9
#define AV_PIX_FMT_YUV420P12
#define AV_PIX_FMT_YUV422P14
#define AV_PIX_FMT_YUVA422P12
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
#define AV_PIX_FMT_YUV444P14
static enum AVPixelFormat chromakey_fmts[]
static av_cold int config_output(AVFilterLink *outlink)
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
#define AV_PIX_FMT_YUV420P14