Change function name __mm_util_write_image_to_buffer() to __mm_util_dispatch_image() 51/238251/3
authorhj kim <backto.kim@samsung.com>
Fri, 10 Jul 2020 03:59:41 +0000 (12:59 +0900)
committerhj kim <backto.kim@samsung.com>
Fri, 10 Jul 2020 05:41:15 +0000 (14:41 +0900)
Change-Id: Id7b1a774915010c546fccf682b210ea668d06430

magick/mm_util_magick.c

index 4e5e4f4690a2856a6f0618bf98b94e1c1b2baa4b..b07d754e0c47fd18c35bff19e1f8a5ee6333163c 100644 (file)
@@ -348,7 +348,7 @@ static int __mm_util_write_image_to_file(Image *image, const char *out_path)
        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;
@@ -390,7 +390,7 @@ static int __mm_util_write_image_to_buffer(Image *image, mm_util_color_format_e
                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.");
 
@@ -546,7 +546,7 @@ int mm_util_rotate_B_B(mm_util_image_h src_handle, mm_util_rotate_type_e rotatio
                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:
 
@@ -635,7 +635,7 @@ int mm_util_rotate_P_B(const char *src_path, mm_util_rotate_type_e rotation, mm_
                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:
 
@@ -727,7 +727,7 @@ int mm_util_resize_B_B(mm_util_image_h src_handle, unsigned int req_width, unsig
                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:
 
@@ -828,7 +828,7 @@ int mm_util_resize_P_B(const char *src_path, unsigned int req_width, unsigned in
                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:
 
@@ -912,7 +912,7 @@ int mm_util_convert_B_B(mm_util_image_h src_handle, mm_util_color_format_e req_f
 
        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:
 
@@ -942,7 +942,7 @@ int mm_util_decode_image_from_file(const char *path, mm_util_color_format_e form
                goto ERROR;
        }
 
-       ret = __mm_util_write_image_to_buffer(_image, format, decoded_image);
+       ret = __mm_util_dispatch_image(_image, format, decoded_image);
 
 ERROR:
 
@@ -973,7 +973,7 @@ int mm_util_decode_image_from_buffer(const void *buf, size_t buf_size, mm_util_c
                goto ERROR;
        }
 
-       ret = __mm_util_write_image_to_buffer(_image, format, decoded_image);
+       ret = __mm_util_dispatch_image(_image, format, decoded_image);
 
 ERROR: