/* async mode */
mm_util_color_image_h orig_image = NULL;
- unsigned int size = 0;
-
fprintf(stderr, "command: %s src_width: %d, src_height: %d, src_format: %d, dst_width: %d, dst_height: %d, dst_format:%d, rotation:%d\n", command, src_width, src_height, src_format, dst_width, dst_height, dst_format, rotation);
if (strcmp(command, "convert") == 0) {
}
/* mem allocation for src dst buffer */
- mm_util_get_image_size(src_format, src_width, src_height, &size);
- src_size = (size_t)size;
- mm_util_get_image_size(dst_format, dst_width, dst_height, &size);
- dst_size = (size_t)size;
+ mm_util_get_image_size(src_format, src_width, src_height, &src_size);
+ mm_util_get_image_size(dst_format, dst_width, dst_height, &dst_size);
src = calloc(1, src_size);
dst = calloc(1, dst_size);
#else
mm_util_debug("#START# libjpeg");
if (fmt == MM_UTIL_COLOR_NV12) {
- unsigned int dst_size = 0;
+ size_t dst_size = 0;
ret = __mm_image_decode_from_jpeg_file_with_libjpeg(decoded, filename, MM_UTIL_COLOR_YUV420, downscale);
if (ret == MM_UTIL_ERROR_NONE) {
int err = MM_UTIL_ERROR_NONE;