Go to the source code of this file.
◆ OFFSET
◆ FLAGS
◆ init_filter()
◆ avgblur_vulkan_filter_frame()
◆ avgblur_vulkan_uninit()
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
avgblur_vulkan |
| ) |
|
◆ blur_kernel
Initial value:= {
C(0,
void distort(
const ivec2
pos,
const int idx) )
C(1, vec4 sum = vec4(0); )
C(1,
for (
int y = -filter_len.y; y <= filter_len.y; y++) )
C(1,
for (
int x = -filter_len.x; x <= filter_len.x; x++) )
C(2, sum += texture(input_img[idx],
pos + ivec2(x, y)); )
C(1, imageStore(output_img[idx],
pos, sum * filter_norm); )
}
Definition at line 49 of file vf_avgblur_vulkan.c.
Referenced by init_filter().
◆ avgblur_vulkan_options
◆ avgblur_vulkan_inputs
◆ avgblur_vulkan_outputs
◆ ff_vf_avgblur_vulkan
Initial value:= {
.name = "avgblur_vulkan",
.priv_class = &avgblur_vulkan_class,
}
Definition at line 245 of file vf_avgblur_vulkan.c.
static const AVFilterPad avgblur_vulkan_outputs[]
static const AVFilterPad avgblur_vulkan_inputs[]
#define FILTER_INPUTS(array)
int ff_vk_filter_init(AVFilterContext *avctx)
General lavfi IO functions.
static void avgblur_vulkan_uninit(AVFilterContext *avctx)
@ AV_PIX_FMT_VULKAN
Vulkan hardware images.
s EdgeDetect Foobar g libavfilter vf_edgedetect c libavfilter vf_foobar c edit libavfilter and add an entry for foobar following the pattern of the other filters edit libavfilter allfilters and add an entry for foobar following the pattern of the other filters configure make j< whatever > ffmpeg ffmpeg i you should get a foobar png with Lena edge detected That s your new playground is ready Some little details about what s going which in turn will define variables for the build system and the C
#define FILTER_OUTPUTS(array)
static const struct @465 planes[]
int ff_vk_filter_config_output(AVFilterLink *outlink)
#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 void uninit(AVBSFContext *ctx)
@ AV_OPT_TYPE_INT
Underlying C type is int.
static int avgblur_vulkan_filter_frame(AVFilterLink *link, AVFrame *in)
int ff_vk_filter_config_input(AVFilterLink *inlink)
#define FILTER_SINGLE_PIXFMT(pix_fmt_)