From f5747ee54231eb5ff1ddd48da1a7b58f3e3df669 Mon Sep 17 00:00:00 2001 From: Haejeong Kim Date: Thu, 6 Jul 2017 11:10:02 +0900 Subject: [PATCH] Just renaming internal APIs Change-Id: I1569d350ed211e6b8766ed903463616401ba0e9d --- libdcm-util/dcm_image_codec.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libdcm-util/dcm_image_codec.c b/libdcm-util/dcm_image_codec.c index 4bbd0db..abb4b8d 100755 --- a/libdcm-util/dcm_image_codec.c +++ b/libdcm-util/dcm_image_codec.c @@ -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); -- 2.34.1