summaryrefslogtreecommitdiff
path: root/src/media-thumb-internal.c
diff options
context:
space:
mode:
authorHaejeong Kim <backto.kim@samsung.com>2017-03-30 00:59:15 (GMT)
committerHaejeong Kim <backto.kim@samsung.com>2017-03-30 00:59:15 (GMT)
commitaee150adb2f1ea46f8ab3e1ee32896338bc811eb (patch)
tree5aff090d4422911a3c3647ca9044a0a41388ff36 /src/media-thumb-internal.c
parentb309bbcdcb5dafd7c22dcd669b918117b25076b6 (diff)
downloadlibmedia-thumbnail-aee150adb2f1ea46f8ab3e1ee32896338bc811eb.zip
libmedia-thumbnail-aee150adb2f1ea46f8ab3e1ee32896338bc811eb.tar.gz
libmedia-thumbnail-aee150adb2f1ea46f8ab3e1ee32896338bc811eb.tar.bz2
Change-Id: I6951f5a5bf334838c9d17dba0edb03be10a30c96
Diffstat (limited to 'src/media-thumb-internal.c')
-rwxr-xr-xsrc/media-thumb-internal.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c
index 1fd2614..adc96e4 100755
--- a/src/media-thumb-internal.c
+++ b/src/media-thumb-internal.c
@@ -261,8 +261,7 @@ int _media_thumb_rotate_argb(unsigned char *source, const unsigned int size, int
height = *ori_height;
/* rotate image to 90 degree clockwise */
- for (y = 0; y < height; y++)
- {
+ for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) {
for (i = 0; i < dpp; i++) {
temp_buf[(x * height + (height - y - 1)) * dpp + i] = source[(y * width + x) * dpp + i];
@@ -894,12 +893,12 @@ int _media_thumb_decode_with_evas(const char *origin_path,
mm_util_img_format _media_thumb_get_format(media_thumb_format src_format)
{
switch (src_format) {
- case MEDIA_THUMB_BGRA:
- return MM_UTIL_IMG_FMT_BGRA8888;
- case MEDIA_THUMB_RGB888:
- return MM_UTIL_IMG_FMT_RGB888;
- default:
- return MS_MEDIA_ERR_INVALID_PARAMETER;
+ case MEDIA_THUMB_BGRA:
+ return MM_UTIL_IMG_FMT_BGRA8888;
+ case MEDIA_THUMB_RGB888:
+ return MM_UTIL_IMG_FMT_RGB888;
+ default:
+ return MS_MEDIA_ERR_INVALID_PARAMETER;
}
}