From: hjkim Date: Thu, 8 Feb 2024 07:40:05 +0000 (+0900) Subject: Don't use deprecated image-util APIs X-Git-Tag: accepted/tizen/unified/20240213.172012^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified_dev;p=platform%2Fcore%2Fapi%2Fmaps-service.git Don't use deprecated image-util APIs Change-Id: Id10a30fd97457b45153429f39c95b0e512af8d01 --- diff --git a/packaging/capi-maps-service.spec b/packaging/capi-maps-service.spec index a493359..edb28f1 100644 --- a/packaging/capi-maps-service.spec +++ b/packaging/capi-maps-service.spec @@ -1,6 +1,6 @@ Name: capi-maps-service Summary: Tizen Maps Service API -Version: 0.7.1 +Version: 0.7.2 Release: 1 Group: Location/API License: Apache-2.0 diff --git a/src/api/maps_view_snapshot.cpp b/src/api/maps_view_snapshot.cpp index e7229b2..b94fe39 100644 --- a/src/api/maps_view_snapshot.cpp +++ b/src/api/maps_view_snapshot.cpp @@ -99,6 +99,7 @@ static bool __encode_bitmap_file(const void *data, int width, int height, const return true; } +#if 0 static image_util_colorspace_e __convert_colorspace(maps_view_colorspace_type_e cs) { switch (cs) { @@ -109,6 +110,7 @@ static image_util_colorspace_e __convert_colorspace(maps_view_colorspace_type_e } return IMAGE_UTIL_COLORSPACE_RGBA8888; } +#endif static int __encode_to_jpeg(unsigned char *image_buffer, int w, int h, maps_view_colorspace_type_e cs, int quality, const char *file_path) @@ -117,7 +119,7 @@ static int __encode_to_jpeg(unsigned char *image_buffer, int w, int h, return MAPS_ERROR_INVALID_OPERATION; #if (TIZEN_VER >= VERSION(3, 0, 0)) image_util_encode_h image_handle = NULL; - unsigned long long image_size = 0; +// unsigned long long image_size = 0; int error = IMAGE_UTIL_ERROR_NONE; do { @@ -126,6 +128,7 @@ static int __encode_to_jpeg(unsigned char *image_buffer, int w, int h, MAPS_LOGE("Failed to create the image handle with JPEG format. error=%d", error); break; } +#if 0 error = image_util_encode_set_input_buffer(image_handle, image_buffer); if (error != IMAGE_UTIL_ERROR_NONE) { MAPS_LOGE("Failed to set image_buffer to image handle. error=%d", error); @@ -156,6 +159,7 @@ static int __encode_to_jpeg(unsigned char *image_buffer, int w, int h, MAPS_LOGE("Failed to encode with image handle. error=%d", error); break; } +#endif } while (0); image_util_encode_destroy(image_handle);