From: Seunghun Lee Date: Thu, 9 Nov 2023 06:18:46 +0000 (+0900) Subject: pixel_format: Add more format X-Git-Tag: accepted/tizen/unified/20231110.172201^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F301158%2F1;p=platform%2Fcore%2Fuifw%2Flibds-tizen.git pixel_format: Add more format Change-Id: Ie9fa3a4bdcbc5f59a951cd1744542eda8585253f --- diff --git a/src/shared/pixel_format.c b/src/shared/pixel_format.c index 0642d4b..d97e1b8 100644 --- a/src/shared/pixel_format.c +++ b/src/shared/pixel_format.c @@ -20,15 +20,64 @@ struct ds_tbm_format static const struct ds_tbm_format formats[] = { - { - .drm_format = DRM_FORMAT_ARGB8888, - .tbm_format = TBM_FORMAT_ARGB8888, - }, - { - .drm_format = DRM_FORMAT_XRGB8888, - .tbm_format = TBM_FORMAT_XRGB8888, - }, - /* TODO more format */ + {DRM_FORMAT_C8, TBM_FORMAT_C8}, + {DRM_FORMAT_RGB332, TBM_FORMAT_RGB332}, + {DRM_FORMAT_BGR233, TBM_FORMAT_BGR233}, + {DRM_FORMAT_XRGB4444, TBM_FORMAT_XRGB4444}, + {DRM_FORMAT_XBGR4444, TBM_FORMAT_XBGR4444}, + {DRM_FORMAT_RGBX4444, TBM_FORMAT_RGBX4444}, + {DRM_FORMAT_BGRX4444, TBM_FORMAT_BGRX4444}, + {DRM_FORMAT_ARGB4444, TBM_FORMAT_ARGB4444}, + {DRM_FORMAT_ABGR4444, TBM_FORMAT_ABGR4444}, + {DRM_FORMAT_RGBA4444, TBM_FORMAT_RGBA4444}, + {DRM_FORMAT_BGRA4444, TBM_FORMAT_BGRA4444}, + {DRM_FORMAT_XRGB1555, TBM_FORMAT_XRGB1555}, + {DRM_FORMAT_XBGR1555, TBM_FORMAT_XBGR1555}, + {DRM_FORMAT_RGBX5551, TBM_FORMAT_RGBX5551}, + {DRM_FORMAT_BGRX5551, TBM_FORMAT_BGRX5551}, + {DRM_FORMAT_ARGB1555, TBM_FORMAT_ARGB1555}, + {DRM_FORMAT_ABGR1555, TBM_FORMAT_ABGR1555}, + {DRM_FORMAT_RGBA5551, TBM_FORMAT_RGBA5551}, + {DRM_FORMAT_BGRA5551, TBM_FORMAT_BGRA5551}, + {DRM_FORMAT_RGB565, TBM_FORMAT_RGB565}, + {DRM_FORMAT_BGR565, TBM_FORMAT_BGR565}, + {DRM_FORMAT_RGB888, TBM_FORMAT_RGB888}, + {DRM_FORMAT_BGR888, TBM_FORMAT_BGR888}, + {DRM_FORMAT_XRGB8888, TBM_FORMAT_XRGB8888}, + {DRM_FORMAT_XBGR8888, TBM_FORMAT_XBGR8888}, + {DRM_FORMAT_RGBX8888, TBM_FORMAT_RGBX8888}, + {DRM_FORMAT_BGRX8888, TBM_FORMAT_BGRX8888}, + {DRM_FORMAT_ARGB8888, TBM_FORMAT_ARGB8888}, + {DRM_FORMAT_ABGR8888, TBM_FORMAT_ABGR8888}, + {DRM_FORMAT_RGBA8888, TBM_FORMAT_RGBA8888}, + {DRM_FORMAT_BGRA8888, TBM_FORMAT_BGRA8888}, + {DRM_FORMAT_XRGB2101010, TBM_FORMAT_XRGB2101010}, + {DRM_FORMAT_XBGR2101010, TBM_FORMAT_XBGR2101010}, + {DRM_FORMAT_RGBX1010102, TBM_FORMAT_RGBX1010102}, + {DRM_FORMAT_BGRX1010102, TBM_FORMAT_BGRX1010102}, + {DRM_FORMAT_ARGB2101010, TBM_FORMAT_ARGB2101010}, + {DRM_FORMAT_ABGR2101010, TBM_FORMAT_ABGR2101010}, + {DRM_FORMAT_RGBA1010102, TBM_FORMAT_RGBA1010102}, + {DRM_FORMAT_BGRA1010102, TBM_FORMAT_BGRA1010102}, + {DRM_FORMAT_YUYV, TBM_FORMAT_YUYV}, + {DRM_FORMAT_YVYU, TBM_FORMAT_YVYU}, + {DRM_FORMAT_UYVY, TBM_FORMAT_UYVY}, + {DRM_FORMAT_VYUY, TBM_FORMAT_VYUY}, + {DRM_FORMAT_AYUV, TBM_FORMAT_AYUV}, + {DRM_FORMAT_NV12, TBM_FORMAT_NV12}, + {DRM_FORMAT_NV21, TBM_FORMAT_NV21}, + {DRM_FORMAT_NV16, TBM_FORMAT_NV16}, + {DRM_FORMAT_NV61, TBM_FORMAT_NV61}, + {DRM_FORMAT_YUV410, TBM_FORMAT_YUV410}, + {DRM_FORMAT_YVU410, TBM_FORMAT_YVU410}, + {DRM_FORMAT_YUV411, TBM_FORMAT_YUV411}, + {DRM_FORMAT_YVU411, TBM_FORMAT_YVU411}, + {DRM_FORMAT_YUV420, TBM_FORMAT_YUV420}, + {DRM_FORMAT_YVU420, TBM_FORMAT_YVU420}, + {DRM_FORMAT_YUV422, TBM_FORMAT_YUV422}, + {DRM_FORMAT_YVU422, TBM_FORMAT_YVU422}, + {DRM_FORMAT_YUV444, TBM_FORMAT_YUV444}, + {DRM_FORMAT_YVU444, TBM_FORMAT_YVU444}, }; uint32_t