From 50ad7ae709757c1d7971b0dcb0010215e7b7f08d Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Tue, 21 Nov 2017 09:08:42 +0900 Subject: [PATCH] Comment out deprecated image util API We will replace the code using new image util APIs Change-Id: I4ba8c2f9736cff5c19e388a2eddf48d6ef47f1c9 Signed-off-by: DoHyun Pyun --- pb-agent/bluetooth_pb_vcard.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pb-agent/bluetooth_pb_vcard.c b/pb-agent/bluetooth_pb_vcard.c index dd19d63..08aaea2 100644 --- a/pb-agent/bluetooth_pb_vcard.c +++ b/pb-agent/bluetooth_pb_vcard.c @@ -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; } -- 2.7.4