summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/libva/files/0002-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/libva/files/0002-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch')
-rw-r--r--recipes-multimedia/libva/files/0002-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-multimedia/libva/files/0002-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch b/recipes-multimedia/libva/files/0002-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch
new file mode 100644
index 0000000..a3fef96
--- /dev/null
+++ b/recipes-multimedia/libva/files/0002-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch
@@ -0,0 +1,33 @@
1From 979e90d7bc9ff6d9064e1f0378015abf40d86af2 Mon Sep 17 00:00:00 2001
2From: Lim Siew Hoon <siew.hoon.lim@intel.com>
3Date: Thu, 24 Dec 2020 18:47:56 +0800
4Subject: [PATCH 2/2] media-libva: Add export AYUV color in
5 vaExportSurfaceHandle when VA_EXPORT_SURFACE_COMPOSED_LAYERS is not set.
6
7Example:
8gst-launch-1.0 videotestsrc ! msdkvpp \
9'video/x-raw(memory:DMABuf)',format=VUYA ! glimagesink
10
11Upstream-Status: Submitted [https://github.com/intel/media-driver/pull/1115]
12
13Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
14---
15 media_driver/linux/common/ddi/media_libva.cpp | 2 ++
16 1 file changed, 2 insertions(+)
17
18diff --git a/media_driver/linux/common/ddi/media_libva.cpp b/media_driver/linux/common/ddi/media_libva.cpp
19index 778b7011..0e9f07d3 100755
20--- a/media_driver/linux/common/ddi/media_libva.cpp
21+++ b/media_driver/linux/common/ddi/media_libva.cpp
22@@ -6679,6 +6679,8 @@ static uint32_t DdiMedia_GetDrmFormatOfSeparatePlane(uint32_t fourcc, int plane)
23 return DRM_FORMAT_VYUY;
24 case VA_FOURCC_UYVY:
25 return DRM_FORMAT_UYVY;
26+ case VA_FOURCC_AYUV:
27+ return DRM_FORMAT_AYUV;
28 case VA_FOURCC_Y210:
29 return DRM_FORMAT_Y210;
30 case VA_FOURCC_Y216:
31--
322.17.1
33