From: jiyong.min Date: Fri, 12 Oct 2018 04:08:35 +0000 (+0900) Subject: Remove `image_util_frame_set_resolution` function X-Git-Tag: submit/tizen/20181106.000712^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a6ad08b272d0525dd19d142439d10dc594d0324;p=platform%2Fcore%2Fapi%2Fimage-util.git Remove `image_util_frame_set_resolution` function Change-Id: I2f6bea77321c21399c5d31c4e2022278f9febdcf --- diff --git a/decode-test/image_util_decode_encode_testsuite.c b/decode-test/image_util_decode_encode_testsuite.c old mode 100755 new mode 100644 index 6416cc3..076fac1 --- a/decode-test/image_util_decode_encode_testsuite.c +++ b/decode-test/image_util_decode_encode_testsuite.c @@ -646,12 +646,6 @@ gboolean test_encode_gif_frame_by_frame() continue; } - ret = image_util_frame_set_resolution(frame, g_test_decode[i].width, g_test_decode[i].height); - if (ret != IMAGE_UTIL_ERROR_NONE) { - image_util_frame_destroy(frame); - continue; - } - ret = image_util_frame_set_gif_delay(frame, 50); if (ret != IMAGE_UTIL_ERROR_NONE) { image_util_frame_destroy(frame); diff --git a/include/image_util_internal.h b/include/image_util_internal.h old mode 100755 new mode 100644 index 4b0504c..d15f6dd --- a/include/image_util_internal.h +++ b/include/image_util_internal.h @@ -191,27 +191,6 @@ typedef void *image_util_frame_h; */ int image_util_frame_create(image_util_encode_h handle, image_util_frame_h *frame_h); -/** -* @internal -* @brief Sets the resolution of the frame to encode. -* @since_tizen 4.0 -* -* @param[in] frame_h The frame handle to encode -* @param[in] width The width of the frame -* @param[in] height The height of the frame -* -* @return @c 0 on success, -* otherwise a negative error value -* -* @retval #IMAGE_UTIL_ERROR_NONE Successful -* @retval #IMAGE_UTIL_ERROR_INVALID_PARAMETER Invalid parameter -* @retval #IMAGE_UTIL_ERROR_INVALID_OPERATION Invalid operation -* -* @pre image_util_encode_frame_create() -* @see image_util_encode_frame_create() -*/ -int image_util_frame_set_resolution(image_util_frame_h frame_h, const int width, const int height); - /** * @internal * @brief Sets the delay of the gif. diff --git a/src/image_util_encode.c b/src/image_util_encode.c old mode 100755 new mode 100644 index 69f3da3..a3c7fa8 --- a/src/image_util_encode.c +++ b/src/image_util_encode.c @@ -163,9 +163,6 @@ int image_util_encode_set_resolution(image_util_encode_h handle, unsigned long w err = _image_util_encode_get_gif_frame(gif_data, _handle->current_resolution_count, &frame); image_util_retvm_if((err != IMAGE_UTIL_ERROR_NONE), err, "_image_util_encode_get_gif_frame failed %d", err); - err = mm_util_gif_image_set_position(frame, 0, 0, (int)width, (int)height); - image_util_retvm_if((err != MM_UTIL_ERROR_NONE), _image_error_capi(ERR_TYPE_ENCODE, err), "mm_util_gif_image_set_position failed %d", err); - _handle->current_resolution_count++; return err; diff --git a/src/image_util_internal.c b/src/image_util_internal.c old mode 100755 new mode 100644 index 1ea44e4..414ba5a --- a/src/image_util_internal.c +++ b/src/image_util_internal.c @@ -154,24 +154,6 @@ int image_util_frame_create(image_util_encode_h handle, image_util_frame_h *fram return IMAGE_UTIL_ERROR_NONE; } -int image_util_frame_set_resolution(image_util_frame_h frame_h, const int width, const int height) -{ - int ret = MM_UTIL_ERROR_NONE; - - image_util_retvm_if((frame_h == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle"); - image_util_retvm_if((width <= 0) || (height <= 0), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Width or Height"); - - frame_s *frame = (frame_s *)frame_h; - - ret = mm_util_gif_image_set_position(frame->frame_h, 0, 0, width, height); - if (ret != MM_UTIL_ERROR_NONE) { - image_util_error("mm_util_gif_image_set_position is failed(%d).", ret); - return _image_error_capi(ERR_TYPE_ENCODE, ret); - } - - return IMAGE_UTIL_ERROR_NONE; -} - int image_util_frame_set_gif_delay(image_util_frame_h frame_h, const int delay_time) { int ret = MM_UTIL_ERROR_NONE;