[FFmpeg-devel] [PATCH 3/3] lavfi: add deshake_opencl filter

Michael Niedermayer michael at niedermayer.cc
Sat Jul 20 12:48:18 EEST 2019


On Fri, Jul 19, 2019 at 07:19:17PM -0400, Jarek Samic wrote:
> This filter is the subject of my GSoC project.
> 
> This is a video stabilization / deshake filter (name undetermined, feel free to discuss) that uses feature
> point matching and RANSAC to determine a camera path, smooths the camera path with a gaussian filter, and
> then applies the new path to the video.
> 
> There are a number of debug features that can be turned on (viewing point matches, viewing transform
> details, viewing average kernel execution times). See the bottom of the file.
> 
> The filter is finished feature-wise and therefore ready for some review. There are a few things left for
> me to do before this can be merged, though:
> 
> * Improve performance of the OpenCL kernels (in particular: harris_response and match_descriptors)
> * See what I can do to improve the RANSAC model generation to reduce the amount of jitter in the result
> * Clean up the few remaining TODOs
> 
> Just keep that in mind.
> 
> ---
>  libavfilter/Makefile            |    2 +
>  libavfilter/allfilters.c        |    1 +
>  libavfilter/opencl/deshake.cl   |  621 ++++++++++
>  libavfilter/opencl_source.h     |    1 +
>  libavfilter/vf_deshake_opencl.c | 1992 +++++++++++++++++++++++++++++++
>  5 files changed, 2617 insertions(+)
>  create mode 100644 libavfilter/opencl/deshake.cl
>  create mode 100644 libavfilter/vf_deshake_opencl.c

breaks build
make
LD	ffmpeg_g
libavfilter/libavfilter.a(vf_deshake_opencl.o): In function `queue_frame.isra.4':
vf_deshake_opencl.c:(.text+0x335): undefined reference to `clSetKernelArg'
vf_deshake_opencl.c:(.text+0x36a): undefined reference to `clSetKernelArg'
vf_deshake_opencl.c:(.text+0x3a0): undefined reference to `clFinish'
vf_deshake_opencl.c:(.text+0x3fc): undefined reference to `clSetKernelArg'
vf_deshake_opencl.c:(.text+0x425): undefined reference to `clSetKernelArg'
vf_deshake_opencl.c:(.text+0x474): undefined reference to `clEnqueueNDRangeKernel'
...

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

Elect your leaders based on what they did after the last election, not
based on what they say before an election.

-------------- 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/20190720/7c1c933b/attachment.sig>


More information about the ffmpeg-devel mailing list