Don't use deprecated image-util APIs 15/305815/1 accepted/tizen_unified_dev accepted/tizen/unified/20240213.172012 accepted/tizen/unified/dev/20240620.004014 accepted/tizen/unified/toolchain/20240311.065125 accepted/tizen/unified/x/20240219.013804
authorhjkim <backto.kim@samsung.com>
Thu, 8 Feb 2024 07:40:05 +0000 (16:40 +0900)
committerhjkim <backto.kim@samsung.com>
Thu, 8 Feb 2024 07:40:29 +0000 (16:40 +0900)
Change-Id: Id10a30fd97457b45153429f39c95b0e512af8d01

packaging/capi-maps-service.spec
src/api/maps_view_snapshot.cpp

index a4933599a85a7d69c9fa9df5a5577e2884096fda..edb28f17914afe40e89f266947c3c3b003b70501 100644 (file)
@@ -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
index e7229b284736144bd91d06b0609455030039dbfc..b94fe39a01516b2535db0aefec0e4cc9ca9e4962 100644 (file)
@@ -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);