#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;
}
}
-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;
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;
/* 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;
*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);