wayland: Add more DRM formats

Add DRM format equivalents that we were missing compared
to our caps.
This commit is contained in:
olivier.crete@collabora.com 2019-08-06 21:08:12 +01:00 committed by Nicolas Dufresne
parent b393b650ab
commit fd9dfb9d0c

View file

@ -84,8 +84,20 @@ static const wl_DmabufVideoFormat dmabuf_formats[] = {
{DRM_FORMAT_RGB888, GST_VIDEO_FORMAT_BGR},
{DRM_FORMAT_BGR888, GST_VIDEO_FORMAT_RGB},
{DRM_FORMAT_RGB565, GST_VIDEO_FORMAT_RGB16},
{DRM_FORMAT_YUYV, GST_VIDEO_FORMAT_YUY2},
{DRM_FORMAT_NV12, GST_VIDEO_FORMAT_NV12},
{DRM_FORMAT_YVYU, GST_VIDEO_FORMAT_YVYU},
{DRM_FORMAT_UYVY, GST_VIDEO_FORMAT_UYVY},
{DRM_FORMAT_AYUV, GST_VIDEO_FORMAT_AYUV},
{DRM_FORMAT_NV21, GST_VIDEO_FORMAT_NV21},
{DRM_FORMAT_NV16, GST_VIDEO_FORMAT_NV16},
{DRM_FORMAT_YUV410, GST_VIDEO_FORMAT_YUV9},
{DRM_FORMAT_YVU410, GST_VIDEO_FORMAT_YVU9},
{DRM_FORMAT_YUV411, GST_VIDEO_FORMAT_Y41B},
{DRM_FORMAT_YUV420, GST_VIDEO_FORMAT_I420},
{DRM_FORMAT_YVU420, GST_VIDEO_FORMAT_YV12},
{DRM_FORMAT_YUV422, GST_VIDEO_FORMAT_Y42B},
{DRM_FORMAT_YUV444, GST_VIDEO_FORMAT_v308},
};
enum wl_shm_format