diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2019-01-02 19:48:34 +0800 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2019-02-19 11:04:47 +0000 |
commit | ac9423facb28b140fdd650e65d32b140db940ed8 (patch) | |
tree | bde92ccfb8bb90bfb8163cf505bb87b007ea1704 | |
parent | ea6789fec85c5f6951cba1063bb0ab8c0adbbedd (diff) |
msdk: map GST_VIDEO_FORMAT_UYVY to VA_FOURCC_UYVY
-rw-r--r-- | sys/msdk/gstmsdkallocator_libva.c | 4 |
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; } |