Remove mm_util_imgp_h to remove internal handle 94/190994/1
authorhj kim <backto.kim@samsung.com>
Wed, 10 Oct 2018 08:43:19 +0000 (17:43 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 10 Oct 2018 08:43:19 +0000 (17:43 +0900)
Change-Id: I5c98fc9f0ea7ab23a8fc2cec2e557d4216cab1ac

src/image_util.c
src/image_util_encode.c

index cce4efa..d722d91 100755 (executable)
@@ -449,10 +449,9 @@ static int __mm_util_create_thread(mm_util_s *handle)
        return ret;
 }
 
-static int __mm_util_transform(mm_util_imgp_h imgp_handle, mm_image_info_s *image)
+static int __mm_util_transform(mm_util_s *handle, mm_image_info_s *image)
 {
        int ret = IMAGE_UTIL_ERROR_NONE;
-       mm_util_s *handle = (mm_util_s *) imgp_handle;
 
        image_util_fenter();
 
index cef1772..9cbaed7 100755 (executable)
@@ -69,7 +69,7 @@ static int __image_util_create_img_handle(image_util_type_e image_type, decode_e
        _image_handle = (mm_image_info_s *) calloc(1, sizeof(mm_image_info_s));
        image_util_retvm_if((_image_handle == NULL), IMAGE_UTIL_ERROR_OUT_OF_MEMORY, "OUT_OF_MEMORY");
 
-       handle->image_h = (mm_util_imgp_h) _image_handle;
+       handle->image_h = (void *) _image_handle;
 
        switch (image_type) {
        case IMAGE_UTIL_JPEG:
@@ -85,7 +85,7 @@ static int __image_util_create_img_handle(image_util_type_e image_type, decode_e
                err = mm_util_gif_encode_create(&_gif_handle);
                image_util_retvm_if((err != MM_UTIL_ERROR_NONE),  _image_error_capi(ERR_TYPE_ENCODE, err), "Error - mm_util_gif_encode_create is failed (%d)", err);
 
-               handle->image_h = (mm_util_imgp_h) _gif_handle;
+               handle->image_h = (void *) _gif_handle;
                break;
        case IMAGE_UTIL_BMP:
                break;