[FFmpeg-devel] [PATCH 3/3] lavfi: add a Vulkan avgblur filter

Paul B Mahol onemda at gmail.com
Fri Mar 30 10:55:26 EEST 2018


On 3/30/18, Rostislav Pehlivanov <atomnuker at gmail.com> wrote:
> This commit adds an average blur Vulkan filter which functions
> exactly the same as avgblur but on Vulkan surfaces.
>
> Currently contains a workaround that will be removed for the actual,
> non-RFC version.
>
> It implements a clever way of minimizing texel fetches by storing
> all texels needed to filter and entire wavefront's worth of
> workgroups in a shared cache, and then averaging over the area needed.
>
> Currently, it lacks the ability to avoid edges of images and will mix
> 0s around the edges of planes. This will be fixed for the non-RFC
> version.
>
> Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
> ---
>  configure                       |   1 +
>  libavfilter/Makefile            |   1 +
>  libavfilter/allfilters.c        |   1 +
>  libavfilter/vf_avgblur_vulkan.c | 353
> ++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 356 insertions(+)
>  create mode 100644 libavfilter/vf_avgblur_vulkan.c
>

Why, why, why this filter again?

Why not gblur filter?


More information about the ffmpeg-devel mailing list