1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-19 05:49:09 +02:00
FFmpeg/libavutil
Haihao Xiang a4630d479a lavu/hwcontext_vulkan: Support write on drm frame
Otherwise nothing is written into the destination when a write mapping
is requested.

For example, a vulkan frame mapped from a drm frame (which is wrapped as
a vaapi frame in the example) is used as the output of scale_vulkan
filter, it always gets a green screen without this patch.

ffmpeg -init_hw_device vaapi=va -init_hw_device vulkan=vulkan@va
-filter_hw_device vulkan -f lavfi -i testsrc=size=352x288,format=nv12
-vf
"hwupload,scale_vulkan,hwmap=derive_device=vaapi:reverse=1,format=vaapi,hwdownload,format=nv12"
-f nut - | ffplay -

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2024-06-12 01:53:18 +02:00
..
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2023-07-12 15:35:37 +02:00
2024-03-10 13:51:37 +01:00
2024-03-04 17:45:00 +01:00
2024-03-31 00:08:43 +01:00
2023-11-18 19:55:42 +01:00
2023-09-02 02:49:06 +02:00
2024-03-15 12:51:15 +01:00
2023-09-07 00:42:10 +02:00
2024-05-28 03:48:04 +02:00
2024-05-04 21:31:33 -03:00
2024-06-01 18:05:58 +03:00
2024-06-01 18:05:58 +03:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2024-03-31 00:08:43 +01:00
2024-01-16 01:34:57 +01:00
2023-09-07 00:42:10 +02:00
2024-03-31 00:08:43 +01:00
2023-09-01 23:59:10 +02:00
2023-08-08 09:46:11 +02:00
2023-08-08 09:46:11 +02:00