return ret;
}
-static int __mm_util_write_image_to_buffer(Image *image, mm_util_color_format_e format, mm_util_image_h *decoded_image)
+static int __mm_util_dispatch_image(Image *image, mm_util_color_format_e format, mm_util_image_h *dispatched_image)
{
int ret = MM_UTIL_ERROR_NONE;
ExceptionInfo exception;
goto ERROR;
}
- ret = mm_image_create_image(width, height, format, pixels, pixels_size, decoded_image);
+ ret = mm_image_create_image(width, height, format, pixels, pixels_size, dispatched_image);
if (ret != MM_UTIL_ERROR_NONE)
mm_util_error("Error: mm_image_create_image failed.");
goto ERROR;
}
- ret = __mm_util_write_image_to_buffer(_processed_image, _src_handle->color, dst_handle);
+ ret = __mm_util_dispatch_image(_processed_image, _src_handle->color, dst_handle);
ERROR:
goto ERROR;
}
- ret = __mm_util_write_image_to_buffer(_processed_image, req_format, dst_handle);
+ ret = __mm_util_dispatch_image(_processed_image, req_format, dst_handle);
ERROR:
goto ERROR;
}
- ret = __mm_util_write_image_to_buffer(_processed_image, _src_handle->color, dst_handle);
+ ret = __mm_util_dispatch_image(_processed_image, _src_handle->color, dst_handle);
ERROR:
goto ERROR;
}
- ret = __mm_util_write_image_to_buffer(_processed_image, req_format, dst_handle);
+ ret = __mm_util_dispatch_image(_processed_image, req_format, dst_handle);
ERROR:
g_free(map);
- ret = __mm_util_write_image_to_buffer(_image, req_format, dst_handle);
+ ret = __mm_util_dispatch_image(_image, req_format, dst_handle);
ERROR:
goto ERROR;
}
- ret = __mm_util_write_image_to_buffer(_image, format, decoded_image);
+ ret = __mm_util_dispatch_image(_image, format, decoded_image);
ERROR:
goto ERROR;
}
- ret = __mm_util_write_image_to_buffer(_image, format, decoded_image);
+ ret = __mm_util_dispatch_image(_image, format, decoded_image);
ERROR: