- /* get length of resized image */
- mm_ret = mm_util_get_image_size(input_format, *dst_width, *dst_height, dst_length);
- if (mm_ret != MM_ERROR_NONE) {
- GST_ERROR("mm_util_get_image_size failed 0x%x", ret);
- return FALSE;
- }
-
- _mmcam_dbg_log("dst_length : %d", *dst_length);
-
- dst_tmp_data = (unsigned char *)malloc(*dst_length);
- if (dst_tmp_data == NULL) {
- _mmcam_dbg_err("failed to alloc dst_thumb_size(size %d)", *dst_length);
- return FALSE;
- }
-
- mm_ret = mm_util_resize_image(src_data, src_width, src_height, input_format, dst_tmp_data, dst_width, dst_height);
+ mm_ret = mm_util_resize_image(src_data, src_width, src_height, input_format,
+ *dst_width, *dst_height, dst_data, dst_width, dst_height, dst_length);