Fix bpp of 4:2:2 YUV format 40/296640/2 accepted/tizen/unified/20230803.174814
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 2 Aug 2023 10:07:17 +0000 (19:07 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 2 Aug 2023 10:10:04 +0000 (19:10 +0900)
YUYV, YVYU, UYVY, VYUY format each four bytes is two pixels

Change-Id: Ie125734677512eb26f01063ed61b92f51ff47646

src/tbm_surface_internal.c

index b4a27e2..54bad1c 100644 (file)
@@ -551,10 +551,14 @@ _tbm_surface_internal_get_bpp(tbm_format format)
        case TBM_FORMAT_ABGR2101010:
        case TBM_FORMAT_RGBA1010102:
        case TBM_FORMAT_BGRA1010102:
+               bpp = 32;
+               break;
        case TBM_FORMAT_YUYV:
        case TBM_FORMAT_YVYU:
        case TBM_FORMAT_UYVY:
        case TBM_FORMAT_VYUY:
+               bpp = 16;
+               break;
        case TBM_FORMAT_AYUV:
                bpp = 32;
                break;