mm_util_magick_rotate_type angle = MM_UTIL_ROTATE_NUM;
mm_util_image_h resize_dst_handle = NULL;
mm_util_image_h dst_handle = NULL;
- mm_util_magick_format format = MM_UTIL_IMG_FMT_NUM;
+ mm_util_color_format_e format = MM_UTIL_COLOR_NUM;
dcm_debug_fenter();
if (__dcm_get_optimized_wh(width, height, &resized_width, &resized_height)) {
/* Resize the big size image to enhance performance for big size image */
- ret = mm_util_resize_P_B(file_path, resized_width, resized_height, MM_UTIL_IMG_FMT_RGBA8888, &resize_dst_handle);
+ ret = mm_util_resize_P_B(file_path, resized_width, resized_height, MM_UTIL_COLOR_RGBA, &resize_dst_handle);
if (ret != MM_UTIL_ERROR_NONE) {
dcm_error("Failed to resize image!err: %d", ret);
ret = MS_MEDIA_ERR_INTERNAL;
goto ERROR;
}
} else {
- ret = mm_util_rotate_P_B(file_path, angle, MM_UTIL_IMG_FMT_RGBA8888, &dst_handle);
+ ret = mm_util_rotate_P_B(file_path, angle, MM_UTIL_COLOR_RGBA, &dst_handle);
if (ret != MM_UTIL_ERROR_NONE) {
dcm_error("Failed to rotate image buffer! err: %d", ret);
ret = MS_MEDIA_ERR_INTERNAL;
}
}
} else {
- ret = mm_util_rotate_P_B(file_path, angle, MM_UTIL_IMG_FMT_RGBA8888, &dst_handle);
+ ret = mm_util_rotate_P_B(file_path, angle, MM_UTIL_COLOR_RGBA, &dst_handle);
if (ret != MM_UTIL_ERROR_NONE) {
dcm_error("Failed to rotate image buffer! err: %d", ret);
ret = MS_MEDIA_ERR_INTERNAL;