#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.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 233 of file vf_colorkey_opencl.c.
static av_cold int init(AVCodecContext *avctx)
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
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[]
static const AVFilterPad outputs[]
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
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.
int ff_opencl_filter_init(AVFilterContext *avctx)
Initialise an OpenCL filter context.
static int query_formats(AVFilterContext *ctx)
static av_cold int uninit(AVCodecContext *avctx)
int ff_opencl_filter_query_formats(AVFilterContext *avctx)
Return that all inputs and outputs support only AV_PIX_FMT_OPENCL.