1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavfilter
Wu Jianhua 9a194252c7 avfilter: add a blend_vulkan filter
This commit adds a blend_vulkan filter and a normal blend mode, and
reserves support for introducing the blend modes in the future.

Use the commands below to test: (href: https://trac.ffmpeg.org/wiki/Blend)
I. make an image for test
ffmpeg -f lavfi -i color=s=256x256,geq=r='H-1-Y':g='H-1-Y':b='H-1-Y' -frames 1 \
-y -pix_fmt yuv420p test.jpg

II. blend in sw
ffmpeg -i test.jpg -vf "split[a][b];[b]transpose[b];[a][b]blend=all_mode=normal,\
pseudocolor=preset=turbo" -y normal_sw.jpg

III. blend in vulkan
ffmpeg -init_hw_device vulkan -i test.jpg -vf "split[a][b];[b]transpose[b];\
[a]hwupload[a];[b]hwupload[b];[a][b]blend_vulkan=all_mode=normal,hwdownload,\
format=yuv420p,pseudocolor=preset=turbo" -y normal_vulkan.jpg

Signed-off-by: Wu Jianhua <jianhua.wu@intel.com>
2022-01-05 15:16:22 +01:00
..
2021-04-19 14:34:10 +02:00
2021-11-11 21:54:46 +01:00
2021-12-25 11:32:41 +01:00
2021-01-17 12:06:01 +01:00
2021-01-17 12:06:01 +01:00
2021-09-30 01:22:48 +02:00
2021-07-22 14:47:57 +02:00
2021-09-19 04:26:00 +02:00
2022-01-05 15:16:22 +01:00
2021-04-11 23:18:20 +08:00
2021-10-23 23:53:51 +02:00
2021-11-11 21:54:46 +01:00
2021-11-11 21:54:46 +01:00
2021-10-10 12:04:30 +02:00