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) {
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);
mm_util_init_decode_png(_handle);
- handle->image_h = (MMHandleType) _handle;
+ handle->image_h = (mm_util_imgp_h) _handle;
return err;
}
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;
}
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;
}
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;
mm_util_init_encode_png(_handle);
- handle->image_h = (MMHandleType) _handle;
+ handle->image_h = (mm_util_imgp_h) _handle;
return err;
}
}
mm_util_gif_encode_set_image_count(_handle, 1);
- handle->image_h = (MMHandleType) _handle;
+ handle->image_h = (mm_util_imgp_h) _handle;
return err;
}
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;
}