From 1bd2ab24e9a38cc039eedea4f46d004fda0db747 Mon Sep 17 00:00:00 2001 From: Haejeong Kim Date: Wed, 16 Dec 2015 16:31:47 +0900 Subject: [PATCH] handle type changed from MMHandleType to mm_util_imgp_h Change-Id: Ifb15905bb0649ead30ee657c18e251eb07c6532c --- include/image_util_private.h | 4 ++-- packaging/capi-media-image-util.spec | 2 +- src/image_util.c | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/image_util_private.h b/include/image_util_private.h index d21fd61..603c768 100755 --- a/include/image_util_private.h +++ b/include/image_util_private.h @@ -70,7 +70,7 @@ typedef struct { image_util_colorspace_e colorspace; image_util_rotation_e dest_rotation; bool hardware_acceleration; - MMHandleType image_h; + mm_util_imgp_h image_h; image_util_cb_s *_util_cb; unsigned int width; unsigned int height; @@ -102,7 +102,7 @@ typedef struct { void **dst_buffer; unsigned long long dst_size; const char *path; - MMHandleType image_h; + mm_util_imgp_h image_h; unsigned long width; unsigned long height; bool is_decode; diff --git a/packaging/capi-media-image-util.spec b/packaging/capi-media-image-util.spec index 3a3d565..861b203 100755 --- a/packaging/capi-media-image-util.spec +++ b/packaging/capi-media-image-util.spec @@ -1,6 +1,6 @@ Name: capi-media-image-util Summary: A Image Utility library in Tizen Native API -Version: 0.1.6 +Version: 0.1.7 Release: 1 Group: Multimedia/API License: Apache-2.0 diff --git a/src/image_util.c b/src/image_util.c index 6ded044..d6a2672 100755 --- a/src/image_util.c +++ b/src/image_util.c @@ -223,7 +223,7 @@ static void _image_util_transform_completed_cb(media_packet_h * dst, int error, static int _image_util_create_transform_handle(transformation_s * handle) { int err = MM_UTIL_ERROR_NONE; - MMHandleType image_h; + mm_util_imgp_h image_h; err = mm_util_create(&image_h); if (err != MM_UTIL_ERROR_NONE) { @@ -880,7 +880,7 @@ static int _image_util_decode_create_jpeg_handle(decode_encode_s * handle) mm_util_jpeg_yuv_data *_handle = (mm_util_jpeg_yuv_data *) calloc(1, sizeof(mm_util_jpeg_yuv_data)); image_util_retvm_if((_handle == NULL), MM_UTIL_ERROR_OUT_OF_MEMORY, "OUT_OF_MEMORY(0x%08x)", MM_UTIL_ERROR_OUT_OF_MEMORY); - handle->image_h = (MMHandleType) _handle; + handle->image_h = (mm_util_imgp_h) _handle; handle->colorspace = IMAGE_UTIL_COLORSPACE_RGBA8888; handle->down_scale = sizeof(image_util_scale_e); @@ -898,7 +898,7 @@ static int _image_util_decode_create_png_handle(decode_encode_s * handle) mm_util_init_decode_png(_handle); - handle->image_h = (MMHandleType) _handle; + handle->image_h = (mm_util_imgp_h) _handle; return err; } @@ -912,7 +912,7 @@ static int _image_util_decode_create_gif_handle(decode_encode_s * handle) mm_util_gif_data *_handle = (mm_util_gif_data *) calloc(1, sizeof(mm_util_gif_data)); image_util_retvm_if((_handle == NULL), MM_UTIL_ERROR_OUT_OF_MEMORY, "OUT_OF_MEMORY(0x%08x)", MM_UTIL_ERROR_OUT_OF_MEMORY); - handle->image_h = (MMHandleType) _handle; + handle->image_h = (mm_util_imgp_h) _handle; return err; } @@ -926,7 +926,7 @@ static int _image_util_decode_create_bmp_handle(decode_encode_s * handle) mm_util_bmp_data *_handle = (mm_util_bmp_data *) calloc(1, sizeof(mm_util_bmp_data)); image_util_retvm_if((_handle == NULL), MM_UTIL_ERROR_OUT_OF_MEMORY, "OUT_OF_MEMORY(0x%08x)", MM_UTIL_ERROR_OUT_OF_MEMORY); - handle->image_h = (MMHandleType) _handle; + handle->image_h = (mm_util_imgp_h) _handle; return err; } @@ -1496,7 +1496,7 @@ static int _image_util_encode_create_jpeg_handle(decode_encode_s * handle) mm_util_jpeg_yuv_data *_handle = (mm_util_jpeg_yuv_data *) calloc(1, sizeof(mm_util_jpeg_yuv_data)); image_util_retvm_if((_handle == NULL), MM_UTIL_ERROR_OUT_OF_MEMORY, "OUT_OF_MEMORY(0x%08x)", MM_UTIL_ERROR_OUT_OF_MEMORY); - handle->image_h = (MMHandleType) _handle; + handle->image_h = (mm_util_imgp_h) _handle; handle->colorspace = IMAGE_UTIL_COLORSPACE_RGBA8888; handle->quality = 75; @@ -1514,7 +1514,7 @@ static int _image_util_encode_create_png_handle(decode_encode_s * handle) mm_util_init_encode_png(_handle); - handle->image_h = (MMHandleType) _handle; + handle->image_h = (mm_util_imgp_h) _handle; return err; } @@ -1536,7 +1536,7 @@ static int _image_util_encode_create_gif_handle(decode_encode_s * handle) } mm_util_gif_encode_set_image_count(_handle, 1); - handle->image_h = (MMHandleType) _handle; + handle->image_h = (mm_util_imgp_h) _handle; return err; } @@ -1550,7 +1550,7 @@ static int _image_util_encode_create_bmp_handle(decode_encode_s * handle) mm_util_bmp_data *_handle = (mm_util_bmp_data *) calloc(1, sizeof(mm_util_bmp_data)); image_util_retvm_if((_handle == NULL), MM_UTIL_ERROR_OUT_OF_MEMORY, "OUT_OF_MEMORY(0x%08x)", MM_UTIL_ERROR_OUT_OF_MEMORY); - handle->image_h = (MMHandleType) _handle; + handle->image_h = (mm_util_imgp_h) _handle; return err; } -- 2.7.4