[FFmpeg-devel] [PATCH] lavfi: Add OpenCL avgblur filter

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Mar 16 17:06:07 EET 2018


2018-03-16 8:33 GMT+01:00, dylanf123 at gmail.com <dylanf123 at gmail.com>:
> From: drfer3 <drfer3 at student.monash.edu>

> --- /dev/null
> +++ b/libavfilter/opencl/avgblur.cl
> @@ -0,0 +1,60 @@
> +/*
> + * This file is part of FFmpeg.

Please add your name.

> +    for (int xx = max(0,loc.x-rad); xx < min(loc.x+rad+1,size.x); xx++)
> +    {
> +        count++;
> +        acc += read_imagef(src, sampler, (int2)(xx, loc.y));
> +    }

Usual style is:
for ( ; ; ) {
  ...
}
which is also what you use for if().

Thank you, Carl Eugen


More information about the ffmpeg-devel mailing list