platform/core/multimedia/libmm-utility.git
4 years agoUse GraphicksMagicK instead of libpng when png format encodeing and decoding 71/237971/11
hj kim [Tue, 7 Jul 2020 05:26:53 +0000 (14:26 +0900)]
Use GraphicksMagicK instead of libpng when png format encodeing and decoding

GraphicksMagicK supports PNG, so remove libpng dependency

Change-Id: Ie4f2ab40ea3425c37de319bbe8f82708800911ba

4 years agoFix wrong order 73/238673/3 accepted/tizen/unified/20200717.124749 submit/tizen/20200715.035035
hj kim [Thu, 16 Jul 2020 07:16:05 +0000 (16:16 +0900)]
Fix wrong order

Change-Id: I73fb5eb9192c1ee19f844e87cbdad5e672baa79e

4 years agoChange return value for not supported format 66/238666/4
hj kim [Thu, 16 Jul 2020 06:25:15 +0000 (15:25 +0900)]
Change return value for not supported format

Change-Id: I2af6391fe7ec30a251390a80c62130e3cd61aca2

4 years agoAdd APIs for encoding options to use Magick APIs. 49/238249/15
hj kim [Fri, 10 Jul 2020 03:48:04 +0000 (12:48 +0900)]
Add APIs for encoding options to use Magick APIs.

Now only BMP format uses MagicK for encoding.
Other formats such as PNG, WEBP, JPEG uses their own library. (eg. libjpeg, libpng etc)
But MagicK supports all those kind of formats. so we will cover all format with MagicK.
Each format has specific options when encoding but current functions didn't consider that.
So new APIs for encoding options has been added.

Change-Id: I1b5908d6176c5d55f7abcc68f88b3bebf07b9eb3

4 years agoVersion up (0.1.46 -> 0.1.47) 65/238265/1 accepted/tizen/unified/20200713.094503 submit/tizen/20200710.064028
hj kim [Fri, 10 Jul 2020 05:54:04 +0000 (14:54 +0900)]
Version up (0.1.46 -> 0.1.47)

Change-Id: Ie4ad75d0c7052b9044429d6da163b4b8c3a9f81b

4 years agoImprove __mm_util_get_map() 05/238205/4
hj kim [Thu, 9 Jul 2020 09:30:27 +0000 (18:30 +0900)]
Improve __mm_util_get_map()

Modify to return const char *

Change-Id: I1dd26c3904a88cb74fdaf73785386b67c61f7a63

4 years agoImprove __mm_util_constitute_image() 90/238190/6
hj kim [Thu, 9 Jul 2020 08:15:57 +0000 (17:15 +0900)]
Improve __mm_util_constitute_image()

Modify to get map info in this function. because this function can get map info from input handle

Change-Id: If0885ee02d5c1a21f6db29fdf609e35d7fdc049b

4 years agoChange function name __mm_util_write_image_to_buffer() to __mm_util_dispatch_image() 51/238251/3
hj kim [Fri, 10 Jul 2020 03:59:41 +0000 (12:59 +0900)]
Change function name __mm_util_write_image_to_buffer() to __mm_util_dispatch_image()

Change-Id: Id7b1a774915010c546fccf682b210ea668d06430

4 years agoImprove __mm_util_write_image_to_buffer() 87/238187/8
hj kim [Thu, 9 Jul 2020 07:49:34 +0000 (16:49 +0900)]
Improve __mm_util_write_image_to_buffer()

Unify duplicated API calls into __mm_util_write_image_to_buffer() and remove some parameters which can get from Image

Change-Id: If6110833c305fcc265618ac2f1f139ed45909c99

4 years agoRemove unhelpful msg 09/238009/3
hj kim [Tue, 7 Jul 2020 09:42:00 +0000 (18:42 +0900)]
Remove unhelpful msg

Change-Id: I56a0755f6635d3e9a9d8114960718b0b45afd6f7

4 years agoCode refactoring for 'mm_util_extract_image_info' 13/237213/13 accepted/tizen/unified/20200702.141801 submit/tizen/20200701.023736
jiyong.min [Fri, 26 Jun 2020 03:47:54 +0000 (12:47 +0900)]
Code refactoring for 'mm_util_extract_image_info'

Change-Id: I1024be716a81e647e4820d649ecf4cba5d6b509f

4 years agoCode cleanup. change the location of getting file extension and optimization 16/237116/5
jiyong.min [Thu, 25 Jun 2020 05:29:13 +0000 (14:29 +0900)]
Code cleanup. change the location of getting file extension and optimization

  - Only wbmp needs the file extension.

Change-Id: Ibb89b8d79c1561301fd4cdd77a474bc03a3eebc4

