summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2019-03-21 15:29:15 +0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-04-09 14:26:02 +0000
commit95fdc2e98466764d5494722a1a7004dec7b7f640 (patch)
tree1952745c3a860ac0093ebed06d67e127ec56a5cb
parent53fd4a15645f75efd3ac0ad421d2a13a71fa16a1 (diff)
downloadgstreamer-plugins-bad-95fdc2e98466764d5494722a1a7004dec7b7f640.tar.gz
msdk: map GST_VIDEO_FORMAT_BGR10A2_LE to VA_FOURCC_A2R10G10B10
-rw-r--r--sys/msdk/gstmsdkallocator_libva.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/msdk/gstmsdkallocator_libva.c b/sys/msdk/gstmsdkallocator_libva.c
index 7208d9387..994c1be85 100644
--- a/sys/msdk/gstmsdkallocator_libva.c
+++ b/sys/msdk/gstmsdkallocator_libva.c
@@ -475,7 +475,10 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context,
va_chroma = VA_RT_FORMAT_YUV444;
va_fourcc = VA_FOURCC_AYUV;
break;
-
+ case GST_VIDEO_FORMAT_BGR10A2_LE:
+ va_chroma = VA_RT_FORMAT_RGB32_10;
+ va_fourcc = VA_FOURCC_A2R10G10B10;
+ break;
default:
goto error_unsupported_format;
}