platform/core/multimedia/libmm-utility.git
4 months agoBug fix. Modify the error checking for jpeg_read_scanlines() function 82/318682/3 accepted/tizen_unified_x_asan accepted/tizen/unified/20250123.054008 accepted/tizen/unified/x/20250123.071355 accepted/tizen/unified/x/asan/20250211.003431
Jiyong [Wed, 22 Jan 2025 05:58:49 +0000 (14:58 +0900)]
Bug fix. Modify the error checking for jpeg_read_scanlines() function

 - In normal cases, the msg_code is not 0 for logging.
   So we change the error checking to check return value.

Change-Id: I5c1a2d4f77bd72f663b913a2533b8d6a0c90b22d

4 months agoCode cleanup. Separate allocating buffer from '__gif_convert_to_rgba' function 75/318675/4
Jiyong [Wed, 22 Jan 2025 04:14:26 +0000 (13:14 +0900)]
Code cleanup. Separate allocating buffer from '__gif_convert_to_rgba' function

Change-Id: I05f4fca619c7c4e28acb7e739cc36ca6c4daa9d4

4 months agoVersion up 16/318316/1
hjkim [Wed, 15 Jan 2025 10:00:12 +0000 (19:00 +0900)]
Version up

Change-Id: Id67d6eb35358e2f35fbbba0f746549e43520326b

4 months agoCheck invalid color index 19/318219/5
hjkim [Tue, 14 Jan 2025 08:13:42 +0000 (17:13 +0900)]
Check invalid color index

[Issue]
  A crash occurred while processing black-and-white(ColorMapObject's ColorCount is 2) image.

Change-Id: I30cc793e65e357fe12407dc870f6a48279e38683

4 months agoCheck error to prevent infinite loop 03/318203/8
hjkim [Tue, 14 Jan 2025 06:24:56 +0000 (15:24 +0900)]
Check error to prevent infinite loop

[Issue]
  A crash occurred in while loop. Fix Fuzzing issue.

Change-Id: If1da0937431454079f09d11456e28d5ce676933f

4 months agoCheck image size before assigning memory 74/318174/7
hjkim [Tue, 14 Jan 2025 03:11:43 +0000 (12:11 +0900)]
Check image size before assigning memory

[Issue]
  A crash occurred while allocating big-size memory due to incorrect size. Fix fuzzying issues

Change-Id: Ia65dbea977544afe5cf4e802bf659596ef84310b

4 months agoBug fix. set std error_exit to __my_error_exit 78/318178/2
Jiyong [Tue, 14 Jan 2025 04:14:41 +0000 (13:14 +0900)]
Bug fix. set std error_exit to __my_error_exit

[Issue]
  The standard error_exit terminates application if parsing error occurs.

[Solution]
  The __my_error_exit should override std error_exit.
  However, it didn't override it due to an mistake.
  The std error functions is replaced to __my_error_exit after getting it.

Change-Id: Ic6899da6e6eff10bacb97decf9cc6e97d72ef7a9

5 months agoBug fix. add missing DGifCloseFile() for invalid width/height 51/317851/4
Jiyong [Thu, 9 Jan 2025 02:47:01 +0000 (11:47 +0900)]
Bug fix. add missing DGifCloseFile() for invalid width/height

Change-Id: I3288d0e932452a13b6158b54bbd06fabbb996d28

11 months agoBug fix. insecure strncmp 76/314376/1 accepted/tizen_9.0_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain tizen_9.0 accepted/tizen/9.0/unified/20241030.231443 accepted/tizen/unified/20240712.160041 accepted/tizen/unified/dev/20240715.080538 accepted/tizen/unified/toolchain/20240812.132738 accepted/tizen/unified/x/20240715.042502 accepted/tizen/unified/x/asan/20240813.231026 tizen_9.0_m2_release
Jiyong [Thu, 11 Jul 2024 03:46:20 +0000 (12:46 +0900)]
Bug fix. insecure strncmp

 - fix svace issue (LIB.INSECURE_STRNCMP)

The problem that such using checks only prefix of string because null-terminator is not checked.
It may be source of vulnarability when using for compariso passwords.
Correct pattern should use strlen(arg) + 1.

Change-Id: Ib66d43aac119b265c462b0ba35519caa3885d631

12 months agoRemove unnecessary executable permissions 75/312475/1 accepted/tizen/unified/20240612.100020 accepted/tizen/unified/dev/20240620.005517 accepted/tizen/unified/toolchain/20240624.121432 accepted/tizen/unified/x/20240612.110452 accepted/tizen/unified/x/asan/20240625.092352
Seungbae Shin [Mon, 10 Jun 2024 12:20:41 +0000 (21:20 +0900)]
Remove unnecessary executable permissions

Change-Id: Ib715a88ab919c9174e50ba0d83df73fdaa554a8b

12 months agoModify unreachable code 94/312394/2 accepted/tizen/unified/20240611.122510 accepted/tizen/unified/x/20240612.025920
Jiyong [Sun, 9 Jun 2024 23:30:19 +0000 (08:30 +0900)]
Modify unreachable code

 - Fix svace issue

Change-Id: I6f9a4e8842f0bbd5ad05e8d02344f1beada3edc1

13 months agoAdd NV12 format support for cropping image 80/310280/1 accepted/tizen/unified/20240502.044626 accepted/tizen/unified/toolchain/20240507.011831 accepted/tizen/unified/x/20240503.091134
Jiyong [Thu, 25 Apr 2024 01:59:19 +0000 (10:59 +0900)]
Add NV12 format support for cropping image

Change-Id: I5f111bd4bc014647f29c48ce5f85af5c18e60b12

14 months agoRemove unused LICENSE file 58/309458/2 accepted/tizen/unified/20240412.141419 accepted/tizen/unified/x/20240415.014007
Jiyong [Thu, 11 Apr 2024 04:45:21 +0000 (13:45 +0900)]
Remove unused LICENSE file

Change-Id: I22f81342b2f41b6bca2e845d050537cbb5672a90

14 months agoRemove unused imgp_type_e 49/309249/1 accepted/tizen/unified/20240411.142713 accepted/tizen/unified/x/20240412.023843
Jiyong [Mon, 8 Apr 2024 01:45:39 +0000 (10:45 +0900)]
Remove unused imgp_type_e

Change-Id: I711ccd4422a982c8ceb275c54a9ced2f57135906

14 months agoBug fix. add lock for GraphicsMagick function 07/309107/6 accepted/tizen/unified/20240408.160543 accepted/tizen/unified/x/20240409.070659
Jiyong [Thu, 4 Apr 2024 23:27:12 +0000 (08:27 +0900)]
Bug fix. add lock for GraphicsMagick function

  - DF240401-00513

[Cause]
  The crach occurs during destroying semaphore lock when
  multi-threads are processed(decoding).
  In GraphicsMagick, InitialMagick() & DestroyMagick() functions
  are not thread-safe.

[Solution]
  So locker is added for GraphicsMagick.

Change-Id: Ia19a89dd32994aec5cda5bcdd13acbbf449da947

14 months agoRevert "Modify added/deprecated enums since libjxl-0.9.0" 89/308289/2 accepted/tizen/unified/20240322.174248 accepted/tizen/unified/x/20240326.073357
Jiyong Min [Thu, 21 Mar 2024 02:14:56 +0000 (02:14 +0000)]
Revert "Modify added/deprecated enums since libjxl-0.9.0"

This reverts commit 74c7d26ddcb73ec0a138ee8232421f80000f2fc7.

Change-Id: I6d99587a0caa771a5ce64a1248bdf6acd60c6b81

15 months agoRemove unused code 32/307432/2 accepted/tizen/unified/20240311.170415 accepted/tizen/unified/x/20240313.092059
hjkim [Fri, 8 Mar 2024 07:49:11 +0000 (16:49 +0900)]
Remove unused code

Some image-util native APIs are removed. so remove related code here as well.

Change-Id: I17e65256c26cad926f094ce699add9d9b23970f0

15 months agoFix coverity issue (RESOURCE_LEAK) 14/307114/2 accepted/tizen/unified/20240306.094106 accepted/tizen/unified/toolchain/20240311.065438 accepted/tizen/unified/x/20240307.010814
Jiyong [Tue, 5 Mar 2024 04:29:04 +0000 (13:29 +0900)]
Fix coverity issue (RESOURCE_LEAK)

- Variable '_module' leaks the storage when 'module' is null

Change-Id: I7ddc9e1c70a0fedddf417fc823bd4a021955237c

15 months agoUse ProfileImage instead of DeleteImageProfile 03/306503/2 accepted/tizen/unified/20240226.134008 accepted/tizen/unified/x/20240226.135037
minje.ahn [Thu, 22 Feb 2024 06:43:12 +0000 (15:43 +0900)]
Use ProfileImage instead of DeleteImageProfile

Change-Id: Id7c2088ad3ee778e070862bddd090fb9f1fe8e4a
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoPrevent unintentional progress 75/306475/2
minje.ahn [Thu, 22 Feb 2024 01:54:58 +0000 (10:54 +0900)]
Prevent unintentional progress

[issue]
If 'option' is NULL, JPEG definition is added regardless of the file type.

[fix]
Add 'option' checker.

Change-Id: Ib0d143a27e50d3a363fb4385c225fd280b69be6f
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoAdd missing header 63/306463/1
minje.ahn [Thu, 22 Feb 2024 00:56:48 +0000 (09:56 +0900)]
Add missing header

Append stddef.h for size_t

Change-Id: Ic25289c92b38c4c78946e1408a40db5a4d5c3273
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoRemove meaningless developer contact info 19/306419/2
hjkim [Wed, 21 Feb 2024 06:57:05 +0000 (15:57 +0900)]
Remove meaningless developer contact info

And, remove useless include files

Change-Id: If551ad5f28458ca2acc5f34f83be15ae00f8e3ec

15 months agoFix type misuse 82/306382/1
minje.ahn [Wed, 21 Feb 2024 03:38:27 +0000 (12:38 +0900)]
Fix type misuse

Change-Id: Ia5a5b2849b2bf37e653d9734a8c7205a0e144f68
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoUse fprintf intead of g_print, printf in testsuite 20/306320/2
minje.ahn [Tue, 20 Feb 2024 06:38:23 +0000 (15:38 +0900)]
Use fprintf intead of g_print, printf in testsuite

Change-Id: Icec9e20c46dc424eac3b71a6108711e8b28ec648
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoRemove gio-2.0 dependency 96/306296/1
minje.ahn [Mon, 19 Feb 2024 23:25:39 +0000 (08:25 +0900)]
Remove gio-2.0 dependency

Change-Id: I4fc42b89c8e50c5b3298e237650ead714261da51
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoCode cleanup 65/306065/4 accepted/tizen/unified/20240220.115633 accepted/tizen/unified/20240220.144638 accepted/tizen/unified/x/20240221.033421
minje.ahn [Fri, 16 Feb 2024 02:53:13 +0000 (11:53 +0900)]
Code cleanup

Change-Id: I74d12651c6e92d9a788cfee8774563f7eb561ebd
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoUse dlfnc instead of gmodule 59/306059/4
minje.ahn [Fri, 16 Feb 2024 02:05:13 +0000 (11:05 +0900)]
Use dlfnc instead of gmodule

Change-Id: Iac10a0cb3459e673b4cc4d7a06b150ac31491273
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoMove some APIs to test_internal.h 57/306057/3
minje.ahn [Fri, 16 Feb 2024 02:01:26 +0000 (11:01 +0900)]
Move some APIs to test_internal.h

Change-Id: I944944e4b66df19af4ea12fa491b5df1c0b1a29d
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoUse fclose directly 56/306056/4
minje.ahn [Fri, 16 Feb 2024 01:45:38 +0000 (10:45 +0900)]
Use fclose directly

Already checking for null in all cases.
So no need safe_fclose function.

Change-Id: I9aac0f56862400d0882dd968e152e01a5ba532b0
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoUse function directly 52/306052/4
minje.ahn [Thu, 15 Feb 2024 23:57:45 +0000 (08:57 +0900)]
Use function directly

1. Use g_free instead macro
2. Use g_strlcpy instead macro
3. Remove meaningless NULL setting

Change-Id: I58fe770c17242871041a8ca424e40052985fa9d1
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoMove function to define 50/306050/4
minje.ahn [Thu, 15 Feb 2024 23:08:16 +0000 (08:08 +0900)]
Move function to define

Change-Id: I47b4b3bea73bfe64de3ce0a76ccc2daeac4c2ac8
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoFix CMake deprecation warning 49/306049/4
minje.ahn [Thu, 15 Feb 2024 23:07:35 +0000 (08:07 +0900)]
Fix CMake deprecation warning

Updated minimum version

Change-Id: I82283a6884aab90d88e274ff027de91c594c7fcb
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoUse stdbool instead of gboolean 27/306027/4
minje.ahn [Thu, 15 Feb 2024 08:12:54 +0000 (17:12 +0900)]
Use stdbool instead of gboolean

Change-Id: I9edb79ddacd84d2b4abee6d54ad5612a6077edab
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoRemove unnecessary include 16/306016/1
minje.ahn [Thu, 15 Feb 2024 05:16:36 +0000 (14:16 +0900)]
Remove unnecessary include

Removed glib.h from mm_util_gif.h

Change-Id: Ie7806107967c6abf255221e9a940d2ab4d94edfc
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoAdd 'free_on_destroy' variables for memory release 56/305556/4 accepted/tizen/unified/20240206.094542 accepted/tizen/unified/x/20240206.211047
Jiyong [Mon, 5 Feb 2024 04:05:36 +0000 (13:05 +0900)]
Add 'free_on_destroy' variables for memory release

Change-Id: Ie3cfaa5639e9040afa91ca38fe1bec2435af2e7f

17 months agoAdd new mm_image_create_image2() using weak copy 11/302311/5 accepted/tizen/unified/20240129.163408 accepted/tizen/unified/x/20240205.063901
Jiyong [Tue, 5 Dec 2023 08:12:04 +0000 (17:12 +0900)]
Add new mm_image_create_image2() using weak copy

Change-Id: I96f0f4372eef5213164b6f47e63e8d33baa16445

17 months agoModify added/deprecated enums since libjxl-0.9.0 67/303367/1 accepted/tizen_unified_riscv accepted/tizen/unified/20231228.165755 accepted/tizen/unified/riscv/20240103.054609
Jiyong [Tue, 26 Dec 2023 23:27:26 +0000 (08:27 +0900)]
Modify added/deprecated enums since libjxl-0.9.0

Change-Id: I64d8688e9628e243e925efd2d1241cc2ca6898bf

2 years agoChange 'JxlEncoderOptions' to 'JxlEncoderFrameSettings' 73/290373/3 accepted/tizen/8.0/unified/20231005.093500 accepted/tizen/unified/20230329.013243 tizen_8.0_m2_release
Jiyong Min [Thu, 23 Mar 2023 23:43:38 +0000 (23:43 +0000)]
Change 'JxlEncoderOptions' to 'JxlEncoderFrameSettings'

This reverts commit 0aa9f06ee7fd490ba20b5e1c829b5d357cd27449.
Reason for revert: The libjxl is updated to 0.7.0

Change-Id: I11e3da8ee746f7639da50029999b3d99fcb2dc80

2 years agoRevert "Change 'JxlEncoderOptions' to 'JxlEncoderFrameSettings'" 60/289260/3 accepted/tizen/unified/20230307.163823
jiyong.min [Fri, 3 Mar 2023 09:26:54 +0000 (18:26 +0900)]
Revert "Change 'JxlEncoderOptions' to 'JxlEncoderFrameSettings'"

This reverts commit f2a83867f53c21f7c1c65d594b23d8a23880937a.

- The libjxl contains the highway library to use hardware accelerator.
  Due to the highway library does not support armv8, TV can't use the libjxl.
  The software method is under developement, and it is still unstable.
  So we revert the highway, the libjxl and this change.

Change-Id: Ia7a0a836e9ad009a7e166c31ca60116c13d60e15

2 years agoFix SVACE defect (DEREF_AFTER_NULL) 56/287256/1 accepted/tizen/unified/20230127.161104
hj kim [Thu, 26 Jan 2023 01:36:59 +0000 (10:36 +0900)]
Fix SVACE defect (DEREF_AFTER_NULL)

Change-Id: I694ac1250f6e400a727c79cab336f583b8721d6e

2 years agoChange 'JxlEncoderOptions' to 'JxlEncoderFrameSettings' 01/285301/11 accepted/tizen/unified/20221216.024042
jiyong.min [Thu, 8 Dec 2022 22:07:23 +0000 (07:07 +0900)]
Change 'JxlEncoderOptions' to 'JxlEncoderFrameSettings'

Below functions have been deprecated since libjxl 0.7.0.
 - Use struct JxlEncoderFrameSettings instead of struct JxlEncoderOptions
 - Use JxlEncoderFrameSettingsCreate() instead of JxlEncoderOptionsCreate()
 - Use JxlEncoderSetFrameLossless() instead of JxlEncoderOptionsSetLossless()

Added JxlBasicInfo values due to reinforced error detections
 - Add __set_basic_info_from_pixel_format()
 - Calculate the buffer size because TEMP_DATA_SIZE occur error

Change-Id: Id725f0a69084d8d212f31ec53c5c5d439a891a05

2 years agoBug fix: Modify missing typecast 12/284612/1 accepted/tizen/unified/20221128.014947
jiyong.min [Tue, 15 Nov 2022 01:54:10 +0000 (10:54 +0900)]
Bug fix: Modify missing typecast

Change-Id: I54e91cfab2131bf9e6ead3369cfb340a25879361

2 years agoBug fix. Use 'mm_util_image_h' instead of 'mm_util_image_h*' 34/284134/3 accepted/tizen/unified/20221115.022359
jiyong.min [Thu, 10 Nov 2022 08:21:05 +0000 (17:21 +0900)]
Bug fix. Use 'mm_util_image_h' instead of 'mm_util_image_h*'
for the parameter passing to 'mm_image_debug_image'

Change-Id: Iff01593403b454e2416af3e9eea81b7fcfc227c8

2 years agoAdd typecast to prevent overflow of arithmatic results 73/283073/3 accepted/tizen/unified/20221103.165756
jiyong.min [Tue, 18 Oct 2022 00:48:37 +0000 (09:48 +0900)]
Add typecast to prevent overflow of arithmatic results

Change-Id: I5e465eebb8874eb4481769bd6232a713b7ed11de

2 years agoRemove unnecessary header files 72/283072/1
jiyong.min [Tue, 27 Sep 2022 06:32:09 +0000 (15:32 +0900)]
Remove unnecessary header files

Change-Id: I68eb71577bf81b5b1cd569fbfd6e1f9c08982a0d

2 years agoFix potential buffer overflow 77/281877/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/hotfix/20221116.105434 accepted/tizen/unified/20220927.132306 tizen_7.0_m2_release
jiyong.min [Fri, 23 Sep 2022 00:49:13 +0000 (09:49 +0900)]
Fix potential buffer overflow

- The 'jpeg_write_raw_data()' write 16 lines(heights) due to  DCT size.
- If the height is not a multiple of 16, use rounddown of a multiple of 16
  and remaining height.

Change-Id: Ic4a747817fb543e0d77ec7c764d4c8ad99e4411c

2 years agoAdd coder log for GraphicsMagick 37/281137/5 accepted/tizen/unified/20220919.012613
jiyong.min [Tue, 13 Sep 2022 08:37:58 +0000 (17:37 +0900)]
Add coder log for GraphicsMagick

Change-Id: I9c8ec59b01b56ddbd6454488714709cf1e64bc3b

2 years agoBug fix. modify using wrong value of 'mm_util_resize_and_rotate_P_P' 62/280762/3
jiyong.min [Mon, 5 Sep 2022 01:33:03 +0000 (10:33 +0900)]
Bug fix. modify using wrong value of 'mm_util_resize_and_rotate_P_P'

 - This is the side-effect of 'Change-Id: Ia184d5b651cabebd1b3f2d5f55cde8f92817bee0'.

Change-Id: Ibbd90e9d27bd15dee55675c6b0350f53917df949

2 years agoBug fix: fix return type mismatch 91/277291/1 accepted/tizen/unified/20220711.173820 submit/tizen/20220705.013205 submit/tizen/20220705.034415 submit/tizen/20220710.230649
jiyong.min [Mon, 4 Jul 2022 23:11:43 +0000 (08:11 +0900)]
Bug fix: fix return type mismatch

Change-Id: I2c2fcdd021750dee0efc5d5342f5c82da6289314

2 years agoRefactoring: Integrate redundant checking the parameter and error handling 15/276915/13
jiyong.min [Tue, 28 Jun 2022 01:55:42 +0000 (10:55 +0900)]
Refactoring: Integrate redundant checking the parameter and error handling

 - Checking the parameter has been repeated at several functions.
   So it was moved to check in the internal function before actually used.

Change-Id: Ia184d5b651cabebd1b3f2d5f55cde8f92817bee0

2 years agoRefactoring: Integrate redundant test code 98/276698/18
jiyong.min [Thu, 23 Jun 2022 05:13:35 +0000 (14:13 +0900)]
Refactoring: Integrate redundant test code

Change-Id: I4a503bc12a691fe08fde0384155a77daf33a4df5

2 years agoRefactoring. Integrate converting string to unsigned int 25/276625/8
jiyong.min [Wed, 22 Jun 2022 06:36:53 +0000 (15:36 +0900)]
Refactoring. Integrate converting string to unsigned int

Change-Id: Ie6dc2ac3c2d3b88998460715daaefa1e03cab298

2 years agoRefactoring. Integrate redundant 'get_image_size' functions 19/276619/6
jiyong.min [Wed, 22 Jun 2022 03:55:24 +0000 (12:55 +0900)]
Refactoring. Integrate redundant 'get_image_size' functions

Change-Id: I9a262e261436e265c023060cec8433935031ea94

3 years agoAdd to get the num of threads from media-config 25/274525/5 accepted/tizen/unified/20220608.140042 submit/tizen/20220508.225238 submit/tizen/20220526.000316 submit/tizen/20220606.223347
jiyong.min [Mon, 2 May 2022 01:04:27 +0000 (10:04 +0900)]
Add to get the num of threads from media-config

Change-Id: I748320a5a02be3367c541b107233770f00db3685

3 years agoAdd 'IMG_CODEC_HEIF' 23/274523/1 accepted/tizen/unified/20220505.134645 submit/tizen/20220503.010702
jiyong.min [Sun, 1 May 2022 23:51:37 +0000 (08:51 +0900)]
Add 'IMG_CODEC_HEIF'

Change-Id: I2eebfb71cf89f8991256bca388751d447e55f317

3 years agoFix typo 'readed' and remove unused header 99/274299/2 accepted/tizen/unified/20220428.162639 submit/tizen/20220427.231424
jiyong.min [Tue, 26 Apr 2022 04:41:02 +0000 (13:41 +0900)]
Fix typo 'readed' and remove unused header

Change-Id: I5b023c27f4bcd030478cef661f18b1652b96e495

3 years agoRefactoring file I/O functions 34/274234/5
jiyong.min [Mon, 25 Apr 2022 06:28:34 +0000 (15:28 +0900)]
Refactoring file I/O functions

Change-Id: I5f9631d591d54447046f13f4d309d53f456da17f

3 years agoFix 'GError *error' memory leak 45/274145/2 accepted/tizen/unified/20220426.021424 submit/tizen/20220424.231651
jiyong.min [Fri, 22 Apr 2022 06:07:04 +0000 (15:07 +0900)]
Fix 'GError *error' memory leak

Change-Id: I44995a685e603fcf0fdbf5ab5148dc16f9230bc2

3 years agoRefactoring option validity check 39/273939/9
Seungbae Shin [Mon, 18 Apr 2022 11:37:20 +0000 (20:37 +0900)]
Refactoring option validity check

Change-Id: I2c52e90639fb1766e808c85143c1c9592e42ed29

3 years agoAdd JPEG-XL decode/encode functions 81/273681/14 accepted/tizen/unified/20220424.221513 submit/tizen/20220422.045752
jiyong.min [Tue, 12 Apr 2022 08:19:35 +0000 (17:19 +0900)]
Add JPEG-XL decode/encode functions

Change-Id: I970b99074965a0374cd61ecd2484091ba5e88d56

3 years agocode refactoring. move '_enc_opt_' functions from magick to common 59/273659/6
jiyong.min [Mon, 11 Apr 2022 07:41:33 +0000 (16:41 +0900)]
code refactoring. move '_enc_opt_' functions from magick to common

- To use the same function in new library,
 the functions have been moved from 'mmutil_magick' to 'mmutil_common'.

Change-Id: I7fa200722942c2196249ecd7f75acfbe0bd80a57

3 years agoUpdate debug message 25/270725/1
backto.kim [Tue, 8 Feb 2022 05:33:50 +0000 (14:33 +0900)]
Update debug message

Change-Id: I2a4a527d909cba242eb88a9b4d38172f2f8c0596

3 years agoRemove useless code 08/270708/3
backto.kim [Tue, 8 Feb 2022 03:22:29 +0000 (12:22 +0900)]
Remove useless code

As NEON is no longer used, there is no need for a code that distinguishes GST from NEON.

Change-Id: I8d803a9113f1e93db4be931638b4d9fd008e9680

3 years agoRemove unused NEON related code 01/270701/5
backto.kim [Tue, 8 Feb 2022 02:41:15 +0000 (11:41 +0900)]
Remove unused NEON related code

Change-Id: If08477432961b5115d5d6f1ce558a1e54d606792

3 years agoFix wrong function parameter type 02/270702/1
backto.kim [Tue, 8 Feb 2022 02:45:37 +0000 (11:45 +0900)]
Fix wrong function parameter type

Change-Id: I537f3b750ae846a5d5938008e776fba9642e9f46

3 years agoreplace g_memdup() to g_memdup2() 92/267892/2 accepted/tizen/unified/20211222.230459 submit/tizen/20211212.233427
Jiyong Min [Mon, 13 Dec 2021 04:17:50 +0000 (13:17 +0900)]
replace g_memdup() to g_memdup2()

  - g_memdup() was removed in glib2

Change-Id: I6b2554e5e48d582c978d70dc097a60078fa52b6d

3 years agobug fix. add the set of yuv colorspace for jpeg 03/260803/2 accepted/tizen/6.5/unified/20211028.115657 accepted/tizen/unified/20210707.070854 submit/tizen/20210706.071755 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release
Jiyong Min [Fri, 2 Jul 2021 04:11:36 +0000 (13:11 +0900)]
bug fix. add the set of yuv colorspace for jpeg

  [Problem]
    Decoding jpeg with yuv colorspace return broken image.
  [Cause]
    The j_color_space for yuv was not set.
  [Solution]
    We add the set of yuv colorspace for jpeg.

Change-Id: Ie5567948802c999ebdfddd998c02cee5edf3f03c

4 years agoAdd heif image decoder 72/255072/11 accepted/tizen/unified/20210317.115910 submit/tizen/20210316.062438
jiyong.min [Thu, 11 Mar 2021 22:42:31 +0000 (07:42 +0900)]
Add heif image decoder

Change-Id: I767494f893f5aa4c53de0a442137d2d9304d465f

4 years agoBuild error fix after applying GraphicsMagick 2.0.6 96/248896/4 accepted/tizen/unified/20201209.124934 submit/tizen/20201207.024518
hj kim [Thu, 3 Dec 2020 05:36:56 +0000 (14:36 +0900)]
Build error fix after applying GraphicsMagick 2.0.6

Change-Id: I66d9f0d078202d460ad8ea94161e8777d28903f6

4 years ago[0.2.4] add so file to package 89/245189/2 accepted/tizen/unified/20201102.124426 submit/tizen/20201028.052639
Eunhye Choi [Mon, 5 Oct 2020 07:41:53 +0000 (16:41 +0900)]
[0.2.4] add so file to package

- add common / imgp so file to package

Change-Id: I646fcf00de53b74e12e55e3191819c3c1dc8d09e

4 years agoFix memory leak for 'intermediate_image' 59/244159/2 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.114515 accepted/tizen/6.0/unified/hotfix/20201103.002757 accepted/tizen/unified/20200917.141755 submit/tizen/20200916.012329 submit/tizen/20200917.011112 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
jiyong.min [Tue, 15 Sep 2020 09:30:06 +0000 (18:30 +0900)]
Fix memory leak for 'intermediate_image'

Change-Id: Ia8be69d954733c220e13a762fd601babe98e9b9c

4 years agoFix incorrect parameters for cropping image 58/243658/2 accepted/tizen/unified/20200910.123850 submit/tizen/20200909.052036
jiyong.min [Wed, 9 Sep 2020 02:59:31 +0000 (11:59 +0900)]
Fix incorrect parameters for cropping image

  - Problem:
    rotate_image with odd width/height image return error.

  - Cause:
    Cropping image for odd width/height image has incorrect parameters.

  - Solution:
    The start_x, start_y should be used for sx, sy of cropping image.

Change-Id: I8003dac4392823666bac98fa8a30771f367013e3

4 years agoMinor change and release version 0.2.2 53/243353/2 accepted/tizen/unified/20200908.003017 submit/tizen/20200907.045722
jiyong.min [Mon, 7 Sep 2020 02:57:17 +0000 (11:57 +0900)]
Minor change and release version 0.2.2

Change-Id: I5665cc1dd1200c9d3b3540e88e6c2e47dcfb80fc

4 years agoFix incorrect return for invalid parameter 42/243342/1
jiyong.min [Mon, 7 Sep 2020 01:21:39 +0000 (10:21 +0900)]
Fix incorrect return for invalid parameter

Change-Id: I7649e1dbe6ab51145be3372599ad1e86d8752955

4 years agoEnhance error handling for save functions in webp 41/243341/1
jiyong.min [Mon, 7 Sep 2020 01:16:56 +0000 (10:16 +0900)]
Enhance error handling for save functions in webp

  - Add to check invalid parameters
  - Add to check frame_count for no animation

Change-Id: Idc5875c9d8c3f3336f997a63746a35d7429d25a1

4 years agoAdd animated image encoder for both WEBP and GIF 00/239600/12 accepted/tizen/unified/20200828.121607 submit/tizen/20200827.013104
jiyong.min [Tue, 28 Jul 2020 05:21:21 +0000 (14:21 +0900)]
Add animated image encoder for both WEBP and GIF

  - Unify 'mm_util_anim_xxx' function for animated WEBP and GIF
  - Add 'anim_module_register' function for dlopen of each codec

Change-Id: I50bcd6c61228c1f3be92ef65e65ec4145825506a

4 years agoModify return error for not supported format 72/240372/4 accepted/tizen/unified/20200811.050353 accepted/tizen/unified/20200813.122640 submit/tizen/20200806.045222 submit/tizen/20200810.061454 submit/tizen/20200812.084418
jiyong.min [Thu, 6 Aug 2020 01:19:05 +0000 (10:19 +0900)]
Modify return error for not supported format

Change-Id: I053f6cc8875fee24fc9c88cf778167e5ecd2a4dc

4 years agoSupport new animation encoding function for WebP 05/237605/24
jiyong.min [Wed, 1 Jul 2020 23:11:35 +0000 (08:11 +0900)]
Support new animation encoding function for WebP

Change-Id: I2f7f481ca2ce518284eee3b1ffb0208f479d8c00

4 years agoAdd to use GraphicsMagick when webp format encoding and decoding 54/237654/18 submit/tizen/20200803.051111 submit/tizen/20200804.230708
jiyong.min [Thu, 2 Jul 2020 06:58:38 +0000 (15:58 +0900)]
Add to use GraphicsMagick when webp format encoding and decoding

Change-Id: Ic30a3d8d45a9a70fcdec37da60d7bb5069612f74

4 years agoFix 'g_readed_data' double free 00/239100/1 accepted/tizen/unified/20200723.161301 submit/tizen/20200722.020114
jiyong.min [Wed, 22 Jul 2020 00:12:05 +0000 (09:12 +0900)]
Fix 'g_readed_data' double free

Change-Id: Ib784ddeed989495eea06ce7c77d32d0d637b133a

4 years agoFix memory leak if function is called 93/239093/2
jiyong.min [Tue, 21 Jul 2020 22:51:40 +0000 (07:51 +0900)]
Fix memory leak if function is called

  - gif_file->filename in mm_util_gif_encode_set_file()
  - gif_file_h in mm_util_encode_to_gif_file()

Change-Id: I8c59125ff168f716124e7ce95a907016cf0ca107

4 years agoFix out of bound issue for 'signature_info' array 06/239006/6
jiyong.min [Tue, 21 Jul 2020 04:29:11 +0000 (13:29 +0900)]
Fix out of bound issue for 'signature_info' array

  - #IMG_CODEC_UNKNOWN_TYPE is larger than the size of 'signature_info' array.
    Because mm_util_img_codec_type increases sequentially no longer,
    we can't use '_type' for loop of 'signature_info' array.
    The size of 'signature_info' and index for loop have been added.

Change-Id: I2196238e83a78c397d59be8187f46cce221c860b

4 years agoRemove tabs and unused description 38/238738/3 accepted/tizen/unified/20200722.014854 submit/tizen/20200721.001655
jiyong.min [Fri, 17 Jul 2020 02:19:23 +0000 (11:19 +0900)]
Remove tabs and unused description

Change-Id: I3f4b4cdc0717a674f2174bbfdfdf1f2c3c4a5dcb

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

5 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

5 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