4 years agoCode cleanup. remove unnecessary code 15/237115/1
jiyong.min [Thu, 25 Jun 2020 05:17:06 +0000 (14:17 +0900)]
Code cleanup. remove unnecessary code

Change-Id: I79fcd37138d1739e30e2b00f3e7c1166377166fc

4 years agoRelease version 0.1.45 14/236314/1 accepted/tizen/unified/20200624.130223 submit/tizen/20200623.070108
jiyong.min [Tue, 16 Jun 2020 07:00:50 +0000 (16:00 +0900)]
Release version 0.1.45

Change-Id: I8d641ba8b07c4c22ff4546b74a87ae7dba55b9d9

4 years agoadd converting grayscale image into defaults when generating thumbnail 93/236093/6
jiyong.min [Mon, 15 Jun 2020 00:09:50 +0000 (09:09 +0900)]
add converting grayscale image into defaults when generating thumbnail

  Problem. A thumbnail of grayscale image was not visible
  - Cause: Grayscale image was not supported by graphics
  - Solution: Add converting grayscale into defaults(rgb or true-color)

Change-Id: Ibaa1617834de6646e673b6bbc82ae8ec403b5788

4 years agoCode cleanup for mm_util_image_h 11/234811/1
jiyong.min [Fri, 29 May 2020 03:18:44 +0000 (12:18 +0900)]
Code cleanup for mm_util_image_h

Change-Id: I4b41dcf9f1ff610edeef907884e1495687d15467

4 years agoRemove unused bmp codes 49/234749/2 accepted/tizen/unified/20200601.051557 submit/tizen/20200529.005835
hj kim [Thu, 28 May 2020 09:08:33 +0000 (18:08 +0900)]
Remove unused bmp codes

mmutil-bmp was just a wrapper of mmutil-magick.
and modules which used mmutil-bmp has been mofied to use mmutil-magick.
So remove it.

Change-Id: Ie3819fa4890308d7fbe9d4de94a33662b1bbc0ad

4 years agoFix unsuitable name 48/234748/1
hj kim [Thu, 28 May 2020 09:07:29 +0000 (18:07 +0900)]
Fix unsuitable name

Change-Id: Id2c07c745bf7157437aa448e185e087151ed6994

4 years agoFixed issue that the decoded image of 8-bit grayscale PNG was broken 85/234585/9 accepted/tizen/unified/20200529.124234 submit/tizen/20200528.071852
jiyong.min [Wed, 27 May 2020 08:07:04 +0000 (17:07 +0900)]
Fixed issue that the decoded image of 8-bit grayscale PNG was broken

  - cause:
    Libpng can trans gray to rgb if png is gray or gray with alpha.
    But decoding png set trans using 'png_set_gray_to_rgb()' if png is only
    grayscale with alpha.

  - solution:
    Set trans gray to rgb using 'png_set_gray_to_rgb' if png is gray or
    gray with alpha. Decoding the png should return only the rgba image,
    so converting rgb to rgba is also added.

Change-Id: Id99e25070890283e79af45f438dcb4c767575c3f

4 years agoRemove EXIF when creating thumbnails 05/233905/1
Minje Ahn [Wed, 20 May 2020 07:49:07 +0000 (16:49 +0900)]
Remove EXIF when creating thumbnails

Rotate image instead

Change-Id: I56b289ea683671f040d55daf17e818b7cc879599
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoUnify rotate type enum 03/232203/6 accepted/tizen/unified/20200507.052252 submit/tizen/20200506.063025
jiyong.min [Wed, 29 Apr 2020 03:59:22 +0000 (12:59 +0900)]
Unify rotate type enum

  - 'mm_util_img_rotate_type' and 'mm_util_magick_rotate_type' had duplicated enum type.
    So we unified the type to 'mm_util_rotate_type_e'.

Change-Id: I48bf39b0b2e8731d4fa4ad3846c181a19712be99

4 years agoRemove out of memory related code by using glib APIs 83/230983/16 accepted/tizen/unified/20200429.032902 submit/tizen/20200428.070655
hj kim [Thu, 16 Apr 2020 09:32:00 +0000 (18:32 +0900)]
Remove out of memory related code by using glib APIs

glib's memory managed as below.
If any call to allocate memory fails, the application is terminated. This also means that there is no need to check if the call succeeded.

Change-Id: Ib9fc815db542efcf9c5e62e8cb6cc7df684b574b

4 years agoRemove unnecessary codes 47/232047/2
hj kim [Tue, 28 Apr 2020 01:31:50 +0000 (10:31 +0900)]
Remove unnecessary codes

Change-Id: I042a58439b3169ed2fd5455ccedcc3f56a2cbab7

