From: Jiyong Min Date: Thu, 8 Feb 2018 07:22:32 +0000 (+0900) Subject: Updates color enums for refactoring of libmm-utility X-Git-Tag: submit/tizen/20180212.075159^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65c5ad8aa2a4f0c81d04c2360d39db6852711bd7;p=platform%2Fcore%2Fmultimedia%2Fdcm-service.git Updates color enums for refactoring of libmm-utility Change-Id: Ifa10697e1d9399d6ab97b1961006c7eb9b4f0aff --- diff --git a/libdcm-util/dcm_image_codec.c b/libdcm-util/dcm_image_codec.c index 3809c52..01dd854 100755 --- a/libdcm-util/dcm_image_codec.c +++ b/libdcm-util/dcm_image_codec.c @@ -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; diff --git a/packaging/dcm-service.spec b/packaging/dcm-service.spec index e586eea..d31cca5 100755 --- a/packaging/dcm-service.spec +++ b/packaging/dcm-service.spec @@ -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