platform/core/api/image-util.git
4 years agoRemove unnecessary casting 29/231529/1
hj kim [Wed, 22 Apr 2020 07:53:02 +0000 (16:53 +0900)]
Remove unnecessary casting

Change-Id: I3050d80159d4b9e75178a6d09993a3fec9d4d0c2

4 years agoUse g_strdup() instead of g_strndup() 25/231525/1
hj kim [Wed, 22 Apr 2020 07:36:49 +0000 (16:36 +0900)]
Use g_strdup() instead of g_strndup()

Change-Id: I04b8b5021cea1cd9708aea409071807fb34a8c95

4 years agoFix typo 95/231495/1
hj kim [Wed, 22 Apr 2020 06:59:22 +0000 (15:59 +0900)]
Fix typo

Change-Id: I717519d91837be4553c4e3bc770b61fc1783772f

4 years agoApply tizen coding rule 83/230783/1
hj kim [Tue, 14 Apr 2020 06:33:44 +0000 (15:33 +0900)]
Apply tizen coding rule

Change-Id: I33e779102e87d347efeee43b6bb453fed67db915

4 years agoFix build error for toolchin upgrade (GCC6->GCC9) 62/220962/2 accepted/tizen/unified/20191227.142827 submit/tizen/20191226.093041
hj kim [Thu, 26 Dec 2019 05:41:30 +0000 (14:41 +0900)]
Fix build error for toolchin upgrade (GCC6->GCC9)

Change-Id: I8befef928e9b4e9dcb3af1615e76522ac15d2e0e

4 years agoAdd coverage exception macros 24/219424/2
jiyong.min [Wed, 4 Dec 2019 23:31:51 +0000 (08:31 +0900)]
Add coverage exception macros

Change-Id: I884da8d4ced2485d8b1656b125d53cbb1c2ea665

5 years agoReplace open(system call) to access(std.) 95/216695/8 accepted/tizen/unified/20191111.105532 submit/tizen/20191110.224221
jiyong.min [Thu, 31 Oct 2019 01:28:43 +0000 (10:28 +0900)]
Replace open(system call) to access(std.)

 - When open() without O_CREAT, executable program can't create file
   due to 'Permission Denied'. Just it happened in shell enviroment.

 - The access() is standard function to check path permission.

Change-Id: I5f4f2bf00c0e6a21b36c1c39261008e5035113fe

5 years agoFix typo 81/215581/1 accepted/tizen/unified/20191101.042006 submit/tizen/20191022.232325
jiyong.min [Fri, 11 Oct 2019 06:38:24 +0000 (15:38 +0900)]
Fix typo

 - @see tag points to itself

Change-Id: I52554423ff385a030f516803a5ea093961175ae3

