Fix typo and change image_util_frame_create to use image_util_encode_h 40/191140/2
authorhj kim <backto.kim@samsung.com>
Thu, 11 Oct 2018 23:47:41 +0000 (08:47 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Fri, 12 Oct 2018 00:46:25 +0000 (00:46 +0000)
Change-Id: Id505ca13afd55b40f679daa34904782a9fd4f5cd

include/image_util_decode.h
include/image_util_internal.h
src/image_util_decode.c
src/image_util_internal.c

index c53b614..5d89fc7 100755 (executable)
@@ -188,7 +188,7 @@ int image_util_decode_set_output_buffer(image_util_decode_h handle, unsigned cha
 * @see image_util_decode_run_async()
 * @see image_util_decode_destroy()
 */
-int image_util_decode_set_colorspace(image_util_encode_h handle, image_util_colorspace_e colorspace);
+int image_util_decode_set_colorspace(image_util_decode_h handle, image_util_colorspace_e colorspace);
 
 /**
 * @brief Sets the downscale value at which JPEG image should be decoded.
@@ -220,7 +220,7 @@ int image_util_decode_set_colorspace(image_util_encode_h handle, image_util_colo
 * @see image_util_decode_run_async()
 * @see image_util_decode_destroy()
 */
-int image_util_decode_set_jpeg_downscale(image_util_encode_h handle, image_util_scale_e down_scale);
+int image_util_decode_set_jpeg_downscale(image_util_decode_h handle, image_util_scale_e down_scale);
 
 /**
 * @brief Starts decoding of the image and fills the output buffer set using image_util_decode_set_output_buffer().
index 2d01346..4b0504c 100755 (executable)
@@ -189,7 +189,7 @@ typedef void *image_util_frame_h;
 * @post image_util_encode_frame_destroy()
 * @see image_util_encode_frame_destroy()
 */
-int image_util_frame_create(void *decode_encode_h, image_util_frame_h *frame_h);
+int image_util_frame_create(image_util_encode_h handle, image_util_frame_h *frame_h);
 
 /**
 * @internal
index fac8679..bcb4605 100755 (executable)
@@ -221,7 +221,7 @@ int image_util_decode_set_output_buffer(image_util_decode_h handle, unsigned cha
        return IMAGE_UTIL_ERROR_NONE;
 }
 
-int image_util_decode_set_colorspace(image_util_encode_h handle, image_util_colorspace_e colorspace)
+int image_util_decode_set_colorspace(image_util_decode_h handle, image_util_colorspace_e colorspace)
 {
        decode_s *_handle = (decode_s *) handle;
 
@@ -235,7 +235,7 @@ int image_util_decode_set_colorspace(image_util_encode_h handle, image_util_colo
        return IMAGE_UTIL_ERROR_NONE;
 }
 
-int image_util_decode_set_jpeg_downscale(image_util_encode_h handle, image_util_scale_e down_scale)
+int image_util_decode_set_jpeg_downscale(image_util_decode_h handle, image_util_scale_e down_scale)
 {
        decode_s *_handle = (decode_s *) handle;
 
index bf6d317..1ea44e4 100755 (executable)
@@ -116,14 +116,14 @@ int image_util_crop(unsigned char *dest, int x, int y, int *width, int *height,
        return _image_error_capi(ERR_TYPE_TRANSFORM, err);
 }
 
-int image_util_frame_create(void *decode_encode_h, image_util_frame_h *frame_h)
+int image_util_frame_create(image_util_encode_h handle, image_util_frame_h *frame_h)
 {
        int ret = MM_UTIL_ERROR_NONE;
 
-       image_util_retvm_if((decode_encode_h == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
+       image_util_retvm_if((handle == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
        image_util_retvm_if((frame_h == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
 
-       encode_s *image = (encode_s *)decode_encode_h;
+       encode_s *image = (encode_s *)handle;
        image_util_retvm_if((image->image_h == NULL), IMAGE_UTIL_ERROR_INVALID_OPERATION, "The image handle is wrong");
 
        frame_s *frame = calloc(1, sizeof(frame_s));