diff options
author | Vladislav Andresov <v.andresov@partner.samsung.com> | 2018-04-13 19:41:25 +0300 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2018-07-05 11:33:01 +0900 |
commit | 0b3274865918e16c46f277ff0c866b4264cb4cc8 (patch) | |
tree | fe095a67c158054673a3ddc5566094701261e211 | |
parent | 762ebba68ed4b5e44c4314fb6d738071c53eb11c (diff) | |
download | libtbm-vigs-0b3274865918e16c46f277ff0c866b4264cb4cc8.tar.gz libtbm-vigs-0b3274865918e16c46f277ff0c866b4264cb4cc8.tar.bz2 libtbm-vigs-0b3274865918e16c46f277ff0c866b4264cb4cc8.zip |
add new supported format TBM_FORMAT_XBGR8888
Change-Id: I2db8bc4d1e71f4b9ebc14ce02d61246d36f7fa61
Signed-off-by: Vladislav Andresov <v.andresov@partner.samsung.com>
-rwxr-xr-x | src/tbm_bufmgr_vigs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tbm_bufmgr_vigs.c b/src/tbm_bufmgr_vigs.c index dba1539..e7ab5c9 100755 --- a/src/tbm_bufmgr_vigs.c +++ b/src/tbm_bufmgr_vigs.c @@ -59,6 +59,7 @@ static uint32_t tbm_bufmgr_vigs_color_format_list[] = { TBM_FORMAT_ARGB8888, TBM_FORMAT_RGBA8888, TBM_FORMAT_XRGB8888, + TBM_FORMAT_XBGR8888, TBM_FORMAT_NV21, TBM_FORMAT_NV61, TBM_FORMAT_YUV420, @@ -226,6 +227,7 @@ tbm_vigs_bufmgr_get_plane_data(tbm_backend_bufmgr_data *bufmgr_data, *bo_idx = 0; return TBM_ERROR_NONE; case TBM_FORMAT_XRGB8888: + case TBM_FORMAT_XBGR8888: case TBM_FORMAT_ARGB8888: case TBM_FORMAT_RGBA8888: *size = width * height * 4; @@ -370,6 +372,7 @@ tbm_bufmgr_vigs_alloc_bo_with_format(tbm_backend_bufmgr_data *bufmgr_data, int f ret = vigs_drm_surface_create(drm_dev, width, height, width * 3, vigs_drm_surface_bgra8888, 0, &sfc); break; case TBM_FORMAT_XRGB8888: + case TBM_FORMAT_XBGR8888: ret = vigs_drm_surface_create(drm_dev, width, height, width * 4, vigs_drm_surface_bgra8888, 0, &sfc); break; case TBM_FORMAT_ARGB8888: |