5 years agoFix coverity issue (#1085447) 11/213311/3 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.025952 accepted/tizen/5.5/unified/mobile/hotfix/20201027.064729 accepted/tizen/unified/20190904.224447 submit/tizen/20190904.082736 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 tizen_5.5.m2_release
jiyong.min [Wed, 4 Sep 2019 06:37:50 +0000 (15:37 +0900)]
Fix coverity issue (#1085447)

Change-Id: Ib9d77ca07988192b403b81011ff96326173a5624

5 years agoFix build error due to build warning 54/213054/1 accepted/tizen/unified/20190901.225914 submit/tizen/20190830.003130
jiyong.min [Fri, 30 Aug 2019 01:24:43 +0000 (10:24 +0900)]
Fix build error due to build warning

Change-Id: I94317bd88059c43332956b5b3ed8691ac7b83bc4

5 years agoFix build error and release version 0.2.2 53/213053/2
jiyong.min [Thu, 29 Aug 2019 23:27:58 +0000 (08:27 +0900)]
Fix build error and release version 0.2.2

Change-Id: Ic074c116e8e5956b0b5901adc41be61060bae1ee

5 years agoMerge "Fix coverity issue" into tizen
Jiyong Min [Thu, 29 Aug 2019 06:30:53 +0000 (06:30 +0000)]
Merge "Fix coverity issue" into tizen

5 years agoFix coverity issue 82/212982/3
jiyong.min [Thu, 29 Aug 2019 05:18:45 +0000 (14:18 +0900)]
Fix coverity issue

 - Out-of-bounds issue to read image_format_mimetype_table
 - 'MM_UTIL_COLOR_NUM' is larger than array_size but the array
   can access with array_size(table_size).
: So 'MM_UTIL_COLOR_NUM' is replaced to real array_size.

Change-Id: I7804cd4d510499b46d96183a1afc918fc0ffc444

5 years agoAdd removed symbol for compatibility 03/209703/11
jiyong.min [Wed, 10 Jul 2019 05:42:28 +0000 (14:42 +0900)]
Add removed symbol for compatibility

 - ACR-1123 : [5.0][capi-media-image-util][Remove] Remove deprecated APIs

Change-Id: I692a15579f4fe851637eb54f14c0f0bf2fedc23a

5 years agoRelocate converting image and media_packet to reduce duplicated code. 04/212204/6 accepted/tizen/unified/20190822.045407 submit/tizen/20190820.233532
jiyong.min [Mon, 19 Aug 2019 01:39:21 +0000 (10:39 +0900)]
Relocate converting image and media_packet to reduce duplicated code.

Change-Id: I075c718c46c31ceba2a0445ff77506ca053186e5

5 years agoDeallocate resources to prevent resource leak 54/212054/3 accepted/tizen/unified/20190816.112258 submit/tizen/20190816.014658
jiyong.min [Wed, 14 Aug 2019 00:54:12 +0000 (09:54 +0900)]
Deallocate resources to prevent resource leak

 - Resource leaks were detected by static analyzer

Change-Id: I638d74b22fd4f0c7af633ef9fdfb568ad4c9a906

5 years agoRemove check for gcov 12/209012/2 accepted/tizen/unified/20190702.234144 submit/tizen/20190701.235505
Minje Ahn [Tue, 2 Jul 2019 01:41:42 +0000 (10:41 +0900)]
Remove check for gcov

Change-Id: I29cf155b5f0dd4efb2304a3105e45532cb32da12
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoAdd for line coverage 74/208974/1
Minje Ahn [Mon, 1 Jul 2019 23:33:17 +0000 (08:33 +0900)]
Add for line coverage

Change-Id: Ibebe234bb2140e6406ba0dae1a34a4b8ad406ba9
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years ago[ACR-1393] Modify description 35/207935/5
jiyong.min [Fri, 14 Jun 2019 05:34:06 +0000 (14:34 +0900)]
[ACR-1393] Modify description

Change-Id: I116d42ea1f49e3d53a5049b38f68cff67e22c57c

5 years agoUpdate API description 92/207692/1
hj kim [Tue, 11 Jun 2019 06:43:41 +0000 (15:43 +0900)]
Update API description

Change-Id: I1700fd898e8454400c3952d79ec2fb22fb0a3101

5 years agoUpdate API description 82/207682/1
hj kim [Tue, 11 Jun 2019 05:37:46 +0000 (14:37 +0900)]
Update API description

Change-Id: Id3e3943cdb8b0b827cbdb369d54113962717b5c5

5 years agoRelease version 0.2.1 67/207367/2 accepted/tizen/unified/20190605.215658 submit/tizen/20190604.054655
jiyong.min [Tue, 4 Jun 2019 03:59:29 +0000 (12:59 +0900)]
Release version 0.2.1

Changes:
 - Remove read permission from encode
 - Add new testsuites

Change-Id: I4e0d44a7b1a12d87d363363b3d437bf6af019f6c

5 years agoAdd unified image-util-testsuite and remove old tests 96/206996/14
jiyong.min [Thu, 30 May 2019 00:43:52 +0000 (09:43 +0900)]
Add unified image-util-testsuite and remove old tests

 - This supports all CAPIs in image-util

 SYNOPSIS
   capi-image-util-test [file | directory] [test_mode]

   ex
   ./capi-image-util-test test.jpg 0

 DESCRIPTION
   'capi-image-util-test' is testsuites for image-util.
   It can test all kind of CAPI in image-util.

   Most often capi-image-util-test is started to test a single file with the command

   ./capi-image-util-test [file]

   If the file is missing, the program will start with set path menu.

   help        Give a help message and exit, just like "-h", "-help" and "--help"

   [file]      A file to test. The test file should be jpg/png/gif/bmp or raw data.
               If the file is raw data, the program will request another information
               , size & color, of the raw data.

   [directory] A directory that has lots of images to encode a-gif.

   [test_mode] A mode to test. This is optional.
               If the mode is missing, the program will give the select message.
               0: Auto, 1: decode, 2: encode, 3: encode a-gif, 4: transform

Change-Id: If8b3d288cc75c27c9d2312296c6cb9623a2a6b52

5 years agoFix typo and rearrange code 94/206994/3 accepted/tizen/unified/20190604.014700 submit/tizen/20190603.092603
jiyong.min [Thu, 30 May 2019 00:41:42 +0000 (09:41 +0900)]
Fix typo and rearrange code

Change-Id: Ida4438c40f81a95be6cde2b311bfdcd204bd9604

5 years agoChange the valid permission to encode image 93/206993/2
jiyong.min [Thu, 30 May 2019 00:33:59 +0000 (09:33 +0900)]
Change the valid permission to encode image

 - Because encoded file do not exist before encoding,
   open/fopen return error for RD(read) permission.

Change-Id: I24ab95e5bab5edaed62c55b0c95c8495473299d8

5 years ago[ACR-1393][Add/Deprecate] Update encoding APIs 27/201727/47 accepted/tizen/unified/20190530.043135 submit/tizen/20190529.045235
hj kim [Tue, 19 Mar 2019 05:58:01 +0000 (14:58 +0900)]
[ACR-1393][Add/Deprecate] Update encoding APIs

Change-Id: I501cabbbcbe6e19096108d2f20906dd47668a72f

5 years agoFix typo 61/205961/1
jiyong.min [Mon, 13 May 2019 00:59:59 +0000 (09:59 +0900)]
Fix typo

Change-Id: I7436100bf9eefe5543e94a2e09f999ffe0fa8093

5 years agoFix the way to use media_packet when multiple bos are given 58/205758/5 accepted/tizen/unified/20190510.111035 submit/tizen/20190510.035157
jiyong.min [Thu, 9 May 2019 05:01:00 +0000 (14:01 +0900)]
Fix the way to use media_packet when multiple bos are given

To get pointer address of planes from media packet,
replace media_packet_get_buffer_data_ptr() with media_packet_get_video_plane_data_ptr().

Change-Id: I4c7da53d6c3b2d0cee1cfd6e3fc3b7f41915f494

5 years agoAdd to copy & to release the input buffer recieved from application 19/204419/4 accepted/tizen/unified/20190425.014608 submit/tizen/20190424.053652
jiyong.min [Wed, 24 Apr 2019 00:00:08 +0000 (09:00 +0900)]
Add to copy & to release the input buffer recieved from application
(To prevent crash when application release the buffer)

Change-Id: Idfd9e82516ccdc4b7ad4ad8e402dfe7a9a39321e

5 years ago[ACR-1389][Add/Deprecate] Update decoding APIs 45/201945/25 accepted/tizen/unified/20190418.010737 submit/tizen/20190416.093532
hj kim [Thu, 21 Mar 2019 06:15:00 +0000 (15:15 +0900)]
[ACR-1389][Add/Deprecate] Update decoding APIs

[Deprecated]
int image_util_decode_set_output_buffer(image_util_decode_h handle, unsigned char **dst_buffer)
int image_util_decode_run(image_util_decode_h handle, unsigned long *width, unsigned long *height, unsigned long long *size)
int image_util_decode_run_async(image_util_decode_h handle, image_util_decode_completed_cb callback, void *user_data)
typedef void (*image_util_decode_completed_cb) (int error_code, void *user_data, unsigned long width, unsigned long height, unsigned long long size)

[Added]
int image_util_decode_run2(image_util_decode_h handle, image_util_image_h *image)
int image_util_decode_run_async2(image_util_decode_h handle, image_util_decode_completed2_cb callback, void *user_data)
typedef void (*image_util_decode_completed2_cb) (int error_code, image_util_image_h image, void *user_data)

Change-Id: I185d5f4459ce9c55d546f6318145b5073916d3f7

5 years ago[ACR-1374] Change typedef of handle 24/203224/2 accepted/tizen/unified/20190411.144007 submit/tizen/20190411.021631
jiyong.min [Thu, 11 Apr 2019 01:58:21 +0000 (10:58 +0900)]
[ACR-1374] Change typedef of handle

The type of handle is common type. It can be already in use.
So we will change it to 'typedef void *image_util_image_h'.

Change-Id: Ie9b36a1788c2c958a81c07ccbd7b85e6d3c3aad8

5 years agoAdd stdlib.h to fix build error regarding the size_t 67/202967/1 accepted/tizen/unified/20190410.002105 submit/tizen/20190408.062654
hj kim [Mon, 8 Apr 2019 07:32:54 +0000 (16:32 +0900)]
Add stdlib.h to fix build error regarding the size_t

Change-Id: I7b3b486998981fd76aabf74d0b78ecee3cb4e55e

5 years ago[ACR-1374] [Add] Add new sync transform APIs (convert, crop, resize, rotate) 75/200575/47
hj kim [Wed, 27 Feb 2019 02:56:53 +0000 (11:56 +0900)]
[ACR-1374] [Add] Add new sync transform APIs (convert, crop, resize, rotate)

[Added]
image_util_create_image(unsigned int width, unsigned int height, image_util_colorspace_e colorspace, const unsigned char *data, size_t data_size, image_h *image)
image_util_get_image(image_h image, unsigned int *width, unsigned int *height, image_util_colorspace_e *colorspace, unsigned char **data, size_t *data_size)
image_util_clone_image(image_h src, image_h *dst)
image_util_destroy_image(image_h image)

typedef void(*image_util_transform_completed_2_cb)(image_h dst, int error_code, void *user_data)
image_util_transform_run_2(transformation_h handle, image_h image, image_h *dst)
image_util_transform_run_2_async(transformation_h handle, image_h src, image_util_transform_completed_2_cb callback, void *user_data)

Change-Id: I0a2dd604134f1e5fe44314794641bb4fefa33c39

5 years agoJust update API descriptions 20/201820/1 accepted/tizen/unified/20190322.075430 submit/tizen/20190321.013843
hj kim [Wed, 20 Mar 2019 02:06:22 +0000 (11:06 +0900)]
Just update API descriptions

Change-Id: I5014352f73bcf540ac46f9e2c674d6af09f735e9

5 years agoJust update API descriptions 19/201819/1
hj kim [Wed, 20 Mar 2019 01:52:39 +0000 (10:52 +0900)]
Just update API descriptions

Change-Id: I5a15d0cfd35ce5dc43a6b4631153da26480d4d42

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

Change-Id: I6fb2dd73bcd005d36fcfef1ae84eeac2964c1088

5 years agoModify parameter in imgage processing APIs to mm_util_image_h 06/201306/6
jiyong.min [Tue, 12 Mar 2019 08:39:58 +0000 (17:39 +0900)]
Modify parameter in imgage processing APIs to mm_util_image_h

Change-Id: Ic39ef558640328f10f0c82e8285b8ecbac35e914

5 years agoparameters in decoding APIs has been changed from mm_image_info_s to mm_util_image_h 05/201205/8 accepted/tizen/unified/20190313.075526 submit/tizen/20190313.021136
hj kim [Mon, 11 Mar 2019 09:02:11 +0000 (18:02 +0900)]
parameters in decoding APIs has been changed from mm_image_info_s to mm_util_image_h

Change-Id: Icb011e85856cad08b735b7d50b405d8c3d957b97

5 years agoRearrange media_packet creation to remove duplicated code 83/201083/3 accepted/tizen/unified/20190311.220547 submit/tizen/20190311.013617
jiyong.min [Fri, 8 Mar 2019 06:30:48 +0000 (15:30 +0900)]
Rearrange media_packet creation to remove duplicated code

Change-Id: Iad70f63194beaa2a35fdbd80b738015b30bed34a

5 years agoModify image transforms to use unified image handle 58/201058/4
jiyong.min [Fri, 8 Mar 2019 00:23:35 +0000 (09:23 +0900)]
Modify image transforms to use unified image handle

Change-Id: I561da87ac4619ec0b0b9968dd66c231b2ee79ad2

5 years agoUnify the type of width and height to 'unsigned int' 34/200934/5
jiyong.min [Wed, 6 Mar 2019 07:05:00 +0000 (16:05 +0900)]
Unify the type of width and height to 'unsigned int'

- The type of width and height was previously mixed
with 'unsigned long' and 'unsigned int'.

Change-Id: I2a6d47aa8e5cc375818bb0a400a495d8d0193d6d

5 years agoJust change image_h to gif_image_h 77/200577/2
hj kim [Wed, 27 Feb 2019 03:29:34 +0000 (12:29 +0900)]
Just change image_h to gif_image_h

Change-Id: I304a150781018519b310a2fa2c9aecc26102b059

5 years agoAdd to check the return of fseek() 85/198685/1 accepted/tizen/unified/20190207.120256 submit/tizen/20190131.041045
jiyong.min [Tue, 29 Jan 2019 00:23:09 +0000 (09: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: Idf08b42325a5ebb9ede3702fc057d8058578669b

5 years agoJust move IMG_HEADER_LENGTH to use commonly 27/198327/1 accepted/tizen/unified/20190128.061725 submit/tizen/20190124.005947
hj kim [Thu, 24 Jan 2019 00:11:46 +0000 (09:11 +0900)]
Just move IMG_HEADER_LENGTH to use commonly

Change-Id: Ie046834a43d361bbcf9d7d4a4432c90c6e07f899

5 years agoMerge "Add to check the file permission before set the path" into tizen
Jiyong Min [Thu, 17 Jan 2019 08:28:22 +0000 (08:28 +0000)]
Merge "Add to check the file permission before set the path" into tizen

5 years agoAdd to check the file permission before set the path 32/197232/6
jiyong.min [Thu, 10 Jan 2019 08:42:33 +0000 (17:42 +0900)]
Add to check the file permission before set the path

Change-Id: I53a57e327e74520c30cc1b7054f52d12f5b11def

5 years agoFix typo 57/197557/1 accepted/tizen/unified/20190115.055931 submit/tizen/20190114.055326
hj kim [Mon, 14 Jan 2019 05:49:47 +0000 (14:49 +0900)]
Fix typo

Change-Id: I3ad616b311a8279f3b9e4b5087b1708ee69bc6c8

5 years agoCoverity issue fix 95/196195/2 accepted/tizen/unified/20181227.062031 submit/tizen/20181226.064859
hj kim [Wed, 26 Dec 2018 02:20:24 +0000 (11:20 +0900)]
Coverity issue fix

Change-Id: Iaa52a7b7ad1a67f9f04489d35803fa370acc6986

5 years agoFix format error in logs 83/194683/2 accepted/tizen/unified/20181210.060039 submit/tizen/20181207.051909
jiyong.min [Fri, 7 Dec 2018 03:52:28 +0000 (12:52 +0900)]
Fix format error in logs

Change-Id: Ib4409accc4074b66b9b66612d4fb6a2fc89bf007

5 years agoFix format error for dlog 78/194478/1 accepted/tizen/unified/20181205.154825 submit/tizen/20181205.014753
jiyong.min [Wed, 5 Dec 2018 01:58:08 +0000 (10:58 +0900)]
Fix format error for dlog

Change-Id: I208b18c715fe734c60c0cf597000553231dd9c46

5 years agoAdd to check the minimum size of the input buffer for decoding image 09/194009/2
jiyong.min [Wed, 28 Nov 2018 07:45:54 +0000 (16:45 +0900)]
Add to check the minimum size of the input buffer for decoding image

Change-Id: I3c3d20f2576ef7e491d81fca7d7ef53382a4014e

5 years agoMerge "[ACR-1317]Deprecate image_util_calculate_buffer_size() function. It is not... accepted/tizen/unified/20181123.063239 submit/tizen/20181122.024304
hj kim [Thu, 22 Nov 2018 02:40:37 +0000 (02:40 +0000)]
Merge "[ACR-1317]Deprecate image_util_calculate_buffer_size() function. It is not needed anymore." into tizen

6 years agoRemove unused header(mm_util_common.h) 27/193027/2 accepted/tizen/unified/20181121.173158 submit/tizen/20181119.072242 submit/tizen/20181121.000755
jiyong.min [Wed, 14 Nov 2018 03:49:05 +0000 (12:49 +0900)]
Remove unused header(mm_util_common.h)

Change-Id: Iceeeb4f5fa49825fe4861010ed19f583996dba41

6 years agoMerge "Apply null pointer of the size for using output path When the path is used...
Jiyong Min [Wed, 14 Nov 2018 01:10:10 +0000 (01:10 +0000)]
Merge "Apply null pointer of the size for using output path When the path is used, the output buffer and the size are unused." into tizen

6 years agoRemove unused internal APIs. 1.Sync APIs for transform 2. APIs to support AGIF 85/192885/2
hj kim [Mon, 12 Nov 2018 08:26:00 +0000 (17:26 +0900)]
Remove unused internal APIs. 1.Sync APIs for transform 2. APIs to support AGIF

Change-Id: Id7e4bd4280c138e3fbfe4995f939d12d21b1a387

6 years agoApply null pointer of the size for using output path 85/192585/3
jiyong.min [Wed, 7 Nov 2018 00:36:03 +0000 (09:36 +0900)]
Apply null pointer of the size for using output path
When the path is used, the output buffer and the size are unused.

Change-Id: Id0360b92fbf23c72f0bffc4429d9620012c4aabc

6 years ago[ACR-1317]Deprecate image_util_calculate_buffer_size() function. It is not needed... 76/192876/3
hj kim [Mon, 12 Nov 2018 07:38:36 +0000 (16:38 +0900)]
[ACR-1317]Deprecate image_util_calculate_buffer_size() function. It is not needed anymore.

Change-Id: I66d16683347f8f37568ae549e0a33b4b5094009d

6 years agojust update debug msg 27/192727/1 accepted/tizen/unified/20181112.060902 submit/tizen/20181112.010749
hj kim [Thu, 8 Nov 2018 23:32:07 +0000 (08:32 +0900)]
just update debug msg

Change-Id: I7b1c171f85ec20bc871a0b68604b9f410d2d21b4

6 years agoMerge branch 'tizen_5.5_dev' into tizen 28/192228/2 accepted/tizen/unified/20181107.082004 submit/tizen/20181106.000712
hj kim [Thu, 1 Nov 2018 05:25:27 +0000 (14:25 +0900)]
Merge branch 'tizen_5.5_dev' into tizen

Change-Id: I4d35a932a05613688b5755b67fddc633647579f4

6 years agoRemove dlog from pc_dependents 58/192158/1 tizen_5.5_dev
hj kim [Wed, 31 Oct 2018 04:51:47 +0000 (13:51 +0900)]
Remove dlog from pc_dependents

Change-Id: Ied81ccb8515a18325c29d94854f33fe6c6e74dd0

6 years agoRemove unused mm-common dependency 82/192082/1
hj kim [Tue, 30 Oct 2018 04:44:18 +0000 (13:44 +0900)]
Remove unused mm-common dependency

Change-Id: I4bbe95dce57cd9baa621c884efa057462885279c

6 years agoRemove _image_util_check_resolution() API. check parameters directly 63/191663/1
hj kim [Mon, 22 Oct 2018 04:38:47 +0000 (13:38 +0900)]
Remove _image_util_check_resolution() API. check parameters directly

Change-Id: Id590cef6dd0a89d78c8884775b812f011bf20285

6 years agoAdd to check the parameter for api 15/191615/2
jiyong.min [Fri, 19 Oct 2018 04:46:26 +0000 (13:46 +0900)]
Add to check the parameter for api

Change-Id: Ib77dfd338385dc3892ffdcaaa1864ce0368ba14f

6 years agoChange source buffer to 'void*' from 'void**', decoding an image needs single source... 14/191614/2
jiyong.min [Fri, 19 Oct 2018 04:43:40 +0000 (13:43 +0900)]
Change source buffer to 'void*' from 'void**', decoding an image needs single source buffer

Change-Id: I7c1dc60f5fdac93f5b34d085ca36ff2bd3cb2ba3

6 years agoCheck input parameter 15/191515/1
hj kim [Thu, 18 Oct 2018 01:51:22 +0000 (10:51 +0900)]
Check input parameter

Change-Id: I075c1dd9f96234cfa33263a2ffbcb47fe17fb9d4

6 years agoAdd to check null pointer dereferenced 57/191457/4
jiyong.min [Wed, 17 Oct 2018 08:19:08 +0000 (17:19 +0900)]
Add to check null pointer dereferenced

Change-Id: I35f399e32dfd8ca5b347dab8f8171aba93714955

6 years agoAdd src_size parameter for decoding gif 30/191430/1
jiyong.min [Wed, 17 Oct 2018 05:50:01 +0000 (14:50 +0900)]
Add src_size parameter for decoding gif

Change-Id: I937477cb2513458730feea7d4d271aabd16e0b29

6 years agoSeparate gif encode info from encode_s 35/191335/1
hj kim [Tue, 16 Oct 2018 06:23:32 +0000 (15:23 +0900)]
Separate gif encode info from encode_s

Change-Id: If5685da8dfbd96c70b02a45f4a0bc0c807290ea2

6 years agojust move code for gif 31/191331/1
hj kim [Tue, 16 Oct 2018 05:45:10 +0000 (14:45 +0900)]
just move code for gif

Change-Id: Ic8fbbb30ce93b4b32281711f25bfe7d1e4b1e1dc

6 years agoRemove useless codes and rearrange codes 11/191311/2
jiyong.min [Tue, 16 Oct 2018 01:55:45 +0000 (10:55 +0900)]
Remove useless codes and rearrange codes

Change-Id: If2c571b6192d0db0f00aa3c28466084a0b3a12d3

6 years agoSet value directly 82/191282/1
hj kim [Mon, 15 Oct 2018 08:29:50 +0000 (17:29 +0900)]
Set value directly

Change-Id: I9f2ddabd0589916933fd17d20605bcd3729cf55e

6 years agoJust Unify image_util_encode_create() and __image_util_create_img_handle() 60/191260/1
hj kim [Mon, 15 Oct 2018 06:05:40 +0000 (15:05 +0900)]
Just Unify image_util_encode_create() and __image_util_create_img_handle()

Change-Id: I71f68e590f710403b94a708a4c3a862ff7f4f14d

6 years agoRemove _image_util_decode_create_image_handle(). because it just set default down_sca... 53/191253/1
hj kim [Mon, 15 Oct 2018 05:28:31 +0000 (14:28 +0900)]
Remove _image_util_decode_create_image_handle(). because it just set default down_scale value. so I move it to image_util_decode_create() API

Change-Id: Ifae5851bf59e87de843397d08e07081872702fe6

6 years agoRemoved useless image_util_error_type_e 51/191251/1
hj kim [Mon, 15 Oct 2018 05:19:14 +0000 (14:19 +0900)]
Removed useless image_util_error_type_e

Change-Id: I34f9ed08da7a8d567add8a68527799b0a6daefcb

6 years agoRemove unused variables 29/191229/1
jiyong.min [Sun, 14 Oct 2018 23:24:31 +0000 (08:24 +0900)]
Remove unused variables

Change-Id: I6e394a71e37c4ad8dc3cdea3d38a72b2195683b6

6 years agoChange 'gif_image_s' to 'mm_image_info_s' for the unified raw image structure 28/191228/1
jiyong.min [Sun, 14 Oct 2018 22:59:28 +0000 (07:59 +0900)]
Change 'gif_image_s' to 'mm_image_info_s' for the unified raw image structure

Change-Id: I8965c796fcb598ec5619d98fba600cc6901299ff

6 years agoRemove `image_util_frame_set_resolution` function 69/191169/1
jiyong.min [Fri, 12 Oct 2018 04:08:35 +0000 (13:08 +0900)]
Remove `image_util_frame_set_resolution` function

Change-Id: I2f6bea77321c21399c5d31c4e2022278f9febdcf

6 years agoSeperate mm_util_gif_encode_gif to `mm_util_encode_to_gif_file` and `mm_util_encode_t... 51/191151/3
jiyong.min [Fri, 12 Oct 2018 01:38:13 +0000 (10:38 +0900)]
Seperate mm_util_gif_encode_gif to `mm_util_encode_to_gif_file` and `mm_util_encode_to_gif_memory`

Change-Id: I01c4464cdff5e8e668b06df17b574e83c834576f

6 years agoReplace mm_util_gif_format to mm_image_info_s 43/191143/4
jiyong.min [Fri, 12 Oct 2018 00:39:06 +0000 (09:39 +0900)]
Replace mm_util_gif_format to mm_image_info_s

Change-Id: I0bba91087976d77342ce12f3fa722ed7ee067125

6 years agoFix typo and change image_util_frame_create to use image_util_encode_h 40/191140/2
hj kim [Thu, 11 Oct 2018 23:47:41 +0000 (08:47 +0900)]
Fix typo and change image_util_frame_create to use image_util_encode_h

Change-Id: Id505ca13afd55b40f679daa34904782a9fd4f5cd

6 years agoRemove unused a-gif functions 39/191139/1
jiyong.min [Thu, 11 Oct 2018 23:00:06 +0000 (08:00 +0900)]
Remove unused a-gif functions
(It will support only default value.)

Change-Id: Ibebaf8feeb8f50ba599eae04c931c022e3d26c59

6 years agoJust update debug msg 04/191104/1
hj kim [Thu, 11 Oct 2018 09:22:34 +0000 (18:22 +0900)]
Just update debug msg

Change-Id: I402360446e11ea90e265cc6c2e639b4b237562c9

6 years agoChange decode_encode_s to encode_s and remove useless code of checking encode mode 02/191102/1
hj kim [Thu, 11 Oct 2018 09:18:00 +0000 (18:18 +0900)]
Change decode_encode_s to encode_s and remove useless code of checking encode mode

Change-Id: I5863cb020e17200efc40329f5c519a51b5f9cdef

6 years agoRemove useless code of checking decode mode 01/191101/1
hj kim [Thu, 11 Oct 2018 09:05:24 +0000 (18:05 +0900)]
Remove useless code of checking decode mode

Change-Id: I0d8e80cf7622aa63cd1baec4c08c5f1ca3e49997

6 years agoRemove redundant parameters 00/191100/1
hj kim [Thu, 11 Oct 2018 08:59:13 +0000 (17:59 +0900)]
Remove redundant parameters

Change-Id: Ib654f85279fe62377f6af7d7a5c964a4c25156a4

6 years agoDefine new decode_s to use for decoding 96/191096/2
hj kim [Thu, 11 Oct 2018 08:24:40 +0000 (17:24 +0900)]
Define new decode_s to use for decoding

Change-Id: Ic6937b8c350f6e80f20bdd6f305a2ed1464c4174

6 years agoJust update debug msg 85/191085/1
hj kim [Thu, 11 Oct 2018 07:46:57 +0000 (16:46 +0900)]
Just update debug msg

Change-Id: I65f6801678867f33a4104263b78eb9bec24b8679

6 years agoRemove __mm_util_transform & __mm_util_create_thread 49/191049/5
jiyong.min [Thu, 11 Oct 2018 04:06:20 +0000 (13:06 +0900)]
Remove __mm_util_transform & __mm_util_create_thread

Change-Id: Ied7783f5a338deaa3a79b1da417b47b30f75e726

6 years agoFix memory leak 38/191038/1
hj kim [Thu, 11 Oct 2018 00:14:08 +0000 (09:14 +0900)]
Fix memory leak

Change-Id: I3e1199762b5ca5f413c877208475c9fa598532c8

6 years agoRemove unused variable 'is_completed' 37/191037/1
jiyong.min [Wed, 10 Oct 2018 23:07:45 +0000 (08:07 +0900)]
Remove unused variable 'is_completed'

Change-Id: I00cd784952d45be9356373db6a99acdbd9557b4e

6 years agoReplace simple internal APIs 99/190999/1
hj kim [Wed, 10 Oct 2018 09:30:00 +0000 (18:30 +0900)]
Replace simple internal APIs

Change-Id: I73b54e6dca5103aef6776a93e864dfb80976e975

6 years agoRemove mm_util_s. because this is same as transformation_s 97/190997/1
hj kim [Wed, 10 Oct 2018 09:05:40 +0000 (18:05 +0900)]
Remove mm_util_s. because this is same as transformation_s

Change-Id: Ia9a52dabf646f60116164d1bf4f1bbcceeaabde9

6 years agoRemove mm_util_imgp_h to remove internal handle 94/190994/1
hj kim [Wed, 10 Oct 2018 08:43:19 +0000 (17:43 +0900)]
Remove mm_util_imgp_h to remove internal handle

Change-Id: I5c98fc9f0ea7ab23a8fc2cec2e557d4216cab1ac

6 years agoRemove mm_util_color_image_h to remove internal handle 91/190991/1
hj kim [Wed, 10 Oct 2018 08:33:59 +0000 (17:33 +0900)]
Remove mm_util_color_image_h to remove internal handle

Change-Id: I5e3164d0872ee8f04a45ee2b38f8cb19fba1687d

6 years agoRemove duplicated mm_util_cb 79/190979/2
hj kim [Wed, 10 Oct 2018 07:12:48 +0000 (16:12 +0900)]
Remove duplicated mm_util_cb

Change-Id: I4728fa5910dd0c449cc317411ff800dd267e1820

6 years agoFix wrong buffer size of media_packet 66/190966/3
jiyong.min [Wed, 10 Oct 2018 04:36:48 +0000 (13:36 +0900)]
Fix wrong buffer size of media_packet

Change-Id: I74c107ec60d6691ed48972ca770d6b502edf3ec4

6 years agoFix wrong buffer size of media_packet 72/190972/1
jiyong.min [Wed, 10 Oct 2018 04:36:48 +0000 (13:36 +0900)]
Fix wrong buffer size of media_packet

Change-Id: I74c107ec60d6691ed48972ca770d6b502edf3ec4

6 years agoGet mm_util_s from libmm-utility. because it is only used here 70/190970/1
hj kim [Wed, 10 Oct 2018 05:04:27 +0000 (14:04 +0900)]
Get mm_util_s from libmm-utility. because it is only used here

Change-Id: I4e9adc714e1ce9766f453c408397a003e376cf0b

6 years agoGet transform code from libmm-utility except gstreamer related code 79/190879/2
hj kim [Mon, 8 Oct 2018 07:36:39 +0000 (16:36 +0900)]
Get transform code from libmm-utility except gstreamer related code

Change-Id: Iedb0f4b1e672a33ffe5b3064edd8f556d9aa3ebe

6 years agoRemove unused parameter 51/190851/1
hj kim [Mon, 8 Oct 2018 03:50:16 +0000 (12:50 +0900)]
Remove unused parameter

Change-Id: I241174c0a9834523e712cc589a319da5a931a993