Home
last modified time | relevance | path

Searched refs:GLSLC (Results 1 – 6 of 6) sorted by relevance

/third_party/ffmpeg/libavfilter/
Dvf_chromaber_vulkan.c120 GLSLC(0, layout(push_constant, std430) uniform pushConstants { );
121 GLSLC(1, vec2 dist; );
122 GLSLC(0, }; );
123 GLSLC(0, );
131 GLSLC(0, void main() );
132 GLSLC(0, { );
133 GLSLC(1, ivec2 pos = ivec2(gl_GlobalInvocationID.xy); );
135 GLSLC(1, distort_rgb(imageSize(output_img[0]), pos); );
137 GLSLC(1, ivec2 size = imageSize(output_img[0]); );
138 GLSLC(1, vec2 npos = vec2(pos)/vec2(size); );
[all …]
Dvf_avgblur_vulkan.c121 GLSLC(0, #define INC(x) (ivec2(x, 0)) );
122 GLSLC(0, #define DIR(var) (var.x) );
124 GLSLC(0, void main() );
125 GLSLC(0, { );
126 GLSLC(1, ivec2 size; );
127 GLSLC(1, const ivec2 pos = ivec2(gl_GlobalInvocationID.xy); );
129 GLSLC(0, );
131 GLSLC(1, if (IS_WITHIN(pos, size)) { );
138 GLSLC(1, } );
140 GLSLC(0, } );
[all …]
Dvf_scale_vulkan.c197 GLSLC(0, void main() );
198 GLSLC(0, { );
199 GLSLC(1, ivec2 size; );
200 GLSLC(1, ivec2 pos = ivec2(gl_GlobalInvocationID.xy); );
204 GLSLC(0, );
209 GLSLC(1, if (IS_WITHIN(pos, size)) { );
217 GLSLC(1, } );
220 GLSLC(1, vec4 res = scale_bilinear(0, pos, c_r, c_o); );
223 case AV_PIX_FMT_NV12: GLSLC(1, write_nv12(res, pos); ); break;
224 case AV_PIX_FMT_YUV420P: GLSLC(1, write_420(res, pos); ); break;
[all …]
Dvf_overlay_vulkan.c152 GLSLC(0, void main() );
153 GLSLC(0, { );
154 GLSLC(1, ivec2 pos = ivec2(gl_GlobalInvocationID.xy); );
156 GLSLC(1, for (int i = 0; i < planes; i++) { );
158 GLSLC(2, overlay_alpha_opaque(i, pos); );
160 GLSLC(2, overlay_noalpha(i, pos); );
161 GLSLC(1, } );
162 GLSLC(0, } );
Dvulkan.h38 #define GLSLC(N, S) av_bprintf(&shd->src, C(N, S)) macro
41 #define GLSLD(D) GLSLC(0, ); \
43 GLSLC(0, )
Dvulkan.c903 GLSLC(0, #define IS_WITHIN(v1, v2) ((v1.x < v2.x) && (v1.y < v2.y)) ); in FN_CREATING()
904 GLSLC(0, ); in FN_CREATING()