platform/core/multimedia/libmm-utility.git
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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 years agoUnify simple APIs 78/191278/1
hj kim [Mon, 15 Oct 2018 08:09:31 +0000 (17:09 +0900)]
Unify simple APIs

Change-Id: I1d1135ca286bd19da4b0d65f2010f41e8222304b

5 years agoRemove unused variable(color_map) 64/191264/1
jiyong.min [Mon, 15 Oct 2018 06:53:34 +0000 (15:53 +0900)]
Remove unused variable(color_map)

Change-Id: Ib29d415b5182dcf59bfbbab9bc53c2c22ac014f0

5 years agoChange 'gif_image_s' to 'mm_image_info_s' as the unified structure for raw image... 27/191227/1
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

5 years agoRemove `ext_blocks` from gif_image_s 72/191172/1
jiyong.min [Fri, 12 Oct 2018 04:44:55 +0000 (13:44 +0900)]
Remove `ext_blocks` from gif_image_s

Change-Id: I3a502c1b30196123b5ae3fc64e71f29de1170dff

5 years agoRemove `GifImageDesc` from gif_image_s 68/191168/1
jiyong.min [Fri, 12 Oct 2018 04:06:49 +0000 (13:06 +0900)]
Remove `GifImageDesc` from gif_image_s

Change-Id: I5c8d9a8fdd2c6d95dfce3733c8a1853289735081

5 years agoRemove graphic_control_block from gif_image_s 65/191165/1
jiyong.min [Fri, 12 Oct 2018 03:59:50 +0000 (12:59 +0900)]
Remove graphic_control_block from gif_image_s

Change-Id: I0226464617487cc851fa5d1897cfd719dec67c83

5 years agoRemove 'intermediate_image' buffer from gif_image_s 63/191163/1
jiyong.min [Fri, 12 Oct 2018 03:53:19 +0000 (12:53 +0900)]
Remove 'intermediate_image' buffer from gif_image_s

Change-Id: I4f7a59a38c76bd9bf4bbb7f727e767ee77cb1a75

