mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
waylandsink/wlvideoformat: add mappings for many common formats
This commit is contained in:
parent
f800e2b4fa
commit
873671f2b6
1 changed files with 31 additions and 0 deletions
|
@ -40,10 +40,41 @@ static const wl_VideoFormat formats[] = {
|
|||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
{WL_SHM_FORMAT_XRGB8888, GST_VIDEO_FORMAT_xRGB},
|
||||
{WL_SHM_FORMAT_ARGB8888, GST_VIDEO_FORMAT_ARGB},
|
||||
{WL_SHM_FORMAT_XBGR8888, GST_VIDEO_FORMAT_xBGR},
|
||||
{WL_SHM_FORMAT_RGBX8888, GST_VIDEO_FORMAT_RGBx},
|
||||
{WL_SHM_FORMAT_BGRX8888, GST_VIDEO_FORMAT_BGRx},
|
||||
{WL_SHM_FORMAT_ABGR8888, GST_VIDEO_FORMAT_ABGR},
|
||||
{WL_SHM_FORMAT_RGBA8888, GST_VIDEO_FORMAT_RGBA},
|
||||
{WL_SHM_FORMAT_BGRA8888, GST_VIDEO_FORMAT_BGRA},
|
||||
#else
|
||||
{WL_SHM_FORMAT_XRGB8888, GST_VIDEO_FORMAT_BGRx},
|
||||
{WL_SHM_FORMAT_ARGB8888, GST_VIDEO_FORMAT_BGRA},
|
||||
{WL_SHM_FORMAT_XBGR8888, GST_VIDEO_FORMAT_RGBx},
|
||||
{WL_SHM_FORMAT_RGBX8888, GST_VIDEO_FORMAT_xBGR},
|
||||
{WL_SHM_FORMAT_BGRX8888, GST_VIDEO_FORMAT_xRGB},
|
||||
{WL_SHM_FORMAT_ABGR8888, GST_VIDEO_FORMAT_RGBA},
|
||||
{WL_SHM_FORMAT_RGBA8888, GST_VIDEO_FORMAT_ABGR},
|
||||
{WL_SHM_FORMAT_BGRA8888, GST_VIDEO_FORMAT_ARGB},
|
||||
#endif
|
||||
{WL_SHM_FORMAT_RGB888, GST_VIDEO_FORMAT_RGB},
|
||||
{WL_SHM_FORMAT_BGR888, GST_VIDEO_FORMAT_BGR},
|
||||
{WL_SHM_FORMAT_RGB565, GST_VIDEO_FORMAT_RGB16},
|
||||
{WL_SHM_FORMAT_BGR565, GST_VIDEO_FORMAT_BGR16},
|
||||
|
||||
{WL_SHM_FORMAT_YUYV, GST_VIDEO_FORMAT_YUY2},
|
||||
{WL_SHM_FORMAT_YVYU, GST_VIDEO_FORMAT_YVYU},
|
||||
{WL_SHM_FORMAT_UYVY, GST_VIDEO_FORMAT_UYVY},
|
||||
{WL_SHM_FORMAT_AYUV, GST_VIDEO_FORMAT_AYUV},
|
||||
{WL_SHM_FORMAT_NV12, GST_VIDEO_FORMAT_NV12},
|
||||
{WL_SHM_FORMAT_NV21, GST_VIDEO_FORMAT_NV21},
|
||||
{WL_SHM_FORMAT_NV16, GST_VIDEO_FORMAT_NV16},
|
||||
{WL_SHM_FORMAT_YUV410, GST_VIDEO_FORMAT_YUV9},
|
||||
{WL_SHM_FORMAT_YVU410, GST_VIDEO_FORMAT_YVU9},
|
||||
{WL_SHM_FORMAT_YUV411, GST_VIDEO_FORMAT_Y41B},
|
||||
{WL_SHM_FORMAT_YUV420, GST_VIDEO_FORMAT_I420},
|
||||
{WL_SHM_FORMAT_YVU420, GST_VIDEO_FORMAT_YV12},
|
||||
{WL_SHM_FORMAT_YUV422, GST_VIDEO_FORMAT_Y42B},
|
||||
{WL_SHM_FORMAT_YUV444, GST_VIDEO_FORMAT_v308},
|
||||
};
|
||||
|
||||
enum wl_shm_format
|
||||
|
|
Loading…
Reference in a new issue