summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2016-11-09 15:07:35 +0900
committerSooChan Lim <sc1.lim@samsung.com>2016-11-09 20:21:45 +0900
commit7e417731417c41be444060051b5bcec01a1d94ee (patch)
tree7dbdc38376d4d8326ef187811c19d58692f74e0e
parentc2d76a0c3db4353ba93f80e75a80ab4853d25141 (diff)
downloadlibtbm-shm-7e417731417c41be444060051b5bcec01a1d94ee.tar.gz
libtbm-shm-7e417731417c41be444060051b5bcec01a1d94ee.tar.bz2
libtbm-shm-7e417731417c41be444060051b5bcec01a1d94ee.zip
change the supported format
four format supported. ARGB8888, XRGB8888, NV12 and YUV420 Change-Id: I699e3b94209bf7c6444b5873a56f80ad3fd88df5
-rw-r--r--src/tbm_bufmgr_shm.c16
1 files 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)