Updates color enums for refactoring of libmm-utility 70/169670/2 accepted/tizen/unified/20180214.144551 submit/tizen/20180212.075159
authorJiyong Min <jiyong.min@samsung.com>
Thu, 8 Feb 2018 07:26:32 +0000 (16:26 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Thu, 8 Feb 2018 07:55:13 +0000 (16:55 +0900)
Change-Id: I4d6dcbe46ece71643714d8a28293cc2e2efbd619

packaging/capi-media-thumbnail-util.spec
src/thumbnail_util.c

index 4612aa8..279d5f2 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-thumbnail-util
 Summary:    A media thumbnail util library in Tizen Native API
-Version: 0.1.12
+Version: 0.1.13
 Release:    1
 Group:      Multimedia/API
 License:    Apache-2.0
index e2c5791..bf8efce 100755 (executable)
@@ -351,7 +351,7 @@ int _thumbnail_util_extract_video(thumbnail_data_s *thumb)
                        goto ERROR;
                }
 
-               mm_util_create_handle(&img, frame, width, height, size, MM_UTIL_IMG_FMT_RGB888);
+               mm_util_create_handle(&img, frame, width, height, size, MM_UTIL_COLOR_RGB24);
 
                if (thumb->extract_type == THUMBNAIL_UTIL_FILE) {
                        ret = mm_util_resize_B_P(img, thumb->width, thumb->height, thumb->thumbnail_path);
@@ -364,7 +364,7 @@ int _thumbnail_util_extract_video(thumbnail_data_s *thumb)
                        unsigned int res_width = 0;
                        unsigned int res_height = 0;
                        size_t res_buf_size = 0;
-                       mm_util_magick_format res_format = MM_UTIL_IMG_FMT_NUM;
+                       mm_util_color_format_e res_format = MM_UTIL_COLOR_NUM;
 
                        ret = mm_util_resize_B_B(img, thumb->width, thumb->height, &res_img);
                        mm_util_destroy_handle(img);
@@ -413,9 +413,9 @@ int _thumbnail_util_extract(thumbnail_data_s *thumb)
                        unsigned int width = 0;
                        unsigned int height = 0;
                        size_t buf_size = 0;
-                       mm_util_magick_format format = MM_UTIL_IMG_FMT_NUM;
+                       mm_util_color_format_e format = MM_UTIL_COLOR_NUM;
 
-                       ret = mm_util_resize_P_B(thumb->path, thumb->width, thumb->height, MM_UTIL_IMG_FMT_BGRA8888, &res_img);
+                       ret = mm_util_resize_P_B(thumb->path, thumb->width, thumb->height, MM_UTIL_COLOR_BGRA, &res_img);
                        if (ret != MM_UTIL_ERROR_NONE)
                                return THUMBNAIL_UTIL_ERROR_INVALID_OPERATION;