diff options
author | Wu Jianhua <jianhua.wu@intel.com> | 2022-01-01 02:09:53 +0800 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-01-05 15:16:22 +0100 |
commit | 9a194252c78c74c4455f837fd152b61904f5dc85 (patch) | |
tree | 78db5a50a5ad129265aa389efbf761bcd42768db /libavformat | |
parent | 49250b582ad109e04efd029cdb96020ef54fc2ee (diff) | |
download | ffmpeg-9a194252c78c74c4455f837fd152b61904f5dc85.tar.gz |
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>
Diffstat (limited to 'libavformat')
0 files changed, 0 insertions, 0 deletions