image_util_retvm_if(!_handle, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
image_util_retvm_if(!_is_valid_colorspace(colorspace), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid colorspace");
- _handle->color = colorspace;
+ _handle->color = (mm_util_color_format_e)colorspace;
_handle->set_convert = true;
return IMAGE_UTIL_ERROR_NONE;
image_util_retvm_if(!_handle, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
- _handle->rotation = rotation;
+ _handle->rotation = (mm_util_rotate_type_e)rotation;
_handle->set_rotate = true;
return IMAGE_UTIL_ERROR_NONE;
image_util_debug("Get colorspace_convert_info [%d]", _handle->color);
- *colorspace = _handle->color;
+ *colorspace = (image_util_colorspace_e)(_handle->color);
return IMAGE_UTIL_ERROR_NONE;
}
image_util_debug("Get rotate_info [%d]", _handle->rotation);
- *rotation = _handle->rotation;
+ *rotation = (image_util_rotation_e)(_handle->rotation);
return IMAGE_UTIL_ERROR_NONE;
}
{
int ret = IMAGE_UTIL_ERROR_NONE;
- ret = mm_image_create_image(width, height, colorspace, data, data_size, image);
+ ret = mm_image_create_image(width, height, (mm_util_color_format_e)colorspace, data, data_size, image);
return _image_error_capi(ret);
}
handle->gif_encode_info.sources = g_realloc(handle->gif_encode_info.sources, sizeof(mm_image_info_s *) * (handle->gif_encode_info.source_count + 1));
handle->gif_encode_info.sources[handle->gif_encode_info.source_count] = g_new0(mm_image_info_s, 1);
- handle->gif_encode_info.sources[handle->gif_encode_info.source_count]->color = IMAGE_UTIL_COLORSPACE_RGBA8888;
+ handle->gif_encode_info.sources[handle->gif_encode_info.source_count]->color = (mm_util_color_format_e)IMAGE_UTIL_COLORSPACE_RGBA8888;
handle->gif_encode_info.source_count++;
image_util_fleave();
return _image_error_capi(err);
}
- _handle->src.color = IMAGE_UTIL_COLORSPACE_RGBA8888;
+ _handle->src.color = (mm_util_color_format_e)IMAGE_UTIL_COLORSPACE_RGBA8888;
_handle->thread = NULL;
_handle->new_src = NULL;
image_util_retvm_if(!_handle, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid handle");
image_util_retvm_if(!image, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid image");
- ret = _check_colorspace(_handle->image_type, ((mm_image_info_s *)image)->color);
+ ret = _check_colorspace(_handle->image_type, (image_util_colorspace_e)((mm_image_info_s *)image)->color);
image_util_retvm_if(ret != IMAGE_UTIL_ERROR_NONE, ret, "Invalid colorspace");
ret = _check_encode_path(file_path);
image_util_retvm_if(!_handle, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid handle");
image_util_retvm_if(!image, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid image");
- ret = _check_colorspace(_handle->image_type, ((mm_image_info_s *)image)->color);
+ ret = _check_colorspace(_handle->image_type, (image_util_colorspace_e)((mm_image_info_s *)image)->color);
image_util_retvm_if(ret != IMAGE_UTIL_ERROR_NONE, ret, "Invalid colorspace");
image_util_retvm_if(!buffer, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid buffer");
image_util_retvm_if(!_handle, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid handle");
image_util_retvm_if(!image, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid image");
- ret = _check_colorspace(_handle->image_type, ((mm_image_info_s *)image)->color);
+ ret = _check_colorspace(_handle->image_type, (image_util_colorspace_e)((mm_image_info_s *)image)->color);
image_util_retvm_if(ret != IMAGE_UTIL_ERROR_NONE, ret, "Invalid colorspace");
ret = _check_encode_path(file_path);
image_util_retvm_if(!_handle, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid handle");
image_util_retvm_if(!image, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid image");
- ret = _check_colorspace(_handle->image_type, ((mm_image_info_s *)image)->color);
+ ret = _check_colorspace(_handle->image_type, (image_util_colorspace_e)((mm_image_info_s *)image)->color);
image_util_retvm_if(ret != IMAGE_UTIL_ERROR_NONE, ret, "Invalid colorspace");
image_util_retvm_if(!completed_cb, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid completed_cb");