Go to the source code of this file.
◆ CGROUPS
#define CGROUPS (int [3]){ 32, 32, 1 } |
◆ OFFSET
◆ FLAGS
◆ init_filter()
◆ process_frames()
◆ chromaber_vulkan_filter_frame()
◆ chromaber_vulkan_uninit()
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
chromaber_vulkan |
| ) |
|
◆ distort_chroma_kernel
const char distort_chroma_kernel[] |
|
static |
Initial value:= {
C(0,
void distort_rgb(ivec2
size, ivec2
pos) )
C(1,
const vec2 p = ((vec2(
pos)/vec2(
size)) - 0.5f)*2.0f; )
C(1,
const vec2 o = p * (dist - 1.0f); )
C(1, res.
r = texture(input_img[0], ((p - o)/2.0
f) + 0.5
f).
r; )
C(1, res.
g = texture(input_img[0], ((p )/2.0
f) + 0.5
f).
g; )
C(1, res.
b = texture(input_img[0], ((p + o)/2.0
f) + 0.5
f).
b; )
C(1, res.
a = texture(input_img[0], ((p )/2.0
f) + 0.5
f).
a; )
C(1, imageStore(output_img[0],
pos, res); )
C(0,
void distort_chroma(
int idx, ivec2
size, ivec2
pos) )
C(1, vec2 p = ((vec2(
pos)/vec2(
size)) - 0.5f)*2.0f; )
C(1,
float d = sqrt(p.x*p.x + p.y*p.y); )
C(1, p *= d / (d* dist); )
C(1, vec4 res = texture(input_img[idx], (p/2.0f) + 0.5f); )
C(1, imageStore(output_img[idx],
pos, res); )
}
Definition at line 43 of file vf_chromaber_vulkan.c.
Referenced by init_filter().
◆ chromaber_vulkan_options
const AVOption chromaber_vulkan_options[] |
|
static |
◆ chromaber_vulkan_inputs
Initial value:= {
{
.name = "default",
},
}
static int chromaber_vulkan_filter_frame(AVFilterLink *link, AVFrame *in)
int ff_vk_filter_config_input(AVFilterLink *inlink)
Definition at line 317 of file vf_chromaber_vulkan.c.
◆ chromaber_vulkan_outputs
Initial value:= {
{
.name = "default",
},
}
int ff_vk_filter_config_output(AVFilterLink *outlink)
Definition at line 327 of file vf_chromaber_vulkan.c.
◆ ff_vf_chromaber_vulkan
Initial value:= {
.name = "chromaber_vulkan",
.priv_class = &chromaber_vulkan_class,
}
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
static av_cold int init(AVCodecContext *avctx)
static av_cold int uninit(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...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static void chromaber_vulkan_uninit(AVFilterContext *avctx)
static const AVFilterPad chromaber_vulkan_inputs[]
static const AVFilterPad chromaber_vulkan_outputs[]
int ff_vk_filter_query_formats(AVFilterContext *avctx)
General lavfi IO functions.
int ff_vk_filter_init(AVFilterContext *avctx)
Definition at line 336 of file vf_chromaber_vulkan.c.