if (handle->set_rotate) {
dst_index++;
- if (handle->set_resize || handle->set_crop) {
- unsigned int temp_swap = 0;
- switch (handle->dst_rotation) {
- case MM_UTIL_ROTATION_90:
- case MM_UTIL_ROTATION_270:
- temp_swap = src_width;
- src_width = src_height;
- src_height = temp_swap;
- break;
- default:
- break;
- }
+ switch (handle->dst_rotation) {
+ case MM_UTIL_ROTATION_90:
+ case MM_UTIL_ROTATION_270:
+ mm_util_get_image_size(src_format, src_height, src_width, &dst_buf_size);
+ break;
+ default:
+ mm_util_get_image_size(src_format, src_width, src_height, &dst_buf_size);
+ break;
}
- mm_util_get_image_size(src_format, src_width, src_height, &dst_buf_size);
dst_buf[dst_index] = calloc(1, dst_buf_size);
if (dst_buf[dst_index] == NULL) {
mm_util_error("[multi func] memory allocation error");