Add BGRX format setting to support BGRX colorspace 23/168123/1 accepted/tizen/unified/20180125.060644 submit/tizen/20180124.095043
authorJiyong Min <jiyong.min@samsung.com>
Wed, 24 Jan 2018 08:12:50 +0000 (17:12 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Wed, 24 Jan 2018 08:14:04 +0000 (17:14 +0900)
Change-Id: I98110026ec3ce1ae7313f5f7337f9ae8ab5e30a7

gstcs/mm_util_gstcs.c
packaging/libmm-imgp-gstcs.spec

index 8290c45..1a9d7f7 100755 (executable)
@@ -444,7 +444,7 @@ _mm_round_up_input_image_widh_height(image_format_s* pFormat)
        } else if (strcmp(pFormat->colorspace, "RGB") == 0) {
                pFormat->stride = MM_UTIL_ROUND_UP_4(pFormat->width);
                pFormat->elevation = MM_UTIL_ROUND_UP_2(pFormat->height);
-       } else if (strcmp(pFormat->colorspace, "RGBA") == 0) {
+       } else if ((strcmp(pFormat->colorspace, "RGBA") == 0) || (strcmp(pFormat->colorspace, "BGRX") == 0)) {
                pFormat->stride = pFormat->width;
                pFormat->elevation = MM_UTIL_ROUND_UP_2(pFormat->height);
        }
@@ -497,7 +497,7 @@ _mm_round_up_output_image_widh_height(image_format_s* pFormat, const image_forma
                pFormat->width = pFormat->stride;
                if (input_format->height != input_format->elevation)
                        pFormat->height = pFormat->elevation;
-       } else if (strcmp(pFormat->colorspace, "RGBA") == 0) {
+       } else if ((strcmp(pFormat->colorspace, "RGBA") == 0) || (strcmp(pFormat->colorspace, "BGRX") == 0)) {
                pFormat->stride = pFormat->width;
                pFormat->elevation = MM_UTIL_ROUND_UP_2(pFormat->height);
                if (input_format->height != input_format->elevation)
index a7ecda0..1eee8a2 100755 (executable)
@@ -1,7 +1,7 @@
 #sbs-git:slp/pkgs/l/libmm-imgp-gstcs libmm-imgp-gstcs 0.1 62b62e6d483557fc5750d1b4986e9a98323f1194
 Name:       libmm-imgp-gstcs
 Summary:    Multimedia Framework Utility Library
-Version:    0.16
+Version:    0.17
 Release:    16
 Group:      System/Libraries
 License:    Apache-2.0