Replace mm-utility function to mm_image_xxx() 61/201161/1 accepted/tizen/unified/20190311.220554 submit/tizen/20190311.013617
authorjiyong.min <jiyong.min@samsung.com>
Mon, 11 Mar 2019 04:47:42 +0000 (13:47 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Mon, 11 Mar 2019 04:47:42 +0000 (13:47 +0900)
Change-Id: Ib2b619a1d1c5eb090d48db5589918bea2149a657

src/common/media-svc-util.c

index ce3239e..0923f9f 100755 (executable)
@@ -1911,7 +1911,7 @@ int _media_svc_create_thumbnail(const char *path, char *thumb_path, int max_leng
 
                        media_svc_debug("Origin:W[%d] H[%d] Proper:W[%d] H[%d]", origin_w, origin_h, thumb_w, thumb_h);
 
-                       ret = mm_util_create_handle(&img, (unsigned char *)frame, origin_w, origin_h, size, MM_UTIL_COLOR_RGB24);
+                       ret = mm_image_create_image(origin_w, origin_h, MM_UTIL_COLOR_RGB24, (unsigned char *)frame, size, &img);
                        if (origin_w > thumb_w || origin_h > thumb_h) {
                                if (rot_type != MM_UTIL_ROTATE_0) {
                                        ret = mm_util_resize_B_B(img, thumb_w, thumb_h, &resize_img);
@@ -1930,8 +1930,8 @@ int _media_svc_create_thumbnail(const char *path, char *thumb_path, int max_leng
                }
 
        ERROR:
-               mm_util_destroy_handle(img);
-               mm_util_destroy_handle(resize_img);
+               mm_image_destroy_image(img);
+               mm_image_destroy_image(resize_img);
                mm_file_destroy_content_attrs(content);
 
                if (ret != MS_MEDIA_ERR_NONE)