summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2019-01-02 19:48:34 +0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-02-19 11:04:47 +0000
commitac9423facb28b140fdd650e65d32b140db940ed8 (patch)
treebde92ccfb8bb90bfb8163cf505bb87b007ea1704
parentea6789fec85c5f6951cba1063bb0ab8c0adbbedd (diff)
msdk: map GST_VIDEO_FORMAT_UYVY to VA_FOURCC_UYVY
-rw-r--r--sys/msdk/gstmsdkallocator_libva.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/msdk/gstmsdkallocator_libva.c b/sys/msdk/gstmsdkallocator_libva.c
index e5200a3fe..44fd578b7 100644
--- a/sys/msdk/gstmsdkallocator_libva.c
+++ b/sys/msdk/gstmsdkallocator_libva.c
@@ -427,6 +427,10 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context,
va_chroma = VA_RT_FORMAT_YUV420_10;
va_fourcc = VA_FOURCC_P010;
break;
+ case GST_VIDEO_FORMAT_UYVY:
+ va_chroma = VA_RT_FORMAT_YUV422;
+ va_fourcc = VA_FOURCC_UYVY;
+ break;
default:
goto error_unsupported_format;
}