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.5
f)*2.0
f; )
C(1,
const vec2 o = p * (dist - 1.0
f); )
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.5
f)*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.0
f) + 0.5
f); )
C(1, imageStore(output_img[idx],
pos, res); )
}
Definition at line 44 of file vf_chromaber_vulkan.c.
Referenced by init_filter().
◆ chromaber_vulkan_options
const AVOption chromaber_vulkan_options[] |
|
static |
◆ chromaber_vulkan_inputs
◆ chromaber_vulkan_outputs
◆ ff_vf_chromaber_vulkan
Initial value:= {
.name = "chromaber_vulkan",
.priv_class = &chromaber_vulkan_class,
}
Definition at line 341 of file vf_chromaber_vulkan.c.