summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2016-11-09 15:06:38 +0900
committerSooChan Lim <sc1.lim@samsung.com>2016-11-09 20:22:09 +0900
commitd4e9824525165dfb01d99fe70cbccaa8099b7618 (patch)
tree3df195fddf0544906bf71d17e22b2af1fe34100f
parent072c40b13ddd23d6c49ccb106a0d49f2a9c37311 (diff)
downloadlibtbm-dumb-d4e9824525165dfb01d99fe70cbccaa8099b7618.tar.gz
libtbm-dumb-d4e9824525165dfb01d99fe70cbccaa8099b7618.tar.bz2
libtbm-dumb-d4e9824525165dfb01d99fe70cbccaa8099b7618.zip
change the supported format
four format supported. ARGB8888, XRGB8888, NV12 and YUV420 Change-Id: I0ab074bdfb7b3842328fabc851cf7bb28317a79c
-rw-r--r--src/tbm_bufmgr_dumb.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/tbm_bufmgr_dumb.c b/src/tbm_bufmgr_dumb.c
index 7c7e872..a0974cd 100644
--- a/src/tbm_bufmgr_dumb.c
+++ b/src/tbm_bufmgr_dumb.c
@@ -54,7 +54,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define DEBUG
#define USE_DMAIMPORT
-#define TBM_COLOR_FORMAT_COUNT 8
+#define TBM_COLOR_FORMAT_COUNT 4
#ifdef DEBUG
#define LOG_TAG "TBM_BACKEND"
@@ -216,14 +216,13 @@ char *STR_OPT[]=
};
-uint32_t tbm_dumb_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 };
+uint32_t tbm_dumb_color_format_list[TBM_COLOR_FORMAT_COUNT] = {
+ TBM_FORMAT_ARGB8888,
+ TBM_FORMAT_XRGB8888,
+ TBM_FORMAT_NV12,
+ TBM_FORMAT_YUV420
+ };
+
static int
_tbm_dumb_open_drm()