[FFmpeg-devel] [PATCH] libavfilter/boxblur_opencl filter.
Michael Niedermayer
michael at niedermayer.cc
Wed Jun 20 01:17:49 EEST 2018
On Tue, Jun 19, 2018 at 02:43:40PM +0300, Danil Iashchenko wrote:
> lavfi: Add boxblur_opencl filter. Behaves like existing boxblur filter.
> ---
>
> Refactored to use CL_SET_KERNEL_ARG().
>
> configure | 1 +
> libavfilter/Makefile | 6 +-
> libavfilter/allfilters.c | 1 +
> libavfilter/boxblur.c | 105 +++++++++++++++
> libavfilter/boxblur.h | 66 ++++++++++
> libavfilter/vf_avgblur_opencl.c | 283 ++++++++++++++++++++++++++--------------
> libavfilter/vf_boxblur.c | 113 ++--------------
> 7 files changed, 369 insertions(+), 206 deletions(-)
> create mode 100644 libavfilter/boxblur.c
> create mode 100644 libavfilter/boxblur.h
this produces warnings during build:
CC libavfilter/vf_boxblur.o
libavfilter/vf_boxblur.c: In function ‘config_input’:
libavfilter/vf_boxblur.c:83:11: warning: unused variable ‘expr’ [-Wunused-variable]
char *expr;
^
libavfilter/vf_boxblur.c:82:33: warning: unused variable ‘res’ [-Wunused-variable]
double var_values[VARS_NB], res;
^
libavfilter/vf_boxblur.c:82:12: warning: unused variable ‘var_values’ [-Wunused-variable]
double var_values[VARS_NB], res;
^
libavfilter/vf_boxblur.c:81:13: warning: unused variable ‘ch’ [-Wunused-variable]
int cw, ch;
^
libavfilter/vf_boxblur.c:81:9: warning: unused variable ‘cw’ [-Wunused-variable]
int cw, ch;
^
also when moving code into a new file, make sure you copy the copyright
statements from the original file too
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
"You are 36 times more likely to die in a bathtub than at the hands of a
terrorist. Also, you are 2.5 times more likely to become a president and
2 times more likely to become an astronaut, than to die in a terrorist
attack." -- Thoughty2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180620/2c609d5a/attachment.sig>
More information about the ffmpeg-devel
mailing list