[FFmpeg-devel] [PATCH] lavfi: add erosion_opencl, dilation_opencl filters

Michael Niedermayer michael at niedermayer.cc
Thu Aug 9 04:49:09 EEST 2018


On Thu, Aug 09, 2018 at 03:20:53AM +0300, Danil Iashchenko wrote:
> Add erosion_opencl, dilation_opencl filters. Behave like existing erosion and dilation filters.
> 
> ---
>  configure                        |   1 +
>  libavfilter/Makefile             |   4 +
>  libavfilter/allfilters.c         |   2 +
>  libavfilter/opencl/neighbor.cl   |  87 +++++++++++
>  libavfilter/opencl_source.h      |   1 +
>  libavfilter/vf_neighbor_opencl.c | 327 +++++++++++++++++++++++++++++++++++++++
>  6 files changed, 422 insertions(+)
>  create mode 100644 libavfilter/opencl/neighbor.cl
>  create mode 100644 libavfilter/vf_neighbor_opencl.c

breaks build:
make 
LD	ffmpeg_g
/usr/bin/ld: warning: libx264.so.142, needed by //usr/lib/x86_64-linux-gnu/libavcodec.so.54, may conflict with libx264.so.146
/usr/bin/ld: warning: libvpx.so.1, needed by //usr/lib/x86_64-linux-gnu/libavcodec.so.54, may conflict with libvpx.so.4
libavfilter/libavfilter.a(vf_neighbor_opencl.o): In function `neighbor_opencl_filter_frame':
vf_neighbor_opencl.c:(.text+0x168): undefined reference to `clEnqueueCopyImage'
vf_neighbor_opencl.c:(.text+0x1c2): undefined reference to `clSetKernelArg'
vf_neighbor_opencl.c:(.text+0x1e2): undefined reference to `clSetKernelArg'
vf_neighbor_opencl.c:(.text+0x200): undefined reference to `clSetKernelArg'
vf_neighbor_opencl.c:(.text+0x222): undefined reference to `clSetKernelArg'
vf_neighbor_opencl.c:(.text+0x2a1): undefined reference to `clEnqueueNDRangeKernel'
vf_neighbor_opencl.c:(.text+0x2e4): undefined reference to `clReleaseCommandQueue'
vf_neighbor_opencl.c:(.text+0x2f2): undefined reference to `clReleaseKernel'
vf_neighbor_opencl.c:(.text+0x2fb): undefined reference to `clFinish'
vf_neighbor_opencl.c:(.text+0x360): undefined reference to `clCreateCommandQueue'
vf_neighbor_opencl.c:(.text+0x3c5): undefined reference to `clCreateKernel'
vf_neighbor_opencl.c:(.text+0x524): undefined reference to `clCreateBuffer'
vf_neighbor_opencl.c:(.text+0x56d): undefined reference to `clFinish'
libavfilter/libavfilter.a(vf_neighbor_opencl.o): In function `neighbor_opencl_uninit':
vf_neighbor_opencl.c:(.text.unlikely+0x14): undefined reference to `clReleaseKernel'
vf_neighbor_opencl.c:(.text.unlikely+0x3c): undefined reference to `clReleaseCommandQueue'
libavfilter/libavfilter.a(opencl.o): In function `ff_opencl_filter_uninit':
opencl.c:(.text+0x2a7): undefined reference to `clReleaseProgram'
libavfilter/libavfilter.a(opencl.o): In function `ff_opencl_filter_load_program':
opencl.c:(.text+0x317): undefined reference to `clCreateProgramWithSource'
opencl.c:(.text+0x339): undefined reference to `clBuildProgram'
opencl.c:(.text+0x372): undefined reference to `clReleaseProgram'
opencl.c:(.text+0x3bd): undefined reference to `clGetProgramBuildInfo'
opencl.c:(.text+0x3ef): undefined reference to `clGetProgramBuildInfo'
libavfilter/libavfilter.a(opencl.o): In function `ff_opencl_filter_work_size_from_image':
opencl.c:(.text+0x5dd): undefined reference to `clGetMemObjectInfo'
opencl.c:(.text+0x60d): undefined reference to `clGetImageInfo'
opencl.c:(.text+0x63a): undefined reference to `clGetImageInfo'
collect2: error: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

You can kill me, but you cannot change the truth.
-------------- 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/20180809/01fee89b/attachment.sig>


More information about the ffmpeg-devel mailing list