return FALSE;
}
-static int __mm_util_get_crop_image_size(mm_util_color_format_e format, unsigned int width, unsigned int height, unsigned int *imgsize)
+static int __mm_util_get_crop_image_size(mm_util_color_format_e format, unsigned int width, unsigned int height, size_t *imgsize)
{
int ret = MM_UTIL_ERROR_NONE;
unsigned char x_chroma_shift = 0;
}
if (dst_buf[dst_index] != NULL && res_buffer_size != 0) {
- ret = mm_util_create_color_image((mm_util_color_image_h *)&(handle->dst), (unsigned long)src_width, (unsigned long)src_height, src_format, (void *)dst_buf[dst_index], (size_t)res_buffer_size);
+ ret = mm_util_create_color_image((mm_util_color_image_h *)&(handle->dst), (unsigned long)src_width, (unsigned long)src_height, src_format, (void *)dst_buf[dst_index], res_buffer_size);
if (ret != MM_UTIL_ERROR_NONE)
mm_util_error("mm_util_set_color_image failed");
}
unsigned int crop_start_x, unsigned int crop_start_y, unsigned int crop_dest_width, unsigned int crop_dest_height, unsigned char **dst, unsigned int *result_buf_width, unsigned int *result_buf_height, size_t *result_buf_size)
{
int ret = MM_UTIL_ERROR_NONE;
- unsigned int dst_buf_size = 0;
+ size_t dst_buf_size = 0;
unsigned char *dst_buffer = NULL;
unsigned int res_w = 0;
unsigned int res_h = 0;
ret = MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
}
- *result_buf_size = (size_t)dst_buf_size;
+ *result_buf_size = dst_buf_size;
*dst = dst_buffer;
*result_buf_width = res_w;
*result_buf_height = res_h;