Replace function name for rgb 79/200579/2
authorjiyong.min <jiyong.min@samsung.com>
Wed, 27 Feb 2019 04:20:15 +0000 (13:20 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Wed, 27 Feb 2019 04:24:26 +0000 (13:24 +0900)
- Generally, the rgb are used two kind of name.
  {rgb565, rgb888 and rgba8888} or {rgb16, rgb24, rgb32}.
  The name was mixed, so it has been unified.

Change-Id: I8788b12f2e442b3b45a21acee79f5de136c25e02

imgp/mm_util_imgp.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 556ef3b..7b8bcfd
@@ -323,7 +323,7 @@ static void __mm_util_imgp_finalize(GModule *module, imgp_info_s *_imgp_info_s)
        return;
 }
 
-static int __mm_util_crop_rgba32(const unsigned char *src, unsigned int src_width, unsigned int src_height,
+static int __mm_util_crop_rgb32(const unsigned char *src, unsigned int src_width, unsigned int src_height,
 unsigned int crop_start_x, unsigned int crop_start_y, unsigned int crop_dest_width, unsigned int crop_dest_height, unsigned char *dst)
 {
        int ret = MM_UTIL_ERROR_NONE;
@@ -342,7 +342,7 @@ unsigned int crop_start_x, unsigned int crop_start_y, unsigned int crop_dest_wid
        return ret;
 }
 
-static int __mm_util_crop_rgb888(const unsigned char *src, unsigned int src_width, unsigned int src_height,
+static int __mm_util_crop_rgb24(const unsigned char *src, unsigned int src_width, unsigned int src_height,
 unsigned int crop_start_x, unsigned int crop_start_y, unsigned int crop_dest_width, unsigned int crop_dest_height, unsigned char *dst)
 {
        int ret = MM_UTIL_ERROR_NONE;
@@ -361,7 +361,7 @@ unsigned int crop_start_x, unsigned int crop_start_y, unsigned int crop_dest_wid
        return ret;
 }
 
-static int __mm_util_crop_rgb565(const unsigned char *src, unsigned int src_width, unsigned int src_height,
+static int __mm_util_crop_rgb16(const unsigned char *src, unsigned int src_width, unsigned int src_height,
 unsigned int crop_start_x, unsigned int crop_start_y, unsigned int crop_dest_width, unsigned int crop_dest_height, unsigned char *dst)
 {
        int ret = MM_UTIL_ERROR_NONE;
@@ -798,19 +798,19 @@ unsigned int crop_start_x, unsigned int crop_start_y, unsigned int crop_dest_wid
        res_h = crop_dest_height;
 
        switch (src_format) {
-       case MM_UTIL_COLOR_RGB24: {
-               ret = __mm_util_crop_rgb888(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
+       case MM_UTIL_COLOR_RGB16: {
+               ret = __mm_util_crop_rgb16(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
                break;
                }
-       case MM_UTIL_COLOR_RGB16: {
-               ret = __mm_util_crop_rgb565(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
+       case MM_UTIL_COLOR_RGB24: {
+               ret = __mm_util_crop_rgb24(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
                break;
                }
        case MM_UTIL_COLOR_ARGB:
        case MM_UTIL_COLOR_BGRA:
        case MM_UTIL_COLOR_RGBA:
        case MM_UTIL_COLOR_BGRX: {
-               ret = __mm_util_crop_rgba32(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
+               ret = __mm_util_crop_rgb32(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
                break;
                }
        case MM_UTIL_COLOR_I420: