diff options
Diffstat (limited to 'src/media-thumb-internal.c')
-rwxr-xr-x | src/media-thumb-internal.c | 15 |
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; } } |