[FFmpeg-devel] [PATCH] lavfi: add lumakey_opencl filter

James Almer jamrial at gmail.com
Wed Jul 25 16:50:43 EEST 2018


On 7/25/2018 9:13 AM, Danil Iashchenko wrote:
> Add lumakey_opencl filter. Behaves like existing lumakey filter.

Isn't it possible to keep each of these new OpenCL filters as an
optional codepath within the C version, using an AVOption like "opencl"
or "hwaccel" to toggle one or another? Or maybe autodetected depending
on the filter chain and/or input pix_fmt?

I'm asking because it's getting too crowded. We also have some vaapi and
qsv duplicate filters, and once we start committing filters using the
upcoming Vulkan hwcontext the same way, we may also end up introducing
yet another hardware specific variant for each of these.

In libavcodec the hwaccels are seamlessly integrated into supported
decoders. This has been favored over separate full stream hardware
decoders where possible for the above reasons. It would be ideal to
achieve the same with libavfilter.


More information about the ffmpeg-devel mailing list