diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2019-03-21 15:29:15 +0800 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2019-04-09 14:26:02 +0000 |
commit | 95fdc2e98466764d5494722a1a7004dec7b7f640 (patch) | |
tree | 1952745c3a860ac0093ebed06d67e127ec56a5cb /sys | |
parent | 53fd4a15645f75efd3ac0ad421d2a13a71fa16a1 (diff) | |
download | gstreamer-plugins-bad-95fdc2e98466764d5494722a1a7004dec7b7f640.tar.gz |
msdk: map GST_VIDEO_FORMAT_BGR10A2_LE to VA_FOURCC_A2R10G10B10
Diffstat (limited to 'sys')
-rw-r--r-- | sys/msdk/gstmsdkallocator_libva.c | 5 |
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; } |