From 9fb2a00984df4bf749acaaeeb3981f12182f0167 Mon Sep 17 00:00:00 2001 From: hj kim Date: Mon, 12 Nov 2018 16:38:36 +0900 Subject: [PATCH] [ACR-1317]Deprecate image_util_calculate_buffer_size() function. It is not needed anymore. Change-Id: I66d16683347f8f37568ae549e0a33b4b5094009d --- include/image_util.h | 3 ++- packaging/capi-media-image-util.spec | 2 +- src/image_util.c | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/image_util.h b/include/image_util.h index 855cc14..5292a1f 100755 --- a/include/image_util.h +++ b/include/image_util.h @@ -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. diff --git a/packaging/capi-media-image-util.spec b/packaging/capi-media-image-util.spec index 809aa8e..65ed930 100755 --- a/packaging/capi-media-image-util.spec +++ b/packaging/capi-media-image-util.spec @@ -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 diff --git a/src/image_util.c b/src/image_util.c index c3cce6c..34f5189 100755 --- a/src/image_util.c +++ b/src/image_util.c @@ -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"); -- 2.34.1