summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2019-02-25 12:29:25 +0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-02-27 15:22:43 +0000
commita09cff84ce281e426f6b7201c2434370fc697c09 (patch)
tree2be3620aadbd7613dbdaf26303d079895b460d67
parent197f7f569ba1d301d85a1400b1155995af1fa21f (diff)
msdk: map GST_VIDEO_FORMAT_RGB16 to VA_FOURCC_RGB565
-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 7d237abd1..db3ab73dc 100644
--- a/sys/msdk/gstmsdkallocator_libva.c
+++ b/sys/msdk/gstmsdkallocator_libva.c
@@ -448,6 +448,10 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context,
va_chroma = VA_RT_FORMAT_YUV422;
va_fourcc = VA_FOURCC_UYVY;
break;
+ case GST_VIDEO_FORMAT_RGB16:
+ va_chroma = VA_RT_FORMAT_RGB16;
+ va_fourcc = VA_FOURCC_RGB565;
+ break;
default:
goto error_unsupported_format;
}