Comment out deprecated image util API 33/160933/1 accepted/tizen/unified/20171123.065901 accepted/tizen/unified/20171123.184032 submit/tizen/20171121.011913 submit/tizen/20171123.020442
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 21 Nov 2017 00:08:42 +0000 (09:08 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 21 Nov 2017 00:08:42 +0000 (09:08 +0900)
We will replace the code using new image util APIs

Change-Id: I4ba8c2f9736cff5c19e388a2eddf48d6ef47f1c9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
pb-agent/bluetooth_pb_vcard.c

index dd19d63..08aaea2 100644 (file)
@@ -758,6 +758,11 @@ static void __bluetooth_pb_vcard_append_fn_v21(GString *string,
        g_free(fn);
 }
 
+/* image util APIs will be deprecated in Tizen 5.0. So we should replace it to new API
+     https://developer.tizen.org/development/guides/native-application/media-and-camera/image-editing#decode
+     https://developer.tizen.org/development/guides/native-application/media-and-camera/image-editing#encode
+*/
+#if 0
 static image_util_rotation_e __bt_pbap_get_rotation_info(const char *path)
 {
        FN_START;
@@ -971,6 +976,7 @@ done:
        FN_END;
        return false;
 }
+#endif
 
 static void __bluetooth_pb_vcard_append_photo_v21(GString *string,
                                                contacts_record_h person)
@@ -978,8 +984,6 @@ static void __bluetooth_pb_vcard_append_photo_v21(GString *string,
        FN_START;
        gint status;
        gchar *filename = NULL;
-       int res = 0;
-       bt_image_info_t img_info;
        struct stat stat_info;
        gchar *type = NULL;
        gchar *param = NULL;
@@ -1033,6 +1037,15 @@ static void __bluetooth_pb_vcard_append_photo_v21(GString *string,
                DBG("Thumbnail path is = %s", dest_thumb_path);
        }
        DBG_SECURE("filename = %s Thumbnail path is = %s", filename, dest_thumb_path);
+
+/* image_util_foreach_supported_jpeg_colorspace API will be deprecated in Tizen 5.0. So we should replace it to new API
+     https://developer.tizen.org/development/guides/native-application/media-and-camera/image-editing#decode
+     https://developer.tizen.org/development/guides/native-application/media-and-camera/image-editing#encode
+*/
+#if 0
+       bt_image_info_t img_info;
+       int res = 0;
+
        img_info.src = filename;
        img_info.dest = dest_thumb_path;
        img_info.ret = CONTACTS_ERROR_INTERNAL;
@@ -1044,6 +1057,7 @@ static void __bluetooth_pb_vcard_append_photo_v21(GString *string,
 
        if (res != IMAGE_UTIL_ERROR_NONE)
                ERR("Image resizing is failed");
+#endif
 
        FN_END;
 }