Remove `image_util_frame_set_resolution` function 69/191169/1
authorjiyong.min <jiyong.min@samsung.com>
Fri, 12 Oct 2018 04:08:35 +0000 (13:08 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Fri, 12 Oct 2018 04:09:40 +0000 (13:09 +0900)
Change-Id: I2f6bea77321c21399c5d31c4e2022278f9febdcf

decode-test/image_util_decode_encode_testsuite.c [changed mode: 0755->0644]
include/image_util_internal.h [changed mode: 0755->0644]
src/image_util_encode.c [changed mode: 0755->0644]
src/image_util_internal.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 6416cc3..076fac1
@@ -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);
old mode 100755 (executable)
new mode 100644 (file)
index 4b0504c..d15f6dd
@@ -193,27 +193,6 @@ int image_util_frame_create(image_util_encode_h handle, image_util_frame_h *fram
 
 /**
 * @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.
 * @since_tizen 4.0
 *
old mode 100755 (executable)
new mode 100644 (file)
index 69f3da3..a3c7fa8
@@ -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;
old mode 100755 (executable)
new mode 100644 (file)
index 1ea44e4..414ba5a
@@ -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;