From b34dac9fb51df88550c512a7ab25df94e73edf8d Mon Sep 17 00:00:00 2001 From: hj kim Date: Wed, 10 Oct 2018 17:43:19 +0900 Subject: [PATCH] Remove mm_util_imgp_h to remove internal handle Change-Id: I5c98fc9f0ea7ab23a8fc2cec2e557d4216cab1ac --- src/image_util.c | 3 +-- src/image_util_encode.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/image_util.c b/src/image_util.c index cce4efa..d722d91 100755 --- a/src/image_util.c +++ b/src/image_util.c @@ -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(); diff --git a/src/image_util_encode.c b/src/image_util_encode.c index cef1772..9cbaed7 100755 --- a/src/image_util_encode.c +++ b/src/image_util_encode.c @@ -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; -- 2.34.1