summaryrefslogtreecommitdiff
path: root/sys/msdk
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2018-11-16 14:36:31 +0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-11-26 16:47:17 +0000
commiteeb58f64c22b7a4a81deb66772c17762b401481e (patch)
tree7d8936f6b680af7d26a715649459ea9f44fce4f9 /sys/msdk
parent7d58424611c124445528dd02cf449b3307ab335a (diff)
downloadgstreamer-plugins-bad-eeb58f64c22b7a4a81deb66772c17762b401481e.tar.gz
msdk: create VA_FOURCC_P010 surface from dmabuf
Diffstat (limited to 'sys/msdk')
-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 354376e78..caa955195 100644
--- a/sys/msdk/gstmsdkallocator_libva.c
+++ b/sys/msdk/gstmsdkallocator_libva.c
@@ -421,6 +421,10 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context,
va_chroma = VA_RT_FORMAT_YUV422;
va_fourcc = VA_FOURCC_YUY2;
break;
+ case GST_VIDEO_FORMAT_P010_10LE:
+ va_chroma = VA_RT_FORMAT_YUV420_10;
+ va_fourcc = VA_FOURCC_P010;
+ break;
default:
goto error_unsupported_format;
}