[ACR-1317]Deprecate image_util_calculate_buffer_size() function. It is not needed... 76/192876/3
authorhj kim <backto.kim@samsung.com>
Mon, 12 Nov 2018 07:38:36 +0000 (16:38 +0900)
committerhj kim <backto.kim@samsung.com>
Mon, 12 Nov 2018 08:37:55 +0000 (17:37 +0900)
Change-Id: I66d16683347f8f37568ae549e0a33b4b5094009d

include/image_util.h
packaging/capi-media-image-util.spec
src/image_util.c

index 855cc14..5292a1f 100755 (executable)
@@ -37,6 +37,7 @@ extern "C"
  */
 
 /**
+* @deprecated Deprecated since 5.5.
 * @brief Calculates the size of the image buffer for the specified resolution and colorspace.
 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
 *
@@ -53,7 +54,7 @@ extern "C"
 *
 * @see image_util_transform_run()
 */
-int image_util_calculate_buffer_size(int width, int height, image_util_colorspace_e colorspace , unsigned int *size);
+int image_util_calculate_buffer_size(int width, int height, image_util_colorspace_e colorspace , unsigned int *size) TIZEN_DEPRECATED_API;
 
 /**
 * @brief Extracts representative color from an image buffer.
index 809aa8e..65ed930 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-image-util
 Summary:    A Image Utility library in Tizen Native API
-Version:    0.1.43
+Version:    0.1.44
 Release:    2
 Group:      Multimedia/API
 License:    Apache-2.0
index c3cce6c..34f5189 100755 (executable)
@@ -707,6 +707,8 @@ int image_util_calculate_buffer_size(int width, int height, image_util_colorspac
        int err = IMAGE_UTIL_ERROR_NONE;
        size_t size_ptr = 0;
 
+       image_util_warning("DEPRECATION WARNING: image_util_calculate_buffer_size() is deprecated and will be removed from next release.");
+
        image_util_retvm_if((is_valid_colorspace(colorspace) == FALSE), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid colorspace");
        image_util_retvm_if((width <= 0 || height <= 0), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid width or Invalid height");
        image_util_retvm_if((size == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "size is null");