Support TBM_FORMAT_RGB888 58/51458/2 accepted/tizen/ivi/20160218.023005 accepted/tizen/mobile/20151112.074600 accepted/tizen/tv/20151112.074617 accepted/tizen/wearable/20151112.074627 submit/tizen/20151112.021430 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000001
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 10 Sep 2015 07:22:56 +0000 (16:22 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Tue, 10 Nov 2015 02:22:43 +0000 (11:22 +0900)
Change-Id: I49033dc5d861b2ab00f416f4f496d393a906c3a6
Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
packaging/libtbm-vigs.spec
src/tbm_bufmgr_emulator.c

index 8393794eb5dd39f31e11cc4982f88d42bd033115..d6001dc4b7175179f167626d9a900c0504ff865d 100644 (file)
@@ -1,6 +1,6 @@
 Name:           libtbm-vigs
-Version:        0.1.0
-Release:        2
+Version:        0.1.1
+Release:        1
 License:        MIT
 Summary:        Tizen Buffer Manager - emulator backend
 Group:          System/Libraries
index c158c2a1f0df13bf559577d2c7e38b9e830f42d4..7cf12aec94228f696dd5580a162f85124c6bd94d 100755 (executable)
@@ -46,6 +46,7 @@
 
 static uint32_t tbm_bufmgr_emulator_color_format_list[] =
 {
+    TBM_FORMAT_RGB888,
     TBM_FORMAT_ARGB8888,
     TBM_FORMAT_XRGB8888,
     TBM_FORMAT_NV21,
@@ -340,6 +341,12 @@ static int tbm_bufmgr_emulator_surface_get_plane_data(tbm_surface_h surface, int
     *bo_idx = 0;
 
     switch(format) {
+    case TBM_FORMAT_RGB888:
+        *size = width * height * 3;
+        *offset = 0;
+        *pitch = width * 3;
+        *bo_idx = 0;
+        return 1;
     case TBM_FORMAT_XRGB8888:
     case TBM_FORMAT_ARGB8888:
         *size = width * height * 4;
@@ -407,6 +414,9 @@ static int tbm_bufmgr_emulator_surface_get_size(tbm_surface_h surface, int width
     int bpp;
 
     switch(format) {
+    case TBM_FORMAT_RGB888:
+        bpp = 24;
+        break;
     case TBM_FORMAT_XRGB8888:
     case TBM_FORMAT_ARGB8888:
         bpp = 32;
@@ -432,6 +442,7 @@ static int tbm_bufmgr_emulator_surface_get_num_bos (tbm_format format)
     int num = 0;
 
     switch(format) {
+    case TBM_FORMAT_RGB888:
     case TBM_FORMAT_XRGB8888:
     case TBM_FORMAT_ARGB8888:
     /* NV21 : Y/CrCb 4:2:0 */