4 years agoMerge "Use g_free directly and remove macro" into tizen
hj kim [Tue, 28 Apr 2020 00:42:18 +0000 (00:42 +0000)]
Merge "Use g_free directly and remove macro" into tizen

4 years agoUse g_free directly and remove macro 99/231999/3
hj kim [Mon, 27 Apr 2020 08:16:49 +0000 (17:16 +0900)]
Use g_free directly and remove macro

Change-Id: I98388a5d62c19b8029a58adc94da83f924fa150e

4 years agoUse g_free() instead of free() 98/231998/1
hj kim [Mon, 27 Apr 2020 08:10:29 +0000 (17:10 +0900)]
Use g_free() instead of free()

Change-Id: I617cae832883701249caf82606e37cf7b1a48aa9

4 years agoimprove __gif_make_color_map() not to use input parameter directly 51/231551/5
hj kim [Wed, 22 Apr 2020 09:24:19 +0000 (18:24 +0900)]
improve __gif_make_color_map() not to use input parameter directly

Change-Id: Iad6fab9bb9e60c4967c10d2a7999c2f7063094dc

4 years agoMerge "Fix wrong debug msg" into tizen
hj kim [Mon, 27 Apr 2020 03:17:59 +0000 (03:17 +0000)]
Merge "Fix wrong debug msg" into tizen

4 years agoFix wrong debug msg 13/231813/1
hj kim [Fri, 24 Apr 2020 08:41:46 +0000 (17:41 +0900)]
Fix wrong debug msg

Change-Id: I9dfd98dcfdca6bc53c4fda453c50dcd3a2bdca34

4 years agoFix wrong value assign 35/231735/3
hj kim [Fri, 24 Apr 2020 04:03:18 +0000 (04:03 +0000)]
Fix wrong value assign

This reverts commit 7558e56e65499de257a6056415ede8fb0eb1b2aa.

Change-Id: I11c9c4246d8a594cc5f41febaab81242d726e2d0

4 years agoRemove RGB_ALLOC() and RGB_FREE() 00/231600/1
hj kim [Thu, 23 Apr 2020 03:09:10 +0000 (12:09 +0900)]
Remove RGB_ALLOC() and RGB_FREE()

Change-Id: I74ba7e407f0e265d17329786601ef42f37fb0697

4 years agoFix memory leak 67/231067/2 accepted/tizen/unified/20200424.141608 submit/tizen/20200422.053736 submit/tizen/20200423.093243
hj kim [Fri, 17 Apr 2020 05:33:59 +0000 (14:33 +0900)]
Fix memory leak

when release resources by using mm_image_destroy_image(), data is not released when size is TEMP_DATA_SIZE

Change-Id: I0257257849a10a7a1dc78e1ddb042adb16575e84

4 years agoRemove unused API 59/231059/1
hj kim [Fri, 17 Apr 2020 05:22:52 +0000 (14:22 +0900)]
Remove unused API

Change-Id: I7762e27393ab31c7d809c0471b4b8dcbe1a9421b

4 years agoBump to 0.1.40 21/230921/2 accepted/tizen/unified/20200420.142650 submit/tizen/20200416.091150 submit/tizen/20200419.223245
jiyong.min [Thu, 16 Apr 2020 04:37:38 +0000 (13:37 +0900)]
Bump to 0.1.40

Change-Id: Iaa1f59c47c9996262565814c117d739c66af6c2a

4 years agoAdd new function to resize and rotate with exif orientation 20/230920/3
jiyong.min [Thu, 16 Apr 2020 04:36:28 +0000 (13:36 +0900)]
Add new function to resize and rotate with exif orientation

Change-Id: I9535f30314911e2ffab25978e1df874af851e570

4 years agoMigration to Opencv 4.2.0 85/229985/3 accepted/tizen/unified/20200417.152825 submit/tizen/20200407.083853 submit/tizen/20200410.044903 submit/tizen/20200414.011245
Tae-Young Chung [Tue, 7 Apr 2020 04:40:32 +0000 (13:40 +0900)]
Migration to Opencv 4.2.0

While migration, refactoring imgcv by changing
legacy opencv c api to c++.

Change-Id: I105315cda1aceee912a7576347de0466673af1e9
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
4 years agoUse DestroyImageList instead of DestroyImage 98/229198/4 accepted/tizen/unified/20200331.030826 submit/tizen/20200330.082244
Minje Ahn [Mon, 30 Mar 2020 08:06:39 +0000 (17:06 +0900)]
Use DestroyImageList instead of DestroyImage

If input image type is agif, returned Image structure is list.

