Updates color enums for refactoring of libmm-utility 67/169667/4
authorJiyong Min <jiyong.min@samsung.com>
Thu, 8 Feb 2018 07:22:32 +0000 (16:22 +0900)
committerMinje ahn <minje.ahn@samsung.com>
Thu, 8 Feb 2018 08:26:11 +0000 (08:26 +0000)
Change-Id: Ifa10697e1d9399d6ab97b1961006c7eb9b4f0aff

libdcm-util/dcm_image_codec.c
packaging/dcm-service.spec

index 3809c52c4f7adfbd0c88d3621f82358c1a9077be..01dd85481c7a7a8b77ba9e7e94161a986004a942 100755 (executable)
@@ -70,7 +70,7 @@ int dcm_decode_image(const char *file_path, const int orientation, const gboolea
        mm_util_magick_rotate_type angle = MM_UTIL_ROTATE_NUM;
        mm_util_image_h resize_dst_handle = NULL;
        mm_util_image_h dst_handle = NULL;
-       mm_util_magick_format format = MM_UTIL_IMG_FMT_NUM;
+       mm_util_color_format_e format = MM_UTIL_COLOR_NUM;
 
        dcm_debug_fenter();
 
@@ -101,7 +101,7 @@ int dcm_decode_image(const char *file_path, const int orientation, const gboolea
 
                if (__dcm_get_optimized_wh(width, height, &resized_width, &resized_height)) {
                        /* Resize the big size image to enhance performance for big size image */
-                       ret = mm_util_resize_P_B(file_path, resized_width, resized_height, MM_UTIL_IMG_FMT_RGBA8888, &resize_dst_handle);
+                       ret = mm_util_resize_P_B(file_path, resized_width, resized_height, MM_UTIL_COLOR_RGBA, &resize_dst_handle);
                        if (ret != MM_UTIL_ERROR_NONE) {
                                dcm_error("Failed to resize image!err: %d", ret);
                                ret = MS_MEDIA_ERR_INTERNAL;
@@ -115,7 +115,7 @@ int dcm_decode_image(const char *file_path, const int orientation, const gboolea
                                goto ERROR;
                        }
                } else {
-                       ret = mm_util_rotate_P_B(file_path, angle, MM_UTIL_IMG_FMT_RGBA8888, &dst_handle);
+                       ret = mm_util_rotate_P_B(file_path, angle, MM_UTIL_COLOR_RGBA, &dst_handle);
                        if (ret != MM_UTIL_ERROR_NONE) {
                                dcm_error("Failed to rotate image buffer! err: %d", ret);
                                ret = MS_MEDIA_ERR_INTERNAL;
@@ -123,7 +123,7 @@ int dcm_decode_image(const char *file_path, const int orientation, const gboolea
                        }
                }
        } else {
-               ret = mm_util_rotate_P_B(file_path, angle, MM_UTIL_IMG_FMT_RGBA8888, &dst_handle);
+               ret = mm_util_rotate_P_B(file_path, angle, MM_UTIL_COLOR_RGBA, &dst_handle);
                if (ret != MM_UTIL_ERROR_NONE) {
                        dcm_error("Failed to rotate image buffer! err: %d", ret);
                        ret = MS_MEDIA_ERR_INTERNAL;
index e586eeabc5b2fe4575c5ad63667687d9b07fe86b..d31cca56748ea954e41d61eac102f9f2b05d6e3d 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       dcm-service
 Summary:    A media DCM(Digital Contents Management) Service
-Version:    0.1.12
+Version:    0.1.13
 Release:    0
 Group:      Multimedia/Service
 License:    Apache-2.0