Go to the source code of this file.
|
| static av_cold void | cudachromakey_uninit (AVFilterContext *ctx) |
| |
| static av_cold int | init_hwframe_ctx (AVFilterContext *ctx, AVBufferRef *device_ctx, int width, int height) |
| |
| static int | format_is_supported (enum AVPixelFormat fmt) |
| |
| static av_cold void | set_format_info (AVFilterContext *ctx, enum AVPixelFormat in_format, enum AVPixelFormat out_format) |
| |
| static av_cold int | init_processing_chain (AVFilterContext *ctx, int width, int height) |
| |
| static av_cold int | cudachromakey_load_functions (AVFilterContext *ctx) |
| |
| static av_cold int | cudachromakey_config_props (AVFilterLink *outlink) |
| |
| static int | call_cuda_kernel (AVFilterContext *ctx, CUfunction func, CUtexObject src_tex[3], AVFrame *out_frame, int width, int height, int pitch, int width_uv, int height_uv, int pitch_uv, float u_key, float v_key, float similarity, float blend) |
| |
| static int | cudachromakey_process_internal (AVFilterContext *ctx, AVFrame *out, AVFrame *in) |
| |
| static int | cudachromakey_filter_frame (AVFilterLink *link, AVFrame *in) |
| |
◆ DIV_UP
◆ BLOCKX
◆ BLOCKY
◆ CHECK_CU
◆ FIXNUM
◆ RGB_TO_U
◆ RGB_TO_V
◆ OFFSET
◆ FLAGS
◆ cudachromakey_uninit()
◆ init_hwframe_ctx()
◆ format_is_supported()
◆ set_format_info()
◆ init_processing_chain()
◆ cudachromakey_load_functions()
◆ cudachromakey_config_props()
◆ call_cuda_kernel()
| static int call_cuda_kernel |
( |
AVFilterContext * | ctx, |
|
|
CUfunction | func, |
|
|
CUtexObject | src_tex[3], |
|
|
AVFrame * | out_frame, |
|
|
int | width, |
|
|
int | height, |
|
|
int | pitch, |
|
|
int | width_uv, |
|
|
int | height_uv, |
|
|
int | pitch_uv, |
|
|
float | u_key, |
|
|
float | v_key, |
|
|
float | similarity, |
|
|
float | blend ) |
|
static |
◆ cudachromakey_process_internal()
◆ cudachromakey_filter_frame()
◆ supported_formats
Initial value:= {
}
@ AV_PIX_FMT_NV12
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Definition at line 37 of file vf_chromakey_cuda.c.
◆ options
Initial value:= {
}
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
@ AV_OPT_TYPE_COLOR
Underlying C type is uint8_t[4].
Definition at line 409 of file vf_chromakey_cuda.c.
◆ cudachromakey_class
Initial value:= {
.class_name = "cudachromakey",
}
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
Definition at line 417 of file vf_chromakey_cuda.c.
◆ cudachromakey_inputs
Initial value:= {
{
.name = "default",
},
}
static int cudachromakey_filter_frame(AVFilterLink *link, AVFrame *in)
Definition at line 424 of file vf_chromakey_cuda.c.
◆ cudachromakey_outputs
Initial value:= {
{
.name = "default",
},
}
static av_cold int cudachromakey_config_props(AVFilterLink *outlink)
Definition at line 432 of file vf_chromakey_cuda.c.
◆ ff_vf_chromakey_cuda
Initial value:= {
.p.name = "chromakey_cuda",
}
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
#define FILTER_SINGLE_PIXFMT(pix_fmt_)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
static const AVFilterPad cudachromakey_inputs[]
static const AVClass cudachromakey_class
static const AVFilterPad cudachromakey_outputs[]
static av_cold void cudachromakey_uninit(AVFilterContext *ctx)
Definition at line 440 of file vf_chromakey_cuda.c.