Change-Id: Ibfbd7be3f6c253a80fe71ebd69fc614798d4d10a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoReplace BMP encoder from libbmp to GraphicsMagick 13/228413/14
jiyong.min [Mon, 23 Mar 2020 02:40:13 +0000 (11:40 +0900)]
Replace BMP encoder from libbmp to GraphicsMagick

  - There are two open sources that have same BMP encoder, Libbmp and
    GraphicsMagick. Libbmp is only used for encoding BMP of libmm-utility.
    The libbmp can be removed from build after replacing it.

  - Libbmp dependency
    https://github.sec.samsung.net/pages/oslim/dash/dependency_checker/tizen60_common/libbmp.svg

Change-Id: Idd38cb29d47b27be7b27be5b388319af1561c690

4 years agoReplace BMP decoder from libnsbmp to GraphicsMagick 80/227980/9
jiyong.min [Wed, 18 Mar 2020 00:53:45 +0000 (09:53 +0900)]
Replace BMP decoder from libnsbmp to GraphicsMagick

  - There are two open sources that have same BMP decoder, Libnsbmp and
    GraphicsMagick. Libnsbmp is only used for decoding BMP of libmm-utility.
    Libnsbmp can be removed from the build after replacing it.

  - Libnsbmp dependency
    https://github.sec.samsung.net/pages/oslim/dash/dependency_checker/tizen60_common/libnsbmp.svg

Change-Id: I644c7ecb23724f67c1a82602aa09b71e2f8d2932

4 years agoRearrange 'ImageInfo' variables 79/227979/3
jiyong.min [Wed, 18 Mar 2020 00:39:05 +0000 (09:39 +0900)]
Rearrange 'ImageInfo' variables

Change-Id: I4cc4521edfcc8cfabd4780bc2d0742dc6994a8b1

4 years agoRemove void return and null check 73/227973/1
jiyong.min [Wed, 18 Mar 2020 00:29:26 +0000 (09:29 +0900)]
Remove void return and null check

Change-Id: I2352805413ea9c0ecb1512935b6c1649c65b44de

4 years agoRemove unused libraries from imgcv 72/227972/3
jiyong.min [Mon, 24 Feb 2020 03:39:08 +0000 (12:39 +0900)]
Remove unused libraries from imgcv

Change-Id: Ie5c68399bcb13f1bf9d91b0a490fd580a3df4a37

4 years agoFix coverity issue 47/224347/1 accepted/tizen/unified/20200211.055805 submit/tizen/20200210.061949
jiyong.min [Mon, 10 Feb 2020 04:30:09 +0000 (13:30 +0900)]
Fix coverity issue

 - Untrusted value as argument

Change-Id: I369d575a1299a0961ea9506fc42c552e71d48cab

4 years agoFix build error for giflib 5.1.9 74/223774/1
jiyong.min [Mon, 3 Feb 2020 23:29:45 +0000 (08:29 +0900)]
Fix build error for giflib 5.1.9

 - The 'gifutil' library has been added for deprecated 'GifQuantizeBuffer' function.
   It should be removed since giflib 5.2.0.

Change-Id: I263e3fa3cb4ae8622c70b16f4799f83429602141

4 years agoCode refactoring for internal functions 20/221220/7 accepted/tizen/unified/20200105.221208 submit/tizen/20200102.062143
jiyong.min [Mon, 30 Dec 2019 05:17:57 +0000 (14:17 +0900)]
Code refactoring for internal functions

Change-Id: I438990856d26110827c3158e12866958dfc6b73b

4 years agoFix build error for toolchin upgrade (GCC6->GCC9) 63/220963/4 accepted/tizen/unified/20191227.142830 submit/tizen/20191226.093041
hj kim [Thu, 26 Dec 2019 05:51:31 +0000 (14:51 +0900)]
Fix build error for toolchin upgrade (GCC6->GCC9)

Change-Id: I5bd86f90015b851060edd47e32e9fbde3e2fd35a

5 years agoBump version to 0.1.33 47/215147/2 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.021526 accepted/tizen/5.5/unified/mobile/hotfix/20201027.083712 accepted/tizen/unified/20191007.234912 submit/tizen/20191007.065948 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185103 tizen_5.5.m2_release
jiyong.min [Wed, 2 Oct 2019 04:13:15 +0000 (13:13 +0900)]
Bump version to 0.1.33

 - decode/encode jpeg has been improved to reduce Cyclomatic Complexity

Change-Id: I083ed3f76b7c9608c77aa7dd5128d9212695c78d

5 years agoModify jpeg encode for yuv to reduce Cyclomatic Complexity 46/215146/1
jiyong.min [Wed, 2 Oct 2019 04:11:02 +0000 (13:11 +0900)]
Modify jpeg encode for yuv to reduce Cyclomatic Complexity

