Commit 14ce1ccd authored by Haihao Xiang's avatar Haihao Xiang

glimagesink: Fix VUYA in memory:DMABuf

Sample pipeline:
gst-launch-1.0 videotestsrc ! msdkvpp ! \
video/x-raw\(memory:DMABuf\),format=VUYA ! glimagesink
parent e5d06b24
......@@ -496,6 +496,7 @@ _drm_rgba_fourcc_from_info (GstVideoInfo * info, int plane,
case GST_VIDEO_FORMAT_ABGR:
case GST_VIDEO_FORMAT_xBGR:
case GST_VIDEO_FORMAT_AYUV:
case GST_VIDEO_FORMAT_VUYA:
*out_format = GST_GL_RGBA;
return rgba_fourcc;
......@@ -637,6 +638,7 @@ _drm_direct_fourcc_from_info (GstVideoInfo * info)
return DRM_FORMAT_VYUY;
case GST_VIDEO_FORMAT_AYUV:
case GST_VIDEO_FORMAT_VUYA:
return DRM_FORMAT_AYUV;
case GST_VIDEO_FORMAT_NV12:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment