From 7e417731417c41be444060051b5bcec01a1d94ee Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Wed, 9 Nov 2016 15:07:35 +0900 Subject: change the supported format four format supported. ARGB8888, XRGB8888, NV12 and YUV420 Change-Id: I699e3b94209bf7c6444b5873a56f80ad3fd88df5 --- src/tbm_bufmgr_shm.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/tbm_bufmgr_shm.c b/src/tbm_bufmgr_shm.c index 78f34ca..c96516e 100644 --- a/src/tbm_bufmgr_shm.c +++ b/src/tbm_bufmgr_shm.c @@ -54,7 +54,7 @@ #define DEBUG #define USE_DMAIMPORT -#define TBM_COLOR_FORMAT_COUNT 8 +#define TBM_COLOR_FORMAT_COUNT 4 #ifdef DEBUG #define LOG_TAG "TBM_BACKEND" @@ -162,15 +162,11 @@ char *STR_OPT[] = { }; uint32_t tbm_shm_color_format_list[TBM_COLOR_FORMAT_COUNT] = { - TBM_FORMAT_RGBA8888, - TBM_FORMAT_BGRA8888, - TBM_FORMAT_RGBX8888, - TBM_FORMAT_RGB888, - TBM_FORMAT_NV12, - TBM_FORMAT_NV21, - TBM_FORMAT_YUV420, - TBM_FORMAT_YVU420 -}; + TBM_FORMAT_ARGB8888, + TBM_FORMAT_XRGB8888, + TBM_FORMAT_NV12, + TBM_FORMAT_YUV420 + }; static tbm_bo_handle _shm_bo_handle(tbm_bo_shm bo_shm, int device) -- cgit v1.2.3