handle type changed from MMHandleType to mm_util_imgp_h 68/54568/1 accepted/tizen/mobile/20151217.021532 accepted/tizen/tv/20151217.021739 accepted/tizen/wearable/20151217.022010 submit/tizen/20151217.002925
authorHaejeong Kim <backto.kim@samsung.com>
Wed, 16 Dec 2015 07:31:47 +0000 (16:31 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Wed, 16 Dec 2015 07:32:22 +0000 (16:32 +0900)
Change-Id: Ifb15905bb0649ead30ee657c18e251eb07c6532c

include/image_util_private.h
packaging/capi-media-image-util.spec
src/image_util.c

index d21fd61..603c768 100755 (executable)
@@ -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;
index 3a3d565..861b203 100755 (executable)
@@ -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
index 6ded044..d6a2672 100755 (executable)
@@ -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;
 }