Change-Id: I1c39262ca93e0fe1daba718cfd9f1f4d3a64b598

5 years agoRename few variables and replace int to unsigned int 45/215145/1
jiyong.min [Wed, 2 Oct 2019 02:13:21 +0000 (11:13 +0900)]
Rename few variables and replace int to unsigned int

 - libjpeg use unsignd int for width & height

Change-Id: I5c8d2acf95e9c08f97a1ae093f81bdb682dd3f7b

5 years agoModify jpeg open and set parameters 44/215144/1
jiyong.min [Wed, 2 Oct 2019 01:50:47 +0000 (10:50 +0900)]
Modify jpeg open and set parameters

Change-Id: I1e0e07f2de6125e9062d3ed3bbfb191d480adaab

5 years agoModify getting rgb colorspace and buffer size 43/215143/1
jiyong.min [Wed, 2 Oct 2019 01:17:27 +0000 (10:17 +0900)]
Modify getting rgb colorspace and buffer size

Change-Id: Icc70a773c0b3214499726d3387fb8202b9420bd0

5 years agoModify duplicated code for error handler and resource release. 42/215142/1
jiyong.min [Wed, 2 Oct 2019 00:44:53 +0000 (09:44 +0900)]
Modify duplicated code for error handler and resource release.

Change-Id: I3f5d1b01ccfedf81fff80489a74c2a2459a90b85

5 years agoModify simple bugs and internal function name 41/215141/1
jiyong.min [Wed, 2 Oct 2019 00:34:54 +0000 (09:34 +0900)]
Modify simple bugs and internal function name

Change-Id: I7ae768144840b4c8ec895372215e9efe2fd84059

5 years agoBump version to 0.1.32 40/215140/1
jiyong.min [Wed, 2 Oct 2019 00:30:27 +0000 (09:30 +0900)]
Bump version to 0.1.32

 - reading gif has been improved

Change-Id: Iba712ef4dd3ded2a64958adea99967d93ed0e801

5 years agoImprove '__read_gif()' function to reduce Cyclomatic Complexity 22/214822/4
jiyong.min [Fri, 27 Sep 2019 00:41:29 +0000 (09:41 +0900)]
Improve '__read_gif()' function to reduce Cyclomatic Complexity

Change-Id: I1551e9c5019fcdb74aa7defb74ceb2245f823316

5 years agoDeallocate resouces to prevent resource leak 59/212059/2 accepted/tizen/unified/20190822.045404 submit/tizen/20190820.233532
jiyong.min [Wed, 14 Aug 2019 01:20:30 +0000 (10:20 +0900)]
Deallocate resouces to prevent resource leak

 - Resource leaks were detected by static analyzer

Change-Id: I94dfc503d0d364eb738b4ac1caff5f2a4d89d56f

5 years agoAdd message for mm_util_create_image() to debug wrong parameter 25/205725/2
jiyong.min [Wed, 8 May 2019 23:40:10 +0000 (08:40 +0900)]
Add message for mm_util_create_image() to debug wrong parameter

Change-Id: I940f18a179663ceae9b61e14919cb1ad1b430e60

5 years agoRemove unneccessary header and enumerable 04/203104/1
jiyong.min [Wed, 10 Apr 2019 01:58:32 +0000 (10:58 +0900)]
Remove unneccessary header and enumerable

 - mm_util_gif_private.h has been removed.
 - mm_util_gif_disposal has been replaced to defined value of giflib.

Change-Id: I79ab50593681010900bbb66b21c9fa3981990601

5 years agoFix 64-bit build error 90/202190/1 accepted/tizen/unified/20190326.073434 submit/tizen/20190325.074339
jiyong.min [Mon, 25 Mar 2019 22:20:23 +0000 (07:20 +0900)]
Fix 64-bit build error

Change-Id: Icb0bf922870660ce99c89f3acc7ee44702856bf8

5 years agoModify file permission in magick 29/201929/4
jiyong.min [Thu, 21 Mar 2019 04:01:02 +0000 (13:01 +0900)]
Modify file permission in magick

 - from 755 to 644

Change-Id: I7db52ee48ff995425276c516cf293ddbd8bf2108

5 years agoModify animated gif writing to file and to buffer 24/201924/5
jiyong.min [Thu, 21 Mar 2019 01:52:07 +0000 (10:52 +0900)]
Modify animated gif writing to file and to buffer

 - Encoding checked writing to file or to buffer during working. Encoding is
   no needed to check it because encoding use buffer to get intermediate output.
   After modifying it, it check writing to file or to buffer right before
   saving the final outcome.

