From: YoungHun Kim Date: Wed, 15 Feb 2012 06:38:10 +0000 (+0900) Subject: Update rotate image format X-Git-Tag: 2.0_alpha~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d9350e2ce1a1ceb6fcef5cc983508e2081ed222;p=platform%2Fcore%2Fmultimedia%2Flibmm-utility.git Update rotate image format --- diff --git a/debian/changelog b/debian/changelog index 23fc1eb..2e3d901 100755 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 14 Feb 2012 20:46:24 +0900 + libmm-utility (0.1-54) unstable; urgency=low * Revise the code of libjpeg-turbo diff --git a/imgp/mm_util_imgp.c b/imgp/mm_util_imgp.c index f28512a..19cfdb2 100755 --- a/imgp/mm_util_imgp.c +++ b/imgp/mm_util_imgp.c @@ -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; } diff --git a/imgp/test/mm_util_imgp_testsuite.c b/imgp/test/mm_util_imgp_testsuite.c index 7c43a1e..467a61a 100755 --- a/imgp/test/mm_util_imgp_testsuite.c +++ b/imgp/test/mm_util_imgp_testsuite.c @@ -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);