5 years agoSeperate mm_util_gif_encode_gif to `mm_util_encode_to_gif_file` and `mm_util_encode_t... 50/191150/1
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

5 years agoReplace mm_util_gif_format to mm_image_info_s 42/191142/1
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

5 years agoRemove unused a-gif functions 38/191138/3
jiyong.min [Thu, 11 Oct 2018 22:59:11 +0000 (07:59 +0900)]
Remove unused a-gif functions

Change-Id: I5cbf761b808b54ab8cbf24f5038ad28b913e5699

5 years agoJust update debug msg and remove redundant codes 86/191086/1
hj kim [Thu, 11 Oct 2018 07:48:32 +0000 (16:48 +0900)]
Just update debug msg and remove redundant codes

Change-Id: Ie2c49dceab862f2ce92c910dc9fec8decd3dcacf

5 years agoBug fix of creating test result files 63/191063/1
hj kim [Thu, 11 Oct 2018 06:22:59 +0000 (15:22 +0900)]
Bug fix of creating test result files

Change-Id: I0976b049004f1d5d42900477b06ea872ade25a9f

5 years agoRemove transform async related test code and bug fix 60/191060/2
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

5 years agoRemove mm_util_imgp_h 93/190993/1
hj kim [Wed, 10 Oct 2018 08:42:39 +0000 (17:42 +0900)]
Remove mm_util_imgp_h

Change-Id: Iea8e8654b44efb6aa9d4462beae8219408db330f

5 years agoRemove mm_util_color_image_h 90/190990/1
hj kim [Wed, 10 Oct 2018 08:33:26 +0000 (17:33 +0900)]
Remove mm_util_color_image_h

Change-Id: Ibe89dfc80ca55be574b8bca3f3d5acc60a02324c

5 years agoMove callback related code to CAPI level 78/190978/1
hj kim [Wed, 10 Oct 2018 07:11:25 +0000 (16:11 +0900)]
Move callback related code to CAPI level

Change-Id: Ib0533bbe112e3c26b9bff89aa610bc7cd71888e5

5 years agoMove mm_util_s to CAPI level. because it is not used anymore here 69/190969/1
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

5 years agoMove transform code to CAPI except gstreamer related code 78/190878/1
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

5 years agoRemove unused code 50/190850/2
hj kim [Mon, 8 Oct 2018 03:39:45 +0000 (12:39 +0900)]
Remove unused code

Change-Id: I5d12039bfd353b945744d9fb2bbd04ed3569feaf

5 years agoRemove duplicated code and paramters in image-util and libmm-utility 67/190767/1
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

5 years agoUnify image info structures because All of them have same format 10/190610/1
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

5 years agoJust add some debug msg to track error 01/187401/1 accepted/tizen/5.0/unified/20181102.014903 accepted/tizen/unified/20180824.062636 submit/tizen/20180823.021953 submit/tizen_5.0/20181101.000003
hj kim [Thu, 23 Aug 2018 02:14:13 +0000 (11:14 +0900)]
Just add some debug msg to track error

Change-Id: I2c2d904f4b40d2ac6b976616253154643101e827

5 years agoAdd to check decoding bmp failure and logs 95/187395/1
jiyong.min [Wed, 22 Aug 2018 23:31:45 +0000 (08:31 +0900)]
Add to check decoding bmp failure and logs

Change-Id: Ia8fbb10ed8a5671b78b02f82b17a454ab01f8d82

5 years agoCode optimization and fix typo 09/184209/5 accepted/tizen/unified/20180803.172007 submit/tizen/20180802.005217
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

5 years agoFix Wformat build error 79/184579/1 accepted/tizen/unified/20180724.073346 submit/tizen/20180723.044727
yhji [Thu, 19 Jul 2018 04:19:10 +0000 (13:19 +0900)]
Fix Wformat build error

Change-Id: I668ddd474280eb1b5adb5c42d36d8326c5237049

5 years agoModify arithmetic operation(multiplication) to shift operation due to possible intege... 08/184208/2 accepted/tizen/unified/20180718.154230 submit/tizen/20180717.054420
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

5 years agoRename jpeg decoding function 78/183278/2 accepted/tizen/unified/20180706.062139 submit/tizen/20180704.232304
Jiyong Min [Wed, 4 Jul 2018 05:11:10 +0000 (14:11 +0900)]
Rename jpeg decoding function

Change-Id: I0cfea3396ce7437e32cd069f751b6da2305965a2

5 years agoMigration to OpenCV 3.4.1 16/181916/1 accepted/tizen/unified/20180621.141332 submit/tizen/20180620.034203 submit/tizen/20180620.084620
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>
6 years agoJust add logs for reading png 02/180002/1 accepted/tizen/unified/20180618.151411 submit/tizen/20180524.083402 submit/tizen/20180614.015738
Jiyong Min [Thu, 24 May 2018 05:04:00 +0000 (14:04 +0900)]
Just add logs for reading png

Change-Id: I1c03e7dade49e0ced25e21ffbec162d795243f63

6 years agoFix warning error 10/179410/1 accepted/tizen/unified/20180521.003621 submit/tizen/20180518.004425
Jiyong Min [Fri, 18 May 2018 00:26:14 +0000 (09:26 +0900)]
Fix warning error

Change-Id: Ifbde08cec6b4bd615d554a8802c37a4e479c9ade

6 years agoFix svace issue 09/178109/1 accepted/tizen/unified/20180509.072858 submit/tizen/20180508.063724
hj kim [Tue, 8 May 2018 06:35:23 +0000 (15:35 +0900)]
Fix svace issue

Change-Id: I5ac5745112782dda43bcb7fecc4565438ce667a9

6 years agoRemove unused code 05/177705/2
Jiyong Min [Mon, 30 Apr 2018 05:16:17 +0000 (14:16 +0900)]
Remove unused code

Change-Id: Ib85a27107c181b586b1e820d71dbe28f1ae2dd78

6 years agoFix null termination issue of filename and argv[1] 27/177427/1 accepted/tizen/unified/20180504.063600 submit/tizen/20180502.024929
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

6 years ago[info] Add error handling when jpeg has junk data in header 98/177098/2
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

6 years agoAdd fortify option 29/175629/1 accepted/tizen/unified/20180423.062736 submit/tizen/20180419.231843
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>
6 years agoFix coverity issue 57/173057/2 accepted/tizen/unified/20180321.060749 submit/tizen/20180320.040253
hj kim [Mon, 19 Mar 2018 09:29:26 +0000 (18:29 +0900)]
Fix coverity issue

Change-Id: Idd08754b958fd8b334c0d4564102c86c6322c745

6 years agoApply SAFE_STRLCPY 05/172805/1 submit/tizen/20180316.051336
Jiyong Min [Fri, 16 Mar 2018 04:56:26 +0000 (13:56 +0900)]
Apply SAFE_STRLCPY

Change-Id: I2e5d1d19292b1116125f55bb8a3ba9a09552196e

6 years agoFix coverity issue 76/172676/7
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

6 years agoReplace encode_with_libjpeg parameters from signed int to unsigned int 21/172621/2
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

6 years agoRemain old function and rename jpeg refactoring 32/172432/2 accepted/tizen/unified/20180315.061339 submit/tizen/20180314.004633
Jiyong Min [Wed, 14 Mar 2018 03:10:11 +0000 (12:10 +0900)]
Remain old function and rename jpeg refactoring

Change-Id: I172fffbed1e3dbab5be8b100b8a4c6b9c4faa2d8

6 years agoRemove unneccessary code to check jpeg 72/172272/1
Jiyong Min [Tue, 13 Mar 2018 05:37:08 +0000 (14:37 +0900)]
Remove unneccessary code to check jpeg

Change-Id: Iea21e1309f5d177353e6e074baf3d91035859717

6 years agoChange the parameter order of internal functions 84/172184/1
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

6 years agoRemove jpeg decoding/encoding with turbo API because it is not stable 83/172183/1
Jiyong Min [Mon, 12 Mar 2018 10:27:01 +0000 (19:27 +0900)]
Remove jpeg decoding/encoding with turbo API because it is not stable

Change-Id: I59683cf0d608b0f782b23966f7479744bbcd1a7e

6 years agoreading & writing png code refactoring 74/171874/3
Jiyong Min [Thu, 8 Mar 2018 01:30:16 +0000 (10:30 +0900)]
reading & writing png code refactoring

Change-Id: I213c8c0f7b4475d1864d50410a1202b221e4d6b1
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoreading & writing bmp code refactoring 05/171705/5
Jiyong Min [Wed, 7 Mar 2018 00:22:03 +0000 (09:22 +0900)]
reading & writing bmp code refactoring

Change-Id: I0078b61fe5e8cc42220231e78153f1f4bc8be4b4
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoUse size_t for buffer size 76/171676/2
hj kim [Tue, 6 Mar 2018 10:25:06 +0000 (19:25 +0900)]
Use size_t for buffer size

Change-Id: I7bf0dad5063003c69f17874d4df6b18869614114

6 years agoUnify the type of the buffer size from 'unsigned int'/'unsigned long' to 'size_t' 71/171671/2
Jiyong Min [Tue, 6 Mar 2018 09:44:00 +0000 (18:44 +0900)]
Unify the type of the buffer size from 'unsigned int'/'unsigned long' to 'size_t'

Change-Id: Ibbc37e0c3b5efde47c3d546fe10716c2b2292142
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoChange the order of the parameters 82/171582/3
Jiyong Min [Tue, 6 Mar 2018 04:52:46 +0000 (13:52 +0900)]
Change the order of the parameters

 - The order is input parameter before output parameter.
 - The decoded data is composed with width, height, format, data and size.
 - The source data of encoding is replaced to the decoded data.

Change-Id: Idf1de7e1515d5e5bc25e375031f81faaacdc07ba
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoRemove unused function 81/171581/1
Jiyong Min [Tue, 6 Mar 2018 04:48:05 +0000 (13:48 +0900)]
Remove unused function

Change-Id: I36d02b3c97227c6d1e6bea87662d9e4dfef29ccf
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoMerge "Fix typo and TAINTED_INT svace issue" into tizen
Jiyong Min [Tue, 6 Mar 2018 04:44:53 +0000 (04:44 +0000)]
Merge "Fix typo and TAINTED_INT svace issue" into tizen

6 years agoBuild error fix 79/171579/1 accepted/tizen/unified/20180307.071315 submit/tizen/20180305.053300
hj kim [Tue, 6 Mar 2018 04:21:41 +0000 (13:21 +0900)]
Build error fix

Change-Id: I16f46edb65f3eb4808b68400bbc32139102cb309

6 years agoFix typo and TAINTED_INT svace issue 71/171571/1
Jiyong Min [Tue, 6 Mar 2018 01:17:48 +0000 (10:17 +0900)]
Fix typo and TAINTED_INT svace issue

Change-Id: I71664d4f8cdf26e85371231873c8170add4474ea
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoCode Refactoring for testsuite 94/171494/3
Jiyong Min [Mon, 5 Mar 2018 06:33:22 +0000 (15:33 +0900)]
Code Refactoring for testsuite

 - mm_util_bmp_testsuite
 - mm_util_jpeg_testsuite
 - mm_util_png_testsuite

Change-Id: I21b4f457152d9a5b1f20b8aa23c7cfbbaf0d9723
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoCode Refactoring - wrong parameter usages 86/171286/2
Jiyong Min [Wed, 28 Feb 2018 07:35:04 +0000 (16:35 +0900)]
Code Refactoring - wrong parameter usages

Change-Id: Ic48a798223eb64b817302520a26a63320b24fc31
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoCode Refactoring - remove unneccessary extern function 32/171232/1 submit/tizen/20180228.025609
Jiyong Min [Wed, 28 Feb 2018 00:16:30 +0000 (09:16 +0900)]
Code Refactoring - remove unneccessary extern function

Change-Id: Idbffd3ce9337a9b73e4a06b35a736f7b5ef2ab0d
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoCode Refactoring - remove inefficient functions to set PNG value 31/171231/1
Jiyong Min [Tue, 27 Feb 2018 23:33:03 +0000 (08:33 +0900)]
Code Refactoring - remove inefficient functions to set PNG value

Change-Id: I72a46e6ed9fa264a283ec1805751db5f5a6422fa
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoCode Refactoring - remove unused PNG progressive decoding 28/171228/4
Jiyong Min [Tue, 27 Feb 2018 23:24:37 +0000 (08:24 +0900)]
Code Refactoring - remove unused PNG progressive decoding

Change-Id: I235a533f148b3dee407dd5a319c10be873e6d2e3
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoRemove abnormal free the decoded buffer to fix crash issue 18/171018/1 accepted/tizen/unified/20180226.142324 submit/tizen/20180223.061228
Jiyong Min [Mon, 26 Feb 2018 00:47:21 +0000 (09:47 +0900)]
Remove abnormal free the decoded buffer to fix crash issue

Change-Id: I01da12ea31669cd9da1e572f52cea99d4eb3642d
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoChange unsigned int to size_t for buffer_size 97/170897/3
hj kim [Fri, 23 Feb 2018 05:11:21 +0000 (14:11 +0900)]
Change unsigned int to size_t for buffer_size

Change-Id: Iefcb87e8a4d834602a9689be5061d5cb8d13bf0d

6 years agoChange unsigned int to size_t for buffer_size 67/170867/3
hj kim [Fri, 23 Feb 2018 02:43:05 +0000 (11:43 +0900)]
Change unsigned int to size_t for buffer_size

Change-Id: Idb5e77b25a02d8ad53f7ada899f365c75be747ec

6 years agoUnify __mm_image_encode_to_jpeg_memory_with_libjpeg() and __mm_image_encode_to_jpeg_f... 16/170816/2
hj kim [Thu, 22 Feb 2018 09:07:33 +0000 (18:07 +0900)]
Unify __mm_image_encode_to_jpeg_memory_with_libjpeg() and __mm_image_encode_to_jpeg_file_with_libjpeg() to __mm_image_encode__with_libjpeg()

Change-Id: I77b3edc39c39218be412f7ef9a5574406722188a

6 years agoUnify __mm_image_decode_from_jpeg_file_with_libjpeg() and __mm_image_decode_from_jpeg... 85/170785/1
hj kim [Thu, 22 Feb 2018 05:59:50 +0000 (14:59 +0900)]
Unify __mm_image_decode_from_jpeg_file_with_libjpeg() and __mm_image_decode_from_jpeg_memory_with_libjpeg() to __mm_image_decode_with_libjpeg()

Change-Id: I200d2f08eb0eebe234fa058e4b4c3d9b650b7cfb

6 years agoRemove mm_util_decode_from_jpeg_memory() and mm_util_decode_from_jpeg_file() API... 27/170727/2
hj kim [Thu, 22 Feb 2018 01:08:22 +0000 (10:08 +0900)]
Remove mm_util_decode_from_jpeg_memory() and mm_util_decode_from_jpeg_file() API. because those are almost same as _with_downscale() API

Change-Id: I113bb58a73153d91c0d08c602e4c5283dbc996a4

6 years agoCode Refactoring - remove unused jpeg code 31/170731/3
Jiyong Min [Thu, 22 Feb 2018 01:23:11 +0000 (10:23 +0900)]
Code Refactoring - remove unused jpeg code

 - remove unused define and variables
 - change #ifdef LIBJPEG_TURBO boundary
 - use common ROUND_UP_X & ROUND_DOWN_X for imgp & jpeg

Change-Id: I0fd96993b1e5802a42c9a34b17c027d2c25f35d5
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoModify mm_util_convert_colorspace() API to receive allocated buffer and buffer info 68/170668/1
hj kim [Wed, 21 Feb 2018 08:59:01 +0000 (17:59 +0900)]
Modify mm_util_convert_colorspace() API to receive allocated buffer and buffer info

Change-Id: I606b2789a900cbb78cfc01d38aef2e54d9667e25

6 years agoJust update debug msg 08/170608/3
hj kim [Wed, 21 Feb 2018 04:53:44 +0000 (13:53 +0900)]
Just update debug msg

Change-Id: I1fca7f465ad81e9dfad44d1fca11e729f3118c07

6 years agoModify mm_util_resize_image() API to receive allocated buffer and buffer info 53/170453/3
hj kim [Tue, 20 Feb 2018 06:10:46 +0000 (15:10 +0900)]
Modify mm_util_resize_image() API to receive allocated buffer and buffer info

Change-Id: I46bcdf8ef91f999cdddab5415d1daa5d371425c3

6 years agoModify mm_util_rotate_image() API to receive allocated buffer and buffer info 23/170423/3
hj kim [Tue, 20 Feb 2018 04:25:25 +0000 (13:25 +0900)]
Modify mm_util_rotate_image() API to receive allocated buffer and buffer info

Change-Id: Ie4bf988dc07230b2a0f66c7ce1a8d335434c8128

6 years agoAdd missing modification for imagesize replacement 75/170575/1
Jiyong Min [Wed, 21 Feb 2018 01:07:28 +0000 (10:07 +0900)]
Add missing modification for imagesize replacement

Change-Id: I4179839c22ba116d3b18fdfa607fd34e0251ed5a
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agoModify the range of 'imgsize' from 'unsigned int' to 'Size_t' 26/170426/2 submit/tizen/20180220.054545
Jiyong Min [Tue, 20 Feb 2018 05:05:23 +0000 (14:05 +0900)]
Modify the range of 'imgsize' from 'unsigned int' to 'Size_t'
(fix 64bit error)

Change-Id: I440601c12e34cfae2ca8cf75580bb5990bd24d86
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
6 years agochange dst_buf_size to res_buffer_size 92/170392/2 submit/tizen/20180220.014003
hj kim [Mon, 19 Feb 2018 23:59:52 +0000 (08:59 +0900)]
change dst_buf_size to res_buffer_size

Change-Id: I9e351f40cbd1aead859684111358e2649dd2474c

6 years agoRemove useless code. only RGB format can be round up in current gstreamer code 58/170358/1
hj kim [Mon, 19 Feb 2018 09:56:30 +0000 (18:56 +0900)]
Remove useless code. only RGB format can be round up in current gstreamer code

Change-Id: Ibfe95c1e38edc14bd601f1d02bc60c4ff3842213

6 years agoRemove useless buffer calcurate code 52/170352/1
hj kim [Mon, 19 Feb 2018 09:31:52 +0000 (18:31 +0900)]
Remove useless buffer calcurate code

Change-Id: Ic32cf33c9acad51cebeadee457e3fcec04cf499b

6 years agoJust update debug msg 46/170346/2
hj kim [Mon, 19 Feb 2018 08:49:11 +0000 (17:49 +0900)]
Just update debug msg

Change-Id: Ie1f91df536342038ea6eb5d7a0e4168241286d15

6 years agoModify mm_util_crop_image() API to receive allocated buffer and buffer info 38/170338/2
hj kim [Mon, 19 Feb 2018 08:07:12 +0000 (17:07 +0900)]
Modify mm_util_crop_image() API to receive allocated buffer and buffer info

Change-Id: If059b7e93e7a13bbb859e58d64d92c45c62674ed

6 years agoAdd to calculate the buffer size for NV21 colorsapce 12/170312/4 submit/tizen/20180219.051103
Jiyong Min [Mon, 19 Feb 2018 04:33:39 +0000 (13:33 +0900)]
Add to calculate the buffer size for NV21 colorsapce

Change-Id: I25da32e7cf667b58bfb1d5e4018b154043a848c0

6 years agoAdd safe_fopen safe_fclose to check realpath and remove useless code 65/170165/5
Jiyong Min [Wed, 14 Feb 2018 02:02:19 +0000 (11:02 +0900)]
Add safe_fopen safe_fclose to check realpath and remove useless code

Change-Id: Ib1d743adcb196e77d6b9409e2572d6f54762aef4

6 years agoFix test code and update some debug msg 84/170184/2
hj kim [Wed, 14 Feb 2018 05:10:29 +0000 (14:10 +0900)]
Fix test code and update some debug msg

Change-Id: I89a04243847ca46a645bba1474263e96df6511e6

6 years agoAdd code to check color format before doing transform. and remove useless code of... 51/170151/2
hj kim [Wed, 14 Feb 2018 00:31:18 +0000 (09:31 +0900)]
Add code to check color format before doing transform. and remove useless code of convert format check

Change-Id: Iada70374163342893c1c58c3d839a4d4fcf4ec5f

6 years agoRemove useless format_label 85/170085/2
hj kim [Tue, 13 Feb 2018 08:12:28 +0000 (17:12 +0900)]
Remove useless format_label

Change-Id: I8aa9106709c771c6a058070ea95d4619c18dfc68

6 years agoCode Refactoring: apply unified color format 52/169652/5 accepted/tizen/unified/20180214.144545 submit/tizen/20180212.075159
Jiyong Min [Thu, 8 Feb 2018 06:34:05 +0000 (15:34 +0900)]
Code Refactoring: apply unified color format

 - Add 'mmutil_common' library for using all
 - Replace color interface 'mmutil_imgp' to 'mmutil_common' library
 - Unify color formats
 - Remove unused replacement in spec file
 - Remove unused 'format' parameter of internal crop function

Change-Id: I308e484b90b958e870959214215c8f649b68e698

6 years agoRemove memory allocation code. because mm_imgp is changed to do alloc memory 43/169543/1
hj kim [Wed, 7 Feb 2018 09:01:30 +0000 (18:01 +0900)]
Remove memory allocation code. because mm_imgp is changed to do alloc memory

Change-Id: Icd030f536ab7c842845ec8f26fe47c4c18dc52e5

6 years agoCode refactoring. unify duplicated code 60/169460/1
hj kim [Wed, 7 Feb 2018 04:34:43 +0000 (13:34 +0900)]
Code refactoring. unify duplicated code

Change-Id: I64069b9568c59a9bfc306029dd3f10f644e65c31