Change-Id: I979720f1fe75dcdf9c2a08deb92e50b055cbfe68

5 years agoRename variables for buffer I/O in gif and png 10/201910/2
jiyong.min [Thu, 21 Mar 2019 01:22:28 +0000 (10:22 +0900)]
Rename variables for buffer I/O in gif and png

Change-Id: Ic30eb5dbd9731e7f7fd13561407741f348f36bf0

5 years agoMerge "Just add some msg for debugging" into tizen accepted/tizen/unified/20190322.075426 submit/tizen/20190321.013843
hj kim [Thu, 21 Mar 2019 00:08:19 +0000 (00:08 +0000)]
Merge "Just add some msg for debugging" into tizen

5 years agoMerge "Add new mm_image_clone_image() API" into tizen
hj kim [Thu, 21 Mar 2019 00:05:50 +0000 (00:05 +0000)]
Merge "Add new mm_image_clone_image() API" into tizen

5 years agoJust add some msg for debugging 42/201842/1
hj kim [Wed, 20 Mar 2019 05:23:45 +0000 (14:23 +0900)]
Just add some msg for debugging

Change-Id: I9065705006848a2f0f3b502329dea51f3c61b70c

5 years agoRemove duplicated code 29/201829/5
jiyong.min [Wed, 20 Mar 2019 02:49:52 +0000 (11:49 +0900)]
Remove duplicated code

 - The 'gif_encode_start()' is called in 'gif_encode_add_image()'.
   It is no needed to call before 'gif_encode_add_image()'.

Change-Id: I4ada9cdcf1e3d64ad2766c6ff69f9b173802956c

5 years agoAdd new mm_image_clone_image() API 48/201748/3
hj kim [Tue, 19 Mar 2019 07:05:25 +0000 (16:05 +0900)]
Add new mm_image_clone_image() API

Change-Id: I1e34098d9c475f8faec0e07835fc202bc571ff36

5 years agoModify parameters in encoding APIs have been changed from mm_image_info_s to mm_util_... 64/201264/13 accepted/tizen/unified/20190318.221227 submit/tizen/20190313.075153
hj kim [Tue, 12 Mar 2019 04:00:48 +0000 (13:00 +0900)]
Modify parameters in encoding APIs have been changed from mm_image_info_s to mm_util_image_h

Change-Id: Ibfbd29d2482142054f88b4aa74938e195d6995e4

5 years agoChange to use mm_image_debug_image when print out each parameters 23/201423/1
hj kim [Thu, 14 Mar 2019 02:48:09 +0000 (11:48 +0900)]
Change to use mm_image_debug_image when print out each parameters

Change-Id: I6f1b5d2b81bbea18bf98b11d1ea6cbce22394489

5 years agoChange 'unsigned char*' to 'const unsigned char *' for inpu data 71/201371/1
hj kim [Wed, 13 Mar 2019 08:26:44 +0000 (17:26 +0900)]
Change 'unsigned char*' to 'const unsigned char *' for inpu data

Change-Id: I249bfbe41efdbb46c96409763ea16f623c4a0681

5 years agoModify parameter in imgage processing APIs to mm_util_image_h 61/201261/16
jiyong.min [Tue, 12 Mar 2019 02:03:16 +0000 (11:03 +0900)]
Modify parameter in imgage processing APIs to mm_util_image_h

Change-Id: I39ceb170e91ad3948d73d3503e6996698ff775b3

5 years agoModify parameter in decoding APIs from mm_image_info_s to mm_util_image_h 04/201204/19 accepted/tizen/unified/20190313.075520 submit/tizen/20190313.021136
hj kim [Mon, 11 Mar 2019 09:00:39 +0000 (18:00 +0900)]
Modify parameter in decoding APIs from mm_image_info_s to mm_util_image_h

Change-Id: Ie9c0cbcd5cf979ccd99a34f75fb1a487d62de9ff

5 years agoReplace and add functions to use unified parameter 72/200772/21 accepted/tizen/unified/20190311.220536 submit/tizen/20190311.013617
jiyong.min [Mon, 4 Mar 2019 06:37:50 +0000 (15:37 +0900)]
Replace and add functions to use unified parameter

[Repleaced function]
 - mm_util_create_handle() to mm_image_create_image()
 - mm_util_get_image() to mm_image_get_image()
 - mm_util_destroy_handle() to mm_image_destroy_image()

[Added function]
 - mm_image_debug_image()
 - mm_image_set_delay_time()
 - mm_image_get_delay_time()

< This change will be related with image-util, dcm-service,
libmedia-thumbnail and thumbnail-util packages.
The packages must use new functions. >

