[FFmpeg-devel] [PATCH] libavfilter/boxblur_opencl filter.
Michael Niedermayer
michael at niedermayer.cc
Sun Jun 10 02:51:22 EEST 2018
On Sat, Jun 09, 2018 at 02:37:51AM +0300, Danil Iashchenko wrote:
> ---
>
> Thanks, fixed.
>
> libavfilter/Makefile | 4 +-
> libavfilter/allfilters.c | 1 +
> libavfilter/boxblur.c | 105 +++++++++++++
> libavfilter/boxblur.h | 66 +++++++++
> libavfilter/vf_avgblur_opencl.c | 320 +++++++++++++++++++++++++++-------------
> libavfilter/vf_boxblur.c | 113 ++------------
> 6 files changed, 404 insertions(+), 205 deletions(-)
> create mode 100644 libavfilter/boxblur.c
> create mode 100644 libavfilter/boxblur.h
this breaks build:
make distclean ; ./configure && make
....
libavfilter/libavfilter.a(vf_avgblur_opencl.o): In function `avgblur_opencl_init':
libavfilter/vf_avgblur_opencl.c:64: undefined reference to `clCreateCommandQueue'
libavfilter/vf_avgblur_opencl.c:74: undefined reference to `clCreateKernel'
libavfilter/vf_avgblur_opencl.c:81: undefined reference to `clCreateKernel'
libavfilter/libavfilter.a(vf_avgblur_opencl.o): In function `avgblur_opencl_filter_frame':
libavfilter/vf_avgblur_opencl.c:254: undefined reference to `clEnqueueNDRangeKernel'
libavfilter/vf_avgblur_opencl.c:263: undefined reference to `clFinish'
libavfilter/vf_avgblur_opencl.c:269: undefined reference to `clSetKernelArg'
libavfilter/vf_avgblur_opencl.c:277: undefined reference to `clSetKernelArg'
libavfilter/vf_avgblur_opencl.c:296: undefined reference to `clEnqueueNDRangeKernel'
libavfilter/vf_avgblur_opencl.c:223: undefined reference to `clSetKernelArg'
libavfilter/vf_avgblur_opencl.c:230: undefined reference to `clSetKernelArg'
libavfilter/libavfilter.a(vf_avgblur_opencl.o): In function `avgblur_opencl_init':
libavfilter/vf_avgblur_opencl.c:93: undefined reference to `clReleaseCommandQueue'
libavfilter/vf_avgblur_opencl.c:95: undefined reference to `clReleaseKernel'
libavfilter/vf_avgblur_opencl.c:97: undefined reference to `clReleaseKernel'
libavfilter/libavfilter.a(vf_avgblur_opencl.o): In function `avgblur_opencl_filter_frame':
libavfilter/vf_avgblur_opencl.c:330: undefined reference to `clFinish'
libavfilter/vf_avgblur_opencl.c:239: undefined reference to `clSetKernelArg'
libavfilter/vf_avgblur_opencl.c:285: undefined reference to `clSetKernelArg'
libavfilter/vf_avgblur_opencl.c:241: undefined reference to `clSetKernelArg'
libavfilter/vf_avgblur_opencl.c:287: undefined reference to `clSetKernelArg'
libavfilter/vf_avgblur_opencl.c:308: undefined reference to `clFinish'
libavfilter/libavfilter.a(vf_avgblur_opencl.o): In function `avgblur_opencl_uninit':
libavfilter/vf_avgblur_opencl.c:344: undefined reference to `clReleaseKernel'
libavfilter/vf_avgblur_opencl.c:351: undefined reference to `clReleaseKernel'
libavfilter/vf_avgblur_opencl.c:358: undefined reference to `clReleaseCommandQueue'
libavfilter/libavfilter.a(opencl.o): In function `ff_opencl_filter_uninit':
libavfilter/opencl.c:162: undefined reference to `clReleaseProgram'
libavfilter/libavfilter.a(opencl.o): In function `ff_opencl_filter_load_program':
libavfilter/opencl.c:178: undefined reference to `clCreateProgramWithSource'
libavfilter/opencl.c:186: undefined reference to `clBuildProgram'
libavfilter/opencl.c:211: undefined reference to `clReleaseProgram'
libavfilter/opencl.c:195: undefined reference to `clGetProgramBuildInfo'
libavfilter/opencl.c:200: undefined reference to `clGetProgramBuildInfo'
libavfilter/libavfilter.a(opencl.o): In function `ff_opencl_filter_work_size_from_image':
libavfilter/opencl.c:301: undefined reference to `clGetMemObjectInfo'
libavfilter/opencl.c:314: undefined reference to `clGetImageInfo'
libavfilter/opencl.c:322: undefined reference to `clGetImageInfo'
collect2: error: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1
[...]
--
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/20180610/cacb2186/attachment.sig>
More information about the ffmpeg-devel
mailing list