radius_y = 0;
}
- av_log(avctx, AV_LOG_DEBUG, "Run kernel on plane %d "
- "(%"SIZE_SPECIFIER"x%"SIZE_SPECIFIER").\n",
- p, global_work[0], global_work[1]);
-
for (i = 0; i < ctx->power[p]; i++) {
CL_SET_KERNEL_ARG(ctx->kernel_horiz, 0, cl_mem, &inter);
CL_SET_KERNEL_ARG(ctx->kernel_horiz, 1, cl_mem, i == 0 ? &src : &dst);
if (err < 0)
goto fail;
+ av_log(avctx, AV_LOG_DEBUG, "Run kernel on plane %d "
+ "(%"SIZE_SPECIFIER"x%"SIZE_SPECIFIER").\n",
+ p, global_work[0], global_work[1]);
+
cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel_horiz, 2, NULL,
global_work, NULL,
0, NULL, NULL);
AVFILTER_DEFINE_CLASS(avgblur_opencl);
-AVFilter ff_vf_avgblur_opencl = {
+const AVFilter ff_vf_avgblur_opencl = {
.name = "avgblur_opencl",
.description = NULL_IF_CONFIG_SMALL("Apply average blur filter"),
.priv_size = sizeof(AverageBlurOpenCLContext),
AVFILTER_DEFINE_CLASS(boxblur_opencl);
-AVFilter ff_vf_boxblur_opencl = {
+const AVFilter ff_vf_boxblur_opencl = {
.name = "boxblur_opencl",
.description = NULL_IF_CONFIG_SMALL("Apply boxblur filter to input video"),
.priv_size = sizeof(AverageBlurOpenCLContext),