Change-Id: Ifec56a4fbb73bac9438389ad2fb8a27bb2dc827e

5 years agoJust rename IS_MM_UTIL_COLOR_FORMAT() to IS_VALID_COLOR() 78/200978/1
hj kim [Thu, 7 Mar 2019 01:38:47 +0000 (10:38 +0900)]
Just rename IS_MM_UTIL_COLOR_FORMAT() to IS_VALID_COLOR()

Change-Id: I117ad02a5e0da0f37102a0e8ffe751780388439d

5 years agoUnify the type of width and height to 'unsigned int' 77/200977/1
hj kim [Thu, 7 Mar 2019 01:27:19 +0000 (10:27 +0900)]
Unify the type of width and height to 'unsigned int'

Change-Id: Ibe88df84d8b38f6d814243291fea9985e90a7b85

5 years agoRemove unused macro and modify few data type due to out-of-range issue 62/200762/7
jiyong.min [Mon, 4 Mar 2019 01:10:51 +0000 (10:10 +0900)]
Remove unused macro and modify few data type due to out-of-range issue

Change-Id: I88e9e8b4220e3f09aff73886c317f39f24374cf5

5 years agoReplace function name for rgb 79/200579/2
jiyong.min [Wed, 27 Feb 2019 04:20:15 +0000 (13:20 +0900)]
Replace function name for rgb

- Generally, the rgb are used two kind of name.
  {rgb565, rgb888 and rgba8888} or {rgb16, rgb24, rgb32}.
  The name was mixed, so it has been unified.

Change-Id: I8788b12f2e442b3b45a21acee79f5de136c25e02

5 years agoAdd to check the return of fseek() 81/198681/2 tizen_5.5_dev accepted/tizen/unified/20190207.120252 submit/tizen/20190131.041045
jiyong.min [Mon, 28 Jan 2019 08:23:39 +0000 (17:23 +0900)]
Add to check the return of fseek()

 - If fseek() is failed, -1 is returned and errno is set to indicate the errors.

Change-Id: Id5cc540e185d310d287c417160ca321f4322a5a4

5 years agoFix coverity issue 58/196258/2 accepted/tizen/unified/20190108.062240 submit/tizen/20190107.021730
jiyong.min [Wed, 26 Dec 2018 23:52:49 +0000 (08:52 +0900)]
Fix coverity issue

 - Resource leak
 - Dereference before null check
 - Large stack use

Change-Id: Ib7713f0fd1ae54ac0a6e140794afedd07a4cc1c2

5 years agoRemove unused header file 36/195236/1
jiyong.min [Wed, 12 Dec 2018 00:52:07 +0000 (09:52 +0900)]
Remove unused header file

Change-Id: Ie0717622cd5ef8b48272b35cb45996d92107dc80

5 years agoFix format error in logs 98/194698/1 accepted/tizen/unified/20181210.060036 submit/tizen/20181207.051909
jiyong.min [Fri, 7 Dec 2018 04:42:39 +0000 (13:42 +0900)]
Fix format error in logs

Change-Id: Ia8517e01f40e59fe4c234b0c354a9181fb486b92

5 years agoAdd -Wall -Werror options. and fix build error 76/194476/2 accepted/tizen/unified/20181205.154822 submit/tizen/20181205.014753
hj kim [Wed, 5 Dec 2018 01:44:39 +0000 (10:44 +0900)]
Add -Wall -Werror options. and fix build error

Change-Id: Idf79c13c7e4ed7d2d44e1ce320e1115cfd9d71f6

5 years agoFix format error for dlog 67/194467/1
jiyong.min [Wed, 5 Dec 2018 01:33:14 +0000 (10:33 +0900)]
Fix format error for dlog

Change-Id: I9a16080672bae53a92f4a33f3f5b59af9397ba25

5 years agoAdding initial structure for unittest 68/193368/18 accepted/tizen/unified/20181127.073312 submit/tizen/20181126.011146
jiyong.min [Tue, 20 Nov 2018 00:50:53 +0000 (09:50 +0900)]
Adding initial structure for unittest

- It has testcases for bmp, gif, imgcv, imgp, jpeg, magick and png of unittest
- It would be enabled by gtest build with '--define "gtests 1"'
- In would be executed by both root and user

Change-Id: I3d4bc7ad60ed59b534e25a2b81f1b2e7514513ba

5 years agoRearrange source code 26/193026/1 accepted/tizen/unified/20181121.173155 accepted/tizen/unified/20181123.063236 submit/tizen/20181119.072242 submit/tizen/20181121.000755 submit/tizen/20181122.024304
jiyong.min [Wed, 14 Nov 2018 03:46:30 +0000 (12:46 +0900)]
Rearrange source code

Change-Id: I8c87aca4d32196c6c300c9e387cb31f4c52550e3

5 years agoMerge branch 'tizen_5.5_dev' into tizen 83/192483/1 accepted/tizen/unified/20181107.081954 submit/tizen/20181106.000712
hj kim [Tue, 6 Nov 2018 03:55:05 +0000 (12:55 +0900)]
Merge branch 'tizen_5.5_dev' into tizen

Change-Id: I2534ef9edc7e89e3b20422c64ebc6759e8516759

6 years agoMerge branch 'tizen_5.5_dev' into tizen 31/192231/3
hj kim [Thu, 1 Nov 2018 05:30:55 +0000 (14:30 +0900)]
Merge branch 'tizen_5.5_dev' into tizen

Change-Id: I2a0e2e341f3966b937933bcea8ed1640dc17d0bf

6 years agoRemove requires. Anything is required for using this library 63/192163/2
hj kim [Wed, 31 Oct 2018 05:48:10 +0000 (14:48 +0900)]
Remove requires. Anything is required for using this library

Change-Id: I7766f7cac1473ea648b8373be95e46f9b8c63015

6 years agoSvace issue fix 17/192017/2
hj kim [Mon, 29 Oct 2018 01:29:37 +0000 (10:29 +0900)]
Svace issue fix

Change-Id: I06464e065858ebab479693bbf3a104fd70c8f6b2

6 years agoChange 'started' flag to GifFile pointer and remove the flag 36/191936/1
jiyong.min [Thu, 25 Oct 2018 02:28:10 +0000 (11:28 +0900)]
Change 'started' flag to GifFile pointer and remove the flag

Change-Id: I53c913803ebf8469b58437bda78f311edd84e0db

6 years agoJust update debug message 89/191889/1
jiyong.min [Thu, 25 Oct 2018 01:30:20 +0000 (10:30 +0900)]
Just update debug message

Change-Id: I4ff9d5bd7cd39c3be27bb4b968fd6f4d9ef187a6

6 years agoRemove buffer in gif structure 11/191611/2
jiyong.min [Fri, 19 Oct 2018 04:02:17 +0000 (13:02 +0900)]
Remove buffer in gif structure

Change-Id: I78160d70d2ac810c2b827bf918ba58801b6bd1d5

6 years agoAdd to check overread(overflow) issue 29/191429/4
jiyong.min [Wed, 17 Oct 2018 05:44:54 +0000 (14:44 +0900)]
Add to check overread(overflow) issue

Change-Id: I3733abb4874b3fa7447cbcb6ca59698932d722fc

6 years agoReplace output parameters to pointer 70/191370/1
jiyong.min [Tue, 16 Oct 2018 09:19:44 +0000 (18:19 +0900)]
Replace output parameters to pointer

Change-Id: I54db27cd62fd1b93203630419383074f73d368dc

6 years agojust rearrange some parameters 60/191360/1
hj kim [Tue, 16 Oct 2018 08:10:58 +0000 (17:10 +0900)]
just rearrange some parameters

Change-Id: Ic2407057f230166a6b08871024351d05db07dea4

6 years agoRemove mm_util_gif_encode_set_resolution(). because resolution can be set without... 53/191353/1
hj kim [Tue, 16 Oct 2018 07:44:33 +0000 (16:44 +0900)]
Remove mm_util_gif_encode_set_resolution(). because resolution can be set without that API

Change-Id: Ic882d279d3e8c87410b4f3328b2de929cc434cdd

6 years agojust modify parameter type 46/191346/1
hj kim [Tue, 16 Oct 2018 07:11:01 +0000 (16:11 +0900)]
just modify parameter type

Change-Id: Iac2cb1c4d1b3c2e679223061d01b3cea3dfeb145

6 years agoRemove unused APIs 41/191341/1
hj kim [Tue, 16 Oct 2018 06:49:07 +0000 (15:49 +0900)]
Remove unused APIs

Change-Id: Iebcd15b636ea69c16cceecd73d1e487f8f521fff

6 years agoRemove useless codes and rearrange codes 12/191312/1
jiyong.min [Tue, 16 Oct 2018 02:05:40 +0000 (11:05 +0900)]
Remove useless codes and rearrange codes

Change-Id: I67c8096fb0c7a22dd0b72544942afac7e8280522

6 years agoRemove simple APIs. Native API will set it directly 81/191281/1
hj kim [Mon, 15 Oct 2018 08:29:25 +0000 (17:29 +0900)]
Remove simple APIs. Native API will set it directly

Change-Id: I44dcbb86d1546565a2cd1a383a44ba2e0f27de96