{
int err = MM_UTIL_ERROR_NONE;
- image_util_debug("image_util_create");
+ image_util_fenter();
image_util_retvm_if((handle == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
int err = MM_UTIL_ERROR_NONE;
transformation_s *_handle = (transformation_s *) handle;
- image_util_debug("image_util_transform");
+ image_util_fenter();
image_util_retvm_if((_handle == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
image_util_retvm_if((completed_cb == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid callback");
int err = MM_UTIL_ERROR_NONE;
transformation_s *_handle = (transformation_s *) handle;
- image_util_debug("image_util_destroy");
+ image_util_fenter();
- if (_handle == NULL) {
- image_util_error("Invalid Handle");
- return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
- }
+ image_util_retvm_if((_handle == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
err = mm_util_destroy(_handle->image_h);
module = g_module_open(PATH_MMUTIL_IMGCV_LIB, G_MODULE_BIND_LAZY);
image_util_retvm_if((module == NULL), IMAGE_UTIL_ERROR_NO_SUCH_FILE, "fail to open module");
- g_module_symbol(module, IMGCV_FUNC_NAME, (gpointer *)&mmutil_imgcv_module_func);
+ if (!g_module_symbol(module, IMGCV_FUNC_NAME, (gpointer *)&mmutil_imgcv_module_func)) {
+ image_util_error("fail to g_module_symbol");
+ g_module_close(module);
+
+ return IMAGE_UTIL_ERROR_INVALID_OPERATION;
+ }
+
if (!mmutil_imgcv_module_func)
g_module_close(module);