Just renaming internal APIs 33/137433/1
authorHaejeong Kim <backto.kim@samsung.com>
Thu, 6 Jul 2017 02:10:02 +0000 (11:10 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Thu, 6 Jul 2017 02:10:02 +0000 (11:10 +0900)
Change-Id: I1569d350ed211e6b8766ed903463616401ba0e9d

libdcm-util/dcm_image_codec.c

index 4bbd0db40700a814fff1cad11a7f8754af4dea06..abb4b8d8e859f1d0234f43fb9a5b0b396f49fdc4 100755 (executable)
@@ -26,7 +26,7 @@
 #define OPT_IMAGE_WIDTH                1280
 #define OPT_IMAGE_HEIGHT       720
 
-static void _dcm_get_optimized_wh(unsigned int src_width, unsigned int src_height, unsigned int *calc_width, unsigned int *calc_height)
+static void __dcm_get_optimized_wh(unsigned int src_width, unsigned int src_height, unsigned int *calc_width, unsigned int *calc_height)
 {
        *calc_width = 0;
        *calc_height = 0;
@@ -47,7 +47,7 @@ static void _dcm_get_optimized_wh(unsigned int src_width, unsigned int src_heigh
        }
 }
 
-static int _dcm_rotate_image(const unsigned char *source, const dcm_image_format_e format, const int orientation, unsigned char **image_buffer, unsigned long long *size, unsigned int *buff_width, unsigned int *buff_height)
+static int __dcm_rotate_image(const unsigned char *source, const dcm_image_format_e format, const int orientation, unsigned char **image_buffer, unsigned long long *size, unsigned int *buff_width, unsigned int *buff_height)
 {
        int ret = IMAGE_UTIL_ERROR_NONE;
        image_util_colorspace_e colorspace = IMAGE_UTIL_COLORSPACE_RGBA8888;
@@ -131,7 +131,7 @@ static int _dcm_rotate_image(const unsigned char *source, const dcm_image_format
        return MS_MEDIA_ERR_NONE;
 }
 
-int _dcm_rotate_rgb(unsigned char *source, const unsigned long long *size, int format, unsigned int *ori_width, unsigned int *ori_height)
+static int __dcm_rotate_rgb(unsigned char *source, const unsigned long long *size, int format, unsigned int *ori_width, unsigned int *ori_height)
 {
        unsigned int dpp = 0; /* data per pixel */
        unsigned int x = 0, y = 0;
@@ -249,7 +249,7 @@ int dcm_decode_image(const char *file_path, const dcm_image_format_e format,
 
        /* Get the optimized width/height to enhance performance for big size image */
        if (resize) {
-               _dcm_get_optimized_wh(decode_width, decode_height, buff_width, buff_height);
+               __dcm_get_optimized_wh(decode_width, decode_height, buff_width, buff_height);
        } else {
                *buff_width = decode_width;
                *buff_height = decode_height;
@@ -275,10 +275,10 @@ int dcm_decode_image(const char *file_path, const dcm_image_format_e format,
                *image_buffer = resize_buffer;
        } else {
                if ((format == DCM_IMAGE_FORMAT_RGBA) || (format == DCM_IMAGE_FORMAT_RGB)) {
-                       ret = _dcm_rotate_rgb(resize_buffer, size, format, buff_width, buff_height);
+                       ret = __dcm_rotate_rgb(resize_buffer, size, format, buff_width, buff_height);
                        *image_buffer = resize_buffer;
                } else {
-                       ret = _dcm_rotate_image(resize_buffer, format, orientation, image_buffer, size, buff_width, buff_height);
+                       ret = __dcm_rotate_image(resize_buffer, format, orientation, image_buffer, size, buff_width, buff_height);
                }
                if (ret != MS_MEDIA_ERR_NONE) {
                        dcm_error("Failed to rotate image buffer! err: %d", ret);