Update rotate image format
authorYoungHun Kim <yh8004.kim@samsung.com>
Wed, 15 Feb 2012 06:38:10 +0000 (15:38 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Wed, 15 Feb 2012 06:38:10 +0000 (15:38 +0900)
debian/changelog
imgp/mm_util_imgp.c
imgp/test/mm_util_imgp_testsuite.c

index 23fc1eb..2e3d901 100755 (executable)
@@ -1,3 +1,11 @@
+libmm-utility (0.1-55) unstable; urgency=low
+
+  * Update rotate image format
+  * Git: pkgs/l/libmm-utility
+  * Tag: libmm-utility_0.1-55
+
+ -- YoungHun Kim <yh8004.kim@samsung.com>  Tue, 14 Feb 2012 20:46:24 +0900
+
 libmm-utility (0.1-54) unstable; urgency=low
 
   * Revise the code of libjpeg-turbo
index f28512a..19cfdb2 100755 (executable)
@@ -261,7 +261,7 @@ _mm_check_rotate_format(mm_util_img_format _format)
        gboolean _bool = FALSE;
                mmf_debug(MMF_DEBUG_LOG, "[%s][%05d] _format: %d", __func__, __LINE__, _format);
        if( (_format == MM_UTIL_IMG_FMT_YUV420) || (_format == MM_UTIL_IMG_FMT_I420)
-       || (_format == MM_UTIL_IMG_FMT_NV12) || (_format == MM_UTIL_IMG_FMT_RGB888) ) {
+       || (_format == MM_UTIL_IMG_FMT_NV12) || (_format == MM_UTIL_IMG_FMT_RGB565) || (_format == MM_UTIL_IMG_FMT_RGB888)) {
                _bool = TRUE;
        }
 
index 7c43a1e..467a61a 100755 (executable)
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
                int dst_cs = atoi(argv[5]);
                #endif
                #if _ROTATE_
-               mm_util_img_rotate_type angle = MM_UTIL_ROTATE_270;
+               mm_util_img_rotate_type angle = MM_UTIL_ROTATE_FLIP_HORZ;
                #endif
                int ret = 0;
                int cnt = 0;
@@ -72,9 +72,8 @@ int main(int argc, char *argv[])
                fread(src, 1, src_size, fp);
 
 #if _ROTATE_
-               //rotate 90
                dst_width = src_width ;
-               dst_height = src_width;
+               dst_height = src_height;
                mm_util_get_image_size(src_cs, dst_width, dst_height, &dst_size);
                dst = malloc(dst_size);
                mmf_debug(MMF_DEBUG_LOG, "[%s][%05d] dst: %p", __func__, __LINE__, dst);