]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_avgblur_opencl.c
avcodec/Makefile: Remove obsolete dependency of eatqi dec on rl.o
[ffmpeg] / libavfilter / vf_avgblur_opencl.c
index 99ed1ca30764d1fe02ca2537cf4440739a56a1a9..3b9e56b87900ce480b307b5af7b38dc86f25f078 100644 (file)
@@ -205,10 +205,6 @@ static int avgblur_opencl_filter_frame(AVFilterLink *inlink, AVFrame *input)
             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);
@@ -223,6 +219,10 @@ static int avgblur_opencl_filter_frame(AVFilterLink *inlink, AVFrame *input)
             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);
@@ -340,7 +340,7 @@ static const AVOption avgblur_opencl_options[] = {
 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),
@@ -379,7 +379,7 @@ static const AVOption boxblur_opencl_options[] = {
 
 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),