summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Min <jiyong.min@samsung.com>2018-01-24 17:12:50 +0900
committerJiyong Min <jiyong.min@samsung.com>2018-01-24 17:14:04 +0900
commitb9692930b6ef77fede61e8e4f109be3531e59122 (patch)
treeacfa47e8e1e57476cd89f12652e0d171d695d61c
parenta18a253ac0841aa285aa71d24063eb93452ec981 (diff)
downloadlibmm-imgp-gstcs-submit/tizen/20180124.095043.tar.gz
libmm-imgp-gstcs-submit/tizen/20180124.095043.tar.bz2
libmm-imgp-gstcs-submit/tizen/20180124.095043.zip
Add BGRX format setting to support BGRX colorspacesubmit/tizen/20180124.095043accepted/tizen/unified/20180125.060644
Change-Id: I98110026ec3ce1ae7313f5f7337f9ae8ab5e30a7
-rwxr-xr-xgstcs/mm_util_gstcs.c4
-rwxr-xr-xpackaging/libmm-imgp-gstcs.spec2
2 files changed, 3 insertions, 3 deletions
diff --git a/gstcs/mm_util_gstcs.c b/gstcs/mm_util_gstcs.c
index 8290c45..1a9d7f7 100755
--- a/gstcs/mm_util_gstcs.c
+++ b/gstcs/mm_util_gstcs.c
@@ -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)
diff --git a/packaging/libmm-imgp-gstcs.spec b/packaging/libmm-imgp-gstcs.spec
index a7ecda0..1eee8a2 100755
--- a/packaging/libmm-imgp-gstcs.spec
+++ b/packaging/libmm-imgp-gstcs.spec
@@ -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