jiyong.min [Mon, 10 Feb 2020 04:30:09 +0000 (13:30 +0900)]
Fix coverity issue
- Untrusted value as argument
Change-Id: I369d575a1299a0961ea9506fc42c552e71d48cab
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
jiyong.min [Mon, 30 Dec 2019 05:17:57 +0000 (14:17 +0900)]
Code refactoring for internal functions
Change-Id: I438990856d26110827c3158e12866958dfc6b73b
hj kim [Thu, 26 Dec 2019 05:51:31 +0000 (14:51 +0900)]
Fix build error for toolchin upgrade (GCC6->GCC9)
Change-Id: I5bd86f90015b851060edd47e32e9fbde3e2fd35a
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
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
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
jiyong.min [Wed, 2 Oct 2019 01:50:47 +0000 (10:50 +0900)]
Modify jpeg open and set parameters
Change-Id: I1e0e07f2de6125e9062d3ed3bbfb191d480adaab
jiyong.min [Wed, 2 Oct 2019 01:17:27 +0000 (10:17 +0900)]
Modify getting rgb colorspace and buffer size
Change-Id: Icc70a773c0b3214499726d3387fb8202b9420bd0
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
jiyong.min [Wed, 2 Oct 2019 00:34:54 +0000 (09:34 +0900)]
Modify simple bugs and internal function name
Change-Id: I7ae768144840b4c8ec895372215e9efe2fd84059
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
jiyong.min [Fri, 27 Sep 2019 00:41:29 +0000 (09:41 +0900)]
Improve '__read_gif()' function to reduce Cyclomatic Complexity
Change-Id: I1551e9c5019fcdb74aa7defb74ceb2245f823316
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
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
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
jiyong.min [Mon, 25 Mar 2019 22:20:23 +0000 (07:20 +0900)]
Fix 64-bit build error
Change-Id: Icb0bf922870660ce99c89f3acc7ee44702856bf8
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
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
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
hj kim [Thu, 21 Mar 2019 00:08:19 +0000 (00:08 +0000)]
Merge "Just add some msg for debugging" 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
hj kim [Wed, 20 Mar 2019 05:23:45 +0000 (14:23 +0900)]
Just add some msg for debugging
Change-Id: I9065705006848a2f0f3b502329dea51f3c61b70c
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
hj kim [Tue, 19 Mar 2019 07:05:25 +0000 (16:05 +0900)]
Add new mm_image_clone_image() API
Change-Id: I1e34098d9c475f8faec0e07835fc202bc571ff36
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
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
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
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
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
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
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
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
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
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
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
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
jiyong.min [Wed, 12 Dec 2018 00:52:07 +0000 (09:52 +0900)]
Remove unused header file
Change-Id: Ie0717622cd5ef8b48272b35cb45996d92107dc80
jiyong.min [Fri, 7 Dec 2018 04:42:39 +0000 (13:42 +0900)]
Fix format error in logs
Change-Id: Ia8517e01f40e59fe4c234b0c354a9181fb486b92
hj kim [Wed, 5 Dec 2018 01:44:39 +0000 (10:44 +0900)]
Add -Wall -Werror options. and fix build error
Change-Id: Idf79c13c7e4ed7d2d44e1ce320e1115cfd9d71f6
jiyong.min [Wed, 5 Dec 2018 01:33:14 +0000 (10:33 +0900)]
Fix format error for dlog
Change-Id: I9a16080672bae53a92f4a33f3f5b59af9397ba25
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
jiyong.min [Wed, 14 Nov 2018 03:46:30 +0000 (12:46 +0900)]
Rearrange source code
Change-Id: I8c87aca4d32196c6c300c9e387cb31f4c52550e3
hj kim [Tue, 6 Nov 2018 03:55:05 +0000 (12:55 +0900)]
Merge branch 'tizen_5.5_dev' into tizen
Change-Id: I2534ef9edc7e89e3b20422c64ebc6759e8516759
hj kim [Thu, 1 Nov 2018 05:30:55 +0000 (14:30 +0900)]
Merge branch 'tizen_5.5_dev' into tizen
Change-Id: I2a0e2e341f3966b937933bcea8ed1640dc17d0bf
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
hj kim [Mon, 29 Oct 2018 01:29:37 +0000 (10:29 +0900)]
Svace issue fix
Change-Id: I06464e065858ebab479693bbf3a104fd70c8f6b2
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
jiyong.min [Thu, 25 Oct 2018 01:30:20 +0000 (10:30 +0900)]
Just update debug message
Change-Id: I4ff9d5bd7cd39c3be27bb4b968fd6f4d9ef187a6
jiyong.min [Fri, 19 Oct 2018 04:02:17 +0000 (13:02 +0900)]
Remove buffer in gif structure
Change-Id: I78160d70d2ac810c2b827bf918ba58801b6bd1d5
jiyong.min [Wed, 17 Oct 2018 05:44:54 +0000 (14:44 +0900)]
Add to check overread(overflow) issue
Change-Id: I3733abb4874b3fa7447cbcb6ca59698932d722fc
jiyong.min [Tue, 16 Oct 2018 09:19:44 +0000 (18:19 +0900)]
Replace output parameters to pointer
Change-Id: I54db27cd62fd1b93203630419383074f73d368dc
hj kim [Tue, 16 Oct 2018 08:10:58 +0000 (17:10 +0900)]
just rearrange some parameters
Change-Id: Ic2407057f230166a6b08871024351d05db07dea4
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
hj kim [Tue, 16 Oct 2018 07:11:01 +0000 (16:11 +0900)]
just modify parameter type
Change-Id: Iac2cb1c4d1b3c2e679223061d01b3cea3dfeb145
hj kim [Tue, 16 Oct 2018 06:49:07 +0000 (15:49 +0900)]
Remove unused APIs
Change-Id: Iebcd15b636ea69c16cceecd73d1e487f8f521fff
jiyong.min [Tue, 16 Oct 2018 02:05:40 +0000 (11:05 +0900)]
Remove useless codes and rearrange codes
Change-Id: I67c8096fb0c7a22dd0b72544942afac7e8280522
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
hj kim [Mon, 15 Oct 2018 08:09:31 +0000 (17:09 +0900)]
Unify simple APIs
Change-Id: I1d1135ca286bd19da4b0d65f2010f41e8222304b
jiyong.min [Mon, 15 Oct 2018 06:53:34 +0000 (15:53 +0900)]
Remove unused variable(color_map)
Change-Id: Ib29d415b5182dcf59bfbbab9bc53c2c22ac014f0
jiyong.min [Sun, 14 Oct 2018 22:55:23 +0000 (07:55 +0900)]
Change 'gif_image_s' to 'mm_image_info_s' as the unified structure for raw image is used
Change-Id: I201e87505947b850b32ccb902bec6c8c053b269c
jiyong.min [Fri, 12 Oct 2018 04:44:55 +0000 (13:44 +0900)]
Remove `ext_blocks` from gif_image_s
Change-Id: I3a502c1b30196123b5ae3fc64e71f29de1170dff
jiyong.min [Fri, 12 Oct 2018 04:06:49 +0000 (13:06 +0900)]
Remove `GifImageDesc` from gif_image_s
Change-Id: I5c8d9a8fdd2c6d95dfce3733c8a1853289735081
jiyong.min [Fri, 12 Oct 2018 03:59:50 +0000 (12:59 +0900)]
Remove graphic_control_block from gif_image_s
Change-Id: I0226464617487cc851fa5d1897cfd719dec67c83
jiyong.min [Fri, 12 Oct 2018 03:53:19 +0000 (12:53 +0900)]
Remove 'intermediate_image' buffer from gif_image_s
Change-Id: I4f7a59a38c76bd9bf4bbb7f727e767ee77cb1a75
jiyong.min [Fri, 12 Oct 2018 01:39:43 +0000 (10:39 +0900)]
Seperate mm_util_gif_encode_gif to `mm_util_encode_to_gif_file` and `mm_util_encode_to_gif_memory`
Change-Id: I7dd685405ce87e6f7d32ef10eb777a056d743719
jiyong.min [Fri, 12 Oct 2018 00:37:25 +0000 (09:37 +0900)]
Replace mm_util_gif_format to mm_image_info_s
Change-Id: Iccea411e9d3faacaea592ec8677ab488df581518
jiyong.min [Thu, 11 Oct 2018 22:59:11 +0000 (07:59 +0900)]
Remove unused a-gif functions
Change-Id: I5cbf761b808b54ab8cbf24f5038ad28b913e5699
hj kim [Thu, 11 Oct 2018 07:48:32 +0000 (16:48 +0900)]
Just update debug msg and remove redundant codes
Change-Id: Ie2c49dceab862f2ce92c910dc9fec8decd3dcacf
hj kim [Thu, 11 Oct 2018 06:22:59 +0000 (15:22 +0900)]
Bug fix of creating test result files
Change-Id: I0976b049004f1d5d42900477b06ea872ade25a9f
hj kim [Thu, 11 Oct 2018 06:04:12 +0000 (15:04 +0900)]
Remove transform async related test code and bug fix
Change-Id: If458a8f87490ce1f5a7f7a0a9c53e40b311f11e0
hj kim [Wed, 10 Oct 2018 08:42:39 +0000 (17:42 +0900)]
Remove mm_util_imgp_h
Change-Id: Iea8e8654b44efb6aa9d4462beae8219408db330f
hj kim [Wed, 10 Oct 2018 08:33:26 +0000 (17:33 +0900)]
Remove mm_util_color_image_h
Change-Id: Ibe89dfc80ca55be574b8bca3f3d5acc60a02324c
hj kim [Wed, 10 Oct 2018 07:11:25 +0000 (16:11 +0900)]
Move callback related code to CAPI level
Change-Id: Ib0533bbe112e3c26b9bff89aa610bc7cd71888e5
hj kim [Wed, 10 Oct 2018 05:03:44 +0000 (14:03 +0900)]
Move mm_util_s to CAPI level. because it is not used anymore here
Change-Id: Id36a937c7aea7e871067c7590540bd53f0fcfb35
hj kim [Mon, 8 Oct 2018 07:35:58 +0000 (16:35 +0900)]
Move transform code to CAPI except gstreamer related code
Change-Id: I50651b5fdec61a37c310cbe70359a83f4eabf3ca
hj kim [Mon, 8 Oct 2018 03:39:45 +0000 (12:39 +0900)]
Remove unused code
Change-Id: I5d12039bfd353b945744d9fb2bbd04ed3569feaf
hj kim [Fri, 5 Oct 2018 07:32:12 +0000 (16:32 +0900)]
Remove duplicated code and paramters in image-util and libmm-utility
Change-Id: I3552bf2a90ec79092010676548782772129caead
hj kim [Thu, 4 Oct 2018 06:18:29 +0000 (15:18 +0900)]
Unify image info structures because All of them have same format
Change-Id: I6b9bcbd3dd054f49783d8b242a399965fe3ede65
hj kim [Thu, 23 Aug 2018 02:14:13 +0000 (11:14 +0900)]
Just add some debug msg to track error
Change-Id: I2c2d904f4b40d2ac6b976616253154643101e827
jiyong.min [Wed, 22 Aug 2018 23:31:45 +0000 (08:31 +0900)]
Add to check decoding bmp failure and logs
Change-Id: Ia8fbb10ed8a5671b78b02f82b17a454ab01f8d82
jiyong.min [Mon, 16 Jul 2018 09:43:01 +0000 (18:43 +0900)]
Code optimization and fix typo
- Remove unused *pWidth and *pHeight variable
- Replace multiple operand to shift operand due to overflow result
- Fix typo and change logs
Change-Id: Ifc7ceef3ef87159d6eaabca217ebea1a014d6681
yhji [Thu, 19 Jul 2018 04:19:10 +0000 (13:19 +0900)]
Fix Wformat build error
Change-Id: I668ddd474280eb1b5adb5c42d36d8326c5237049
jiyong.min [Mon, 16 Jul 2018 09:17:44 +0000 (18:17 +0900)]
Modify arithmetic operation(multiplication) to shift operation due to possible integer underflow
Change-Id: I78f852341132296f882827a75099eca24954f0cf
Jiyong Min [Wed, 4 Jul 2018 05:11:10 +0000 (14:11 +0900)]
Rename jpeg decoding function
Change-Id: I0cfea3396ce7437e32cd069f751b6da2305965a2
Tae-Young Chung [Tue, 5 Jun 2018 01:17:51 +0000 (10:17 +0900)]
Migration to OpenCV 3.4.1
imgcv has dependency to OpenCV which is upgraded to 3.4.1.
This is a patch for Migration to OpenCV 3.4.1.
Change-Id: I19c988f222c606f3d5084b8b046235c360f1e2dc
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Jiyong Min [Thu, 24 May 2018 05:04:00 +0000 (14:04 +0900)]
Just add logs for reading png
Change-Id: I1c03e7dade49e0ced25e21ffbec162d795243f63
Jiyong Min [Fri, 18 May 2018 00:26:14 +0000 (09:26 +0900)]
Fix warning error
Change-Id: Ifbde08cec6b4bd615d554a8802c37a4e479c9ade
hj kim [Tue, 8 May 2018 06:35:23 +0000 (15:35 +0900)]
Fix svace issue
Change-Id: I5ac5745112782dda43bcb7fecc4565438ce667a9
Jiyong Min [Mon, 30 Apr 2018 05:16:17 +0000 (14:16 +0900)]
Remove unused code
Change-Id: Ib85a27107c181b586b1e820d71dbe28f1ae2dd78
Jiyong Min [Mon, 30 Apr 2018 00:45:56 +0000 (09:45 +0900)]
Fix null termination issue of filename and argv[1]
Change-Id: I080a1cbef7ea4b8e4a3913e4e282884d20a30905
Jiyong Min [Wed, 25 Apr 2018 09:03:53 +0000 (18:03 +0900)]
[info] Add error handling when jpeg has junk data in header
- If jpeg header has junk data, block of header does not start 'FF'.
It is neccessary to read next block till fine block.
Change-Id: Ic4e852bc6a2519b4f4175d5e2812ee3a8aa891cb
Minje Ahn [Wed, 11 Apr 2018 07:31:35 +0000 (16:31 +0900)]
Add fortify option
Change-Id: I26a1d12e99501f403961904c1d2e992ecf767ef1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Mon, 19 Mar 2018 09:29:26 +0000 (18:29 +0900)]
Fix coverity issue
Change-Id: Idd08754b958fd8b334c0d4564102c86c6322c745
Jiyong Min [Fri, 16 Mar 2018 04:56:26 +0000 (13:56 +0900)]
Apply SAFE_STRLCPY
Change-Id: I2e5d1d19292b1116125f55bb8a3ba9a09552196e
Jiyong Min [Thu, 15 Mar 2018 06:37:37 +0000 (15:37 +0900)]
Fix coverity issue
- remove unused image_codec_type due to coverity issue
Change-Id: I2fa4798cbe93a8ff23c3b684087f8821ae1c6666
Jiyong Min [Thu, 15 Mar 2018 01:49:55 +0000 (10:49 +0900)]
Replace encode_with_libjpeg parameters from signed int to unsigned int
and add to check supported format generally
- Value width & height of libjpeg is JDIMENSION(unsigned int)
- Added to check supported format before function works
Change-Id: I9e8ffd44227df2c0e0f6614e392e0b69b12303be
Jiyong Min [Wed, 14 Mar 2018 03:10:11 +0000 (12:10 +0900)]
Remain old function and rename jpeg refactoring
Change-Id: I172fffbed1e3dbab5be8b100b8a4c6b9c4faa2d8
Jiyong Min [Tue, 13 Mar 2018 05:37:08 +0000 (14:37 +0900)]
Remove unneccessary code to check jpeg
Change-Id: Iea21e1309f5d177353e6e074baf3d91035859717
Jiyong Min [Mon, 12 Mar 2018 10:31:42 +0000 (19:31 +0900)]
Change the parameter order of internal functions
(set input parameter before output parameter)
Change-Id: I274aae2dba1d1461d324062b81ae061cc905176c