if (handle->set_convert) {
dst_index++;
- mm_util_get_image_size(handle->dst_format, handle->dst_width, handle->dst_height, &dst_buf_size);
+ mm_util_get_image_size(handle->dst_format, src_width, src_height, &dst_buf_size);
dst_buf[dst_index] = g_malloc(dst_buf_size);
if (dst_buf[dst_index] == NULL) {
mm_util_error("[multi func] memory allocation error");
switch (handle->dst_rotation) {
case MM_UTIL_ROTATION_90:
case MM_UTIL_ROTATION_270:
- temp_swap = handle->dst_width;
- handle->dst_width = handle->dst_height;
- handle->dst_height = temp_swap;
+ temp_swap = src_width;
+ src_width = src_height;
+ src_height = temp_swap;
break;
default:
break;
}
}
- mm_util_get_image_size(src_format, handle->dst_width, handle->dst_height, &dst_buf_size);
+ mm_util_get_image_size(src_format, src_width, src_height, &dst_buf_size);
dst_buf[dst_index] = g_malloc(dst_buf_size);
if (dst_buf[dst_index] == NULL) {
mm_util_error("[multi func] memory allocation error");