#include "libavutil/opt.h"
#include "avfilter.h"
#include "filters.h"
#include "opencl.h"
#include "opencl_source.h"
#include "video.h"
Go to the source code of this file.
◆ OFFSET
◆ FLAGS
◆ colorkey_opencl_init()
◆ filter_frame()
◆ colorkey_opencl_uninit()
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
colorkey_opencl |
| ) |
|
◆ colorkey_opencl_inputs
◆ colorkey_opencl_outputs
◆ colorkey_opencl_options
const AVOption colorkey_opencl_options[] |
|
static |
◆ ff_vf_colorkey_opencl
Initial value:= {
.name = "colorkey_opencl",
.description =
NULL_IF_CONFIG_SMALL(
"Turns a certain color into transparency. Operates on RGB colors."),
.priv_class = &colorkey_opencl_class,
}
Definition at line 229 of file vf_colorkey_opencl.c.
#define FILTER_INPUTS(array)
static av_cold void colorkey_opencl_uninit(AVFilterContext *avctx)
static int filter_frame(AVFilterLink *link, AVFrame *input_frame)
int ff_opencl_filter_config_output(AVFilterLink *outlink)
Create a suitable hardware frames context for the output.
static const AVFilterPad colorkey_opencl_inputs[]
#define FILTER_OUTPUTS(array)
@ AV_OPT_TYPE_COLOR
Underlying C type is uint8_t[4].
@ AV_PIX_FMT_OPENCL
Hardware surfaces for OpenCL.
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
int(* init)(AVBSFContext *ctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define AVFILTER_FLAG_HWDEVICE
The filter can create hardware frames using AVFilterContext.hw_device_ctx.
static const AVFilterPad colorkey_opencl_outputs[]
int ff_opencl_filter_config_input(AVFilterLink *inlink)
Check that the input link contains a suitable hardware frames context and extract the device from it.
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
static void uninit(AVBSFContext *ctx)
int ff_opencl_filter_init(AVFilterContext *avctx)
Initialise an OpenCL filter context.
#define FILTER_SINGLE_PIXFMT(pix_fmt_)