platform/core/multimedia/mmsvc-camera.git
4 days agoFix deadlock issue by preview_cb_lock 73/310573/3 accepted/tizen_unified tizen accepted/tizen/unified/20240503.115742
Jeongmo Yang [Thu, 2 May 2024 03:47:29 +0000 (12:47 +0900)]
Fix deadlock issue by preview_cb_lock

- The deadlock could be occurred like below.
 : Thread A(preview_cb) -> _MMCAMCORDER_LOCK_VSTREAM_CALLBACK() -> lock preview_cb_lock
 : Thread B(unset_preview_cb) -> lock preview_cb_lock -> _MMCAMCORDER_LOCK_VSTREAM_CALLBACK()
- Add new lock for preview_cb_flag.
- Remove some condition for waiting PREVIEW_CB_RETURN message in preview_cb().

[Version] 1.0.1
[Issue Type] Bug fix

Change-Id: Ia59a46510fd06508ccc7d3cfde15899d6a3b6322
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 weeks agoRelease version 1.0.0 96/309796/1 accepted/tizen_unified_x accepted/tizen/unified/20240430.020622 accepted/tizen/unified/x/20240430.094837
Jeongmo Yang [Wed, 17 Apr 2024 02:46:38 +0000 (11:46 +0900)]
Release version 1.0.0

[Version] 1.0.0
[Issue Type] Version up

Change-Id: I22efc890509866c7ed47a37bad6b250c1dd38d2e
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
4 months agoFix coverity issue - Check of thread-shared field evades lock acquisition 41/303641/2 accepted/tizen_unified_riscv accepted/tizen/unified/20240108.065943 accepted/tizen/unified/riscv/20240108.073014
Jeongmo Yang [Wed, 3 Jan 2024 00:28:43 +0000 (09:28 +0900)]
Fix coverity issue - Check of thread-shared field evades lock acquisition

[Version] 0.3.70
[Issue Type] Coverity

Change-Id: Ib8549de7d15865fae79c94ec11ceb82fc46a0975
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 months agolegacy_camera.h: Remove profile check for supported platform version 28/302428/1 accepted/tizen/unified/20231211.095353 accepted/tizen/unified/riscv/20231226.211729
Jeongmo Yang [Wed, 6 Dec 2023 09:14:46 +0000 (18:14 +0900)]
legacy_camera.h: Remove profile check for supported platform version

[Version] 0.3.69
[Issue Type] Doxygen

Change-Id: Icb550766e360f72e361e6b7964eede91ac4d7ff7
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 months agoAdd new macro to get and check handle 61/299161/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.093511 accepted/tizen/unified/20230923.084321 tizen_8.0_m2_release
Jeongmo Yang [Thu, 21 Sep 2023 02:49:13 +0000 (11:49 +0900)]
Add new macro to get and check handle

[Version] 0.3.68
[Issue Type] Clean up

Change-Id: I3d4c018b259f8705bc164f11265abe699b6ff256
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 months agoAdd "is_interrupted" flag to avoid deadlock after camera pipeline is stopped. 71/299071/2
Jeongmo Yang [Tue, 19 Sep 2023 06:27:15 +0000 (15:27 +0900)]
Add "is_interrupted" flag to avoid deadlock after camera pipeline is stopped.

[Version] 0.3.67
[Issue Type] Improvement

Change-Id: I449254315aaed470f0cd1cbeaac8f70d91f622fc
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
9 months agoFix build warning -Wsign-compare 11/296811/1 accepted/tizen/unified/20230808.011419
Jeongmo Yang [Fri, 4 Aug 2023 08:20:10 +0000 (17:20 +0900)]
Fix build warning -Wsign-compare

[Version] 0.3.66
[Issue Type] Clean up

Change-Id: Ic95d6a4e8aa2c6572b814cd32113017805dc7467
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
9 months agoUse mm_camcorder_get_exposure() instead of attribute 89/296789/1
Jeongmo Yang [Fri, 4 Aug 2023 06:26:59 +0000 (15:26 +0900)]
Use mm_camcorder_get_exposure() instead of attribute

[Version] 0.3.65
[Issue Type] Update

Change-Id: I9e65b7ca84e763e42cc84b27d23ead71ff7aa56e
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
9 months agoConvert error using __convert_camera_error_code() for MM_MESSAGE_CAMCORDER_ERROR 46/296546/1 accepted/tizen/unified/20230807.014641
Jeongmo Yang [Mon, 31 Jul 2023 03:05:34 +0000 (12:05 +0900)]
Convert error using __convert_camera_error_code() for MM_MESSAGE_CAMCORDER_ERROR

- Previously, error code was not converted properly for MM_MESSAGE_CAMCORDER_ERROR.

[Version] 0.3.64
[Issue Type] Error handling

Change-Id: Ifa919a9eda7e40a4f7622fa23a002245e27fd2ba
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
9 months agoReset "flash_state_camera*" when stop preview 56/296356/1 accepted/tizen/unified/20230727.173052
Jeongmo Yang [Wed, 26 Jul 2023 05:34:57 +0000 (14:34 +0900)]
Reset "flash_state_camera*" when stop preview

- The "flash_state_camera*" value can be remained as TRUE
  although flash device is not used anymore by camera device.

[Version] 0.3.63
[Issue Type] Bug fix

Change-Id: Id9b688b350e448ad849a36b446b7d53239b6f94e
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
10 months agoGet attribute to get focus level instead of function call 96/294096/1 accepted/tizen/unified/20230616.172418
Jeongmo Yang [Tue, 13 Jun 2023 05:22:07 +0000 (14:22 +0900)]
Get attribute to get focus level instead of function call

- mm_camcorder_get_focus_level() will be removed soon,
  because it returns error if pipeline is not created yet
  and the attribute value is enough to get focus level.

[Version] 0.3.62
[Issue Type] Bug fix

Change-Id: I4a988976362aaf012c88bf7dc402d9c135ec60a8
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
11 months agoChange name for task thread 12/292812/3 accepted/tizen/unified/20230605.170401
Jeongmo Yang [Mon, 15 May 2023 07:00:49 +0000 (16:00 +0900)]
Change name for task thread

- The maximum length of thread name is 15.

[Version] 0.3.61
[Issue Type] Bug fix

Change-Id: I20b9bc78ef0dedae69425fac18801d6a744b145a
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
11 months agoRevise shutdown command function 99/292699/4
Jeongmo Yang [Thu, 11 May 2023 07:27:16 +0000 (16:27 +0900)]
Revise shutdown command function

- Previously, camera_stop_preview() and camera_destroy() in shutdown command function could be failed
  when camera_stop_preview() is already executing in task thread by client's request at the same time.
- This patch adds new job to stop preview for shutdown command
  and it prevents to execute camera_stop_preview() in shutdown command and task thread concurrently.

[Version] 0.3.60
[Issue Type] Improvement

Change-Id: I851821788a2c8a8c3c83d6f8155833a4f234b1ef
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
11 months agolegacy_camera: Add internal tag for internal APIs 73/292673/1
Jeongmo Yang [Thu, 11 May 2023 06:38:54 +0000 (15:38 +0900)]
legacy_camera: Add internal tag for internal APIs

[Version] 0.3.59
[Issue Type] Clean up

Change-Id: I360fcf0f822317ab704c93ba2cd638b0ca2ac83b
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
13 months agofix up! Support new APIs for camera settings 82/290982/3 accepted/tizen/unified/20230412.152341
Jeongmo Yang [Thu, 6 Apr 2023 04:00:21 +0000 (13:00 +0900)]
fix up! Support new APIs for camera settings

[Version] 0.3.58
[Issue Type] Bug fix

Change-Id: Icb42aa2515b6fa534736f9b5f9240d2eada79a5e
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
13 months agoSupport new APIs for camera settings 47/290347/3 accepted/tizen/unified/20230330.025555
Jeongmo Yang [Mon, 20 Mar 2023 07:25:33 +0000 (16:25 +0900)]
Support new APIs for camera settings

- Supported settings
 : saturation
 : sharpness
 : gain
 : white balance temperature

[Version] 0.3.57
[Issue Type] New feature

Change-Id: Ib096e1f494acfe92c9218eae5d4acbc2c55bf328
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
18 months agoSupport new internal API to request codec config 56/283056/1 accepted/tizen/unified/20221102.020610
Jeongmo Yang [Mon, 17 Oct 2022 10:13:41 +0000 (19:13 +0900)]
Support new internal API to request codec config

[Version] 0.3.56
[Issue Type] New feature

Change-Id: I42605f21fea30039a8f19950fc4df599de7e0dee
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
19 months agoSupport new internal API to set device for extra preview 79/281479/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/hotfix/20221116.105444 accepted/tizen/unified/20220920.110652 tizen_7.0_m2_release
Jeongmo Yang [Mon, 19 Sep 2022 10:49:33 +0000 (19:49 +0900)]
Support new internal API to set device for extra preview

[Version] 0.3.55
[Issue Type] New feature

Change-Id: Idb4f8fc09d1471baf77f71ac235f605d78254b27
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
20 months agoReturn immediately if module is unavailable 68/280668/1 accepted/tizen/unified/20220907.040714
Jeongmo Yang [Fri, 2 Sep 2022 04:04:01 +0000 (13:04 +0900)]
Return immediately if module is unavailable

- The variable name is also changed.
 : The module will be set zero all after clean up,
   but, previously, it's not matched with the value.

[Version] 0.3.54
[Issue Type] Improvement

Change-Id: If0b0bcea620949c937adae9a5df8c1b29554d988
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
21 months agoAlways set internal buffer 05/278405/2 accepted/tizen/unified/20220721.135105 submit/tizen/20220720.080418
Jeongmo Yang [Wed, 20 Jul 2022 06:41:43 +0000 (15:41 +0900)]
Always set internal buffer

- Previously, too much memory could be used when buffers which is copied from gst buffer
  are not returned from client after use in time.
- The buffers can be limited by setting internal buffer and camerasrc plugin.

[Version] 0.3.53
[Issue Type] Update

Change-Id: Ic1539c911556dada67aeebd7b1bd35186a34ef50
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 years agoCorrect buffer pointer for internal buffer 98/273198/1 accepted/tizen/unified/20220428.162722 submit/tizen/20220427.095935
Jeongmo Yang [Thu, 31 Mar 2022 11:13:25 +0000 (20:13 +0900)]
Correct buffer pointer for internal buffer

[Version] 0.3.52
[Issue Type] Bug fix

Change-Id: I3eadfc37905c946e5bb291e7a77910c41374744b
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 years agoAdd new API for extra preview support 43/272743/1
Jeongmo Yang [Wed, 23 Mar 2022 12:44:10 +0000 (21:44 +0900)]
Add new API for extra preview support

[Version] 0.3.51
[Issue Type] New feature

Change-Id: Ic8ae11ea001c51eff8b91c91bab974794b4cb3dd
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 years agoDo not keep the non-zero-copy buffer 75/266575/2 accepted/tizen/unified/20211125.003814 submit/tizen/20211123.105159
Jeongmo Yang [Mon, 15 Nov 2021 10:34:59 +0000 (19:34 +0900)]
Do not keep the non-zero-copy buffer

- The zero-copy buffer should not be released until it's returned from user,
  because if it's released, it could be updated while it's being used.
  On the other hand, the non-zero-copy buffer is copied,
  so we don't need to keep it not to be released.

[Version] 0.3.50
[Issue Type] Improvement

Change-Id: I27461808f5c1e9ab4b0a1f692ca715d3e273de41
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 years agoUpdate comment 57/266557/2
Jeongmo Yang [Mon, 15 Nov 2021 09:23:26 +0000 (18:23 +0900)]
Update comment

[Version] 0.3.49
[Issue Type] Comment

Change-Id: I0b7afa1e08b9f7fc1e024f2760050dec27a6cbc5
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 years agoSupport new internal APIs for extra preview GOP interval 12/263712/2 accepted/tizen/6.5/unified/20211028.122725 accepted/tizen/unified/20210916.014239 submit/tizen/20210915.115302 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release
Jeongmo Yang [Wed, 8 Sep 2021 12:59:38 +0000 (21:59 +0900)]
Support new internal APIs for extra preview GOP interval

[Version] 0.3.48
[Issue Type] New feature

Change-Id: Idda95dc4b53550af82f89a7fa9c0aed26556f86f
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 years agoSupport new internal APIs for extra preview bitrate 09/263309/3 accepted/tizen/unified/20210906.123735 submit/tizen/20210903.031152
Jeongmo Yang [Tue, 31 Aug 2021 08:37:05 +0000 (17:37 +0900)]
Support new internal APIs for extra preview bitrate

[Version] 0.3.47
[Issue Type] New feature

Change-Id: I9d13e090f8720d9459fdf0ec43b0c3a423713aa5
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 years agoRelease exported fd after stop preview 86/262886/1 accepted/tizen/unified/20210901.103712 submit/tizen/20210831.023825 submit/tizen/20210901.010210
Jeongmo Yang [Mon, 23 Aug 2021 06:19:43 +0000 (15:19 +0900)]
Release exported fd after stop preview

[Version] 0.3.46
[Issue Type] Update

Change-Id: I366c0833043b4d547987e0b209705d4941518a17
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 years agoSupport new internal APIs for extra preview stream format 23/259923/1 accepted/tizen/unified/20210621.123130 submit/tizen/20210618.081505
Jeongmo Yang [Wed, 16 Jun 2021 12:53:51 +0000 (21:53 +0900)]
Support new internal APIs for extra preview stream format

[Version] 0.3.45
[Issue Type] New feature

Change-Id: I6bc37b2a07ad8c3a7dbe08f390da6a85a563ff70
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 years agoSupport new pixel format - VP8, VP9 77/259277/1 accepted/tizen/unified/20210615.120236 submit/tizen/20210615.011749
Jeongmo Yang [Thu, 3 Jun 2021 11:35:44 +0000 (20:35 +0900)]
Support new pixel format - VP8, VP9

[Version] 0.3.44
[Issue Type] New feature

Change-Id: Ie4549c51088d6a4644fa519a3650df65785430a6
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 years agoSupport manual focus APIs 85/258185/5 accepted/tizen/unified/20210602.122548 submit/tizen/20210531.033817
Jeongmo Yang [Wed, 12 May 2021 04:15:31 +0000 (13:15 +0900)]
Support manual focus APIs

[Version] 0.3.43
[Issue Type] New feature

Change-Id: I33b39e7f1a5c47eeb699bfdd0e5687d94a5e5748
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
2 years agoSupport extra preview related APIs 53/257553/7
Jeongmo Yang [Tue, 27 Apr 2021 12:52:25 +0000 (21:52 +0900)]
Support extra preview related APIs

[Version] 0.3.42
[Issue Type] New feature

Change-Id: I67915f64c47457a868c2cf21a4be2757f349245f
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoSupport new APIs for media bridge 86/256086/6 accepted/tizen/unified/20210412.012057 submit/tizen/20210408.091908
Jeongmo Yang [Mon, 29 Mar 2021 07:31:10 +0000 (16:31 +0900)]
Support new APIs for media bridge

- MUSE_CAMERA_API_SET_MEDIA_BRIDGE, MUSE_CAMERA_API_UNSET_MEDIA_BRIDGE
- Minor change
 : Correct the condition to wait for preview callback return signal.
 : Revise preview callback related code.

[Version] 0.3.41
[Issue Type] New feature

Change-Id: Iefcd19f04fed02271f00d0c9653615f9d881295d
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoRemove global extern variable - mmcam_log_level 70/255370/1 accepted/tizen/unified/20210319.141004 submit/tizen/20210318.073807
Jeongmo Yang [Wed, 17 Mar 2021 11:11:13 +0000 (20:11 +0900)]
Remove global extern variable - mmcam_log_level

[Version] 0.3.40
[Issue Type] SAM Improvement

Change-Id: I0d48bb23158135586960a90fd19808b8cf37b393
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoAdd new APIs for flash brightness 14/252914/1 accepted/tizen/unified/20210208.061718 submit/tizen/20210204.050939
Jeongmo Yang [Wed, 3 Feb 2021 05:57:06 +0000 (14:57 +0900)]
Add new APIs for flash brightness

[Version] 0.3.39
[Issue Type] New feature

Change-Id: Ibe4342b440d0bdb6cfcc779699f8f60262e79ad4
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoSupport network camera 53/246753/2 accepted/tizen/unified/20201109.123506 submit/tizen/20201106.064606
Jeongmo Yang [Wed, 4 Nov 2020 01:58:26 +0000 (10:58 +0900)]
Support network camera

[Version] 0.3.38
[Issue Type] Update

Change-Id: I0efbf3e7d7664524b4db15ec9f42ce65094e7069
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoRevise log related code 21/244621/8 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.114605 accepted/tizen/6.0/unified/hotfix/20201103.003027 accepted/tizen/unified/20201005.005829 submit/tizen/20200928.104152 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
Jeongmo Yang [Tue, 22 Sep 2020 10:51:53 +0000 (19:51 +0900)]
Revise log related code

- Use mmcam_log_level as extern variable which is declared and set in libmm-camcorder.
- Add new macro for new log level.

[Version] 0.3.37
[Issue Type] Log

Change-Id: I3151bc8559b21832e5b9fc82978c9f6b59e8e694
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoSupport platform privilege for camera device 80/243380/1 accepted/tizen/unified/20200909.155604 submit/tizen/20200908.053247
Jeongmo Yang [Mon, 7 Sep 2020 07:09:28 +0000 (16:09 +0900)]
Support platform privilege for camera device

[Version] 0.3.36
[Issue Type] New feature

Change-Id: Id6535ffb0b9197550468941576f43104140dfd6c
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoFix crash when create bo for normal buffer 12/241912/1 accepted/tizen/unified/20200825.033206 submit/tizen/20200821.025149
Jeongmo Yang [Fri, 21 Aug 2020 00:29:45 +0000 (09:29 +0900)]
Fix crash when create bo for normal buffer

- Invalid pointer is used to copy.

[Version] 0.3.35
[Issue Type] Bug fix

Change-Id: I36c3a99ea855b0f76c01e3a21b29c621733c52ca
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoInitialize fd to -1 for muse_camera_export_data 62/241262/2 accepted/tizen/unified/20200820.034821 submit/tizen/20200819.022508 submit/tizen/20200819.121427
Jeongmo Yang [Wed, 19 Aug 2020 00:43:38 +0000 (09:43 +0900)]
Initialize fd to -1 for muse_camera_export_data

- fd 0 which is not imported could be closed when free export data,
  then, it will cause invalid fd operation.

[Version] 0.3.34
[Issue Type] Bug fix

Change-Id: Idad72d74abd4c66daa960c34b9804b9c5271e262
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoExport functions for camera frame handling 30/239830/8 submit/tizen/20200818.102105
Jeongmo Yang [Thu, 30 Jul 2020 05:34:57 +0000 (14:34 +0900)]
Export functions for camera frame handling

- camera_export_data_new()
- camera_export_data_free()
- camera_remove_export_data()

[Version] 0.3.33
[Issue Type] Update

Change-Id: I4024be557245e221399a32fe8365d8bc82162aa2
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoAdd new display type for Ecore_Wl2_Window 89/236989/1 accepted/tizen/unified/20200625.110551 submit/tizen/20200624.034306
Jeongmo Yang [Wed, 24 Jun 2020 02:27:50 +0000 (11:27 +0900)]
Add new display type for Ecore_Wl2_Window

[Version] 0.3.32
[Profile] Common
[Issue Type] New feature

Change-Id: I84d21fada327af7851a9be911ff82853ad3611a2
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoUpdate code for line coverage test 29/233629/3 accepted/tizen/unified/20200602.133304 submit/tizen/20200529.080030
Jeongmo Yang [Mon, 18 May 2020 02:36:37 +0000 (11:36 +0900)]
Update code for line coverage test

- Replace error return code by macro
- Remove unused code
- Exclude device related error code

[Version] 0.3.31
[Profile] Common
[Issue Type] Update

Change-Id: I3c62c168daf712ebde3bed00e252ecb059b9016c
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
3 years agoSet vconf key to check state of camera 49/233249/1
Jeongmo Yang [Wed, 13 May 2020 07:53:31 +0000 (16:53 +0900)]
Set vconf key to check state of camera

- libfeedback uses vconf key to check camera state,
  but it was not set.

[Version] 0.3.30
[Profile] Common
[Issue Type] Update

Change-Id: I16983dcc5c34177978d103656364ce4560528736
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
4 years agoAdd feature for line coverage measurement 93/231993/1
Jeongmo Yang [Mon, 27 Apr 2020 07:50:48 +0000 (16:50 +0900)]
Add feature for line coverage measurement

[Version] 0.3.29-1
[Profile] Common
[Issue Type] Line coverage

Change-Id: Idb468c54f44e204e770dfab1b146e0f6e6469e63
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
4 years agoRemove dispatcher initialization command function 70/228170/1
Jeongmo Yang [Thu, 19 Mar 2020 09:24:34 +0000 (18:24 +0900)]
Remove dispatcher initialization command function

- The plugin preload function can be performed by muse-server itself with mused.conf file

[Version] 0.3.29
[Profile] Common
[Issue Type] Clean up

Change-Id: I99a0015bcabbbc8b5b18d176608d80941ba2accb
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
4 years agoSupport MJPEG format and update camera_preview_data_s 07/224207/1 accepted/tizen/unified/20200212.125807 submit/tizen/20200211.075339
Jeongmo Yang [Fri, 7 Feb 2020 05:21:50 +0000 (14:21 +0900)]
Support MJPEG format and update camera_preview_data_s

[Version] 0.3.28
[Profile] Common
[Issue Type] Update

Change-Id: Ia2da39ca9e5e775085067a195c374b5511b877ba
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
4 years agoGet client pid from socket credential for security 50/219650/1 accepted/tizen/unified/20191213.042443 submit/tizen/20191212.093208
Jeongmo Yang [Mon, 9 Dec 2019 05:04:52 +0000 (14:04 +0900)]
Get client pid from socket credential for security

[Version] 0.3.27
[Profile] Common
[Issue Type] Security

Change-Id: I7da5cc08d3fb135759ffbc5f43270cf2918ab7c9
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
4 years agoModify condition to wait returned buffer in preview cb 03/219303/4
Jeongmo Yang [Wed, 4 Dec 2019 06:53:24 +0000 (15:53 +0900)]
Modify condition to wait returned buffer in preview cb

- No need to wait when non-zero copy buffer is used.
- Need to wait when user callback is set.

[Version] 0.3.26
[Profile] Common
[Issue Type] Update

Change-Id: If1b2c9aa5b903ddc31875bfb4cb9571fc1b70cf2
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
4 years agoChange dispatcher interface for display setting 18/217318/3 accepted/tizen/unified/20191112.125145 submit/tizen/20191112.051613
Jeongmo Yang [Fri, 8 Nov 2019 09:40:45 +0000 (18:40 +0900)]
Change dispatcher interface for display setting

[Version] 0.3.25
[Profile] Common
[Issue Type] Update

Change-Id: Id0110f89854c09ea03fb8916470abbbefa49d4d3
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
4 years agoFix bug - The minus value could not be sent for setting pan/tilt 03/207803/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.021939 accepted/tizen/5.5/unified/mobile/hotfix/20201027.085922 accepted/tizen/unified/20190614.051552 submit/tizen/20190613.080726 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 tizen_5.5.m2_release
Jeongmo Yang [Thu, 13 Jun 2019 01:31:00 +0000 (10:31 +0900)]
Fix bug - The minus value could not be sent for setting pan/tilt

[Version] 0.3.24
[Profile] Common
[Issue Type] Bug fix

Change-Id: Ib71a608cbf56c760618ed7eb24f44ada66dcdb7f
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 years agoSupport user buffer fd 23/200223/4 accepted/tizen/unified/20190415.132547 submit/tizen/20190412.070842
Jeongmo Yang [Wed, 20 Feb 2019 08:37:12 +0000 (17:37 +0900)]
Support user buffer fd

[Version] 0.3.23
[Profile] Common
[Issue Type] Update

Change-Id: I0ce2cd72dd353d99f5bfea682be592c967cddf63
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 years agoReplace tbm_key by tbm_fd for buffer protection 25/199225/8 accepted/tizen/unified/20190221.084204 submit/tizen/20190219.074619 submit/tizen/20190220.092629
Jeongmo Yang [Thu, 7 Feb 2019 10:32:52 +0000 (19:32 +0900)]
Replace tbm_key by tbm_fd for buffer protection

- Any other process can access buffer if it knows its tbm_key,
  but, there is no way to access if it's replaced by tbm_fd.

[Version] 0.3.22
[Profile] Common
[Issue Type] Update
[Dependency module] mmsvc-recorder, capi-media-camera

Change-Id: I00cade818977f6a65836eb9a8b8c4064cfddc5c0
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 years agoAdd unit test 38/193838/6 accepted/tizen/unified/20181130.064927 submit/tizen/20181129.024814
Jeongmo Yang [Tue, 27 Nov 2018 03:30:14 +0000 (12:30 +0900)]
Add unit test

- Precondition to run gtests-*
 : The executable label should be changed to "User" after install
 : The user should be "owner"

[Version] 0.3.21
[Profile] Common
[Issue Type] Update
[Dependency module] N/A

Change-Id: Iaca9b1511552406ccd4e3b1100ec9a400f88ebba
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 years agoUpdate code for RGB data handling in preview callback 01/188801/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.015057 accepted/tizen/unified/20180914.073159 submit/tizen/20180913.075210 submit/tizen_5.0/20181101.000003
Jeongmo Yang [Mon, 10 Sep 2018 10:33:51 +0000 (19:33 +0900)]
Update code for RGB data handling in preview callback

[Version] 0.3.19
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20180910.1]

Change-Id: I298c2c20ffa6e7c8224012f4adc03f978bbc5439
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 years agoSupport new format - INVZ for depth data 27/184227/8 accepted/tizen/unified/20180802.134826 submit/tizen/20180727.033411
Jeongmo Yang [Mon, 16 Jul 2018 11:11:22 +0000 (20:11 +0900)]
Support new format - INVZ for depth data

[Version] 0.3.18
[Profile] Common
[Issue Type] Update
[Dependency module] libmm-common, libmm-camcorder

Change-Id: I80ba0ed7c363f7b16629ecb40b0e4db98f302089
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 years agoRemove unused code related with sound policy 16/180716/1 accepted/tizen/unified/20180611.015401 submit/tizen/20180607.021137
Jeongmo Yang [Fri, 1 Jun 2018 09:27:18 +0000 (18:27 +0900)]
Remove unused code related with sound policy

[Version] 0.3.17
[Profile] Common
[Issue Type] Update
[Dependency module] N/A

Change-Id: I98339ab732d3aeb5bfea8b27078fc47bdf99dc34
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoFix coverity issue - Improper use of negative value 06/174506/1 accepted/tizen/unified/20180405.064335 submit/tizen/20180404.024456
Jeongmo Yang [Mon, 2 Apr 2018 11:08:26 +0000 (20:08 +0900)]
Fix coverity issue - Improper use of negative value

[Version] 0.3.16
[Profile] Common
[Issue Type] Coverity
[Dependency module] N/A

Change-Id: I74fd52d369c73d1020c1496b96aec60d7d627dc6
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoBug fix for invalid camera device check 70/172970/1 accepted/tizen/unified/20180320.065821 submit/tizen/20180320.010111
Jeongmo Yang [Mon, 19 Mar 2018 06:32:05 +0000 (15:32 +0900)]
Bug fix for invalid camera device check

[Version] 0.3.15
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A

Change-Id: I8d1c62a983a47643edd9c2282678a791fbc80b50
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoRemove codes for sesison backward compatibility 45/171745/1 submit/tizen/20180309.032153 submit/tizen/20180312.060825
Sangchul Lee [Wed, 7 Mar 2018 04:45:42 +0000 (13:45 +0900)]
Remove codes for sesison backward compatibility

use MMCAM_CLIENT_PID attribute instead of MMCAM_PID_FOR_SOUND_FOCUS.

[Version] 0.3.14
[Profile] Common
[Issue Type] Clean-up
[Dependency module] N/A

Change-Id: I4655fc2d3ca92e1bbef249cd5184cdc9a7b259ef
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
6 years agoRemove unnecessary package dependency and "#include" 48/166148/4 accepted/tizen/unified/20180109.172828 submit/tizen/20180109.043419
Jeongmo Yang [Mon, 8 Jan 2018 07:49:27 +0000 (16:49 +0900)]
Remove unnecessary package dependency and "#include"

- package list : Evas, Ecore, Elementary, Ecore-wayland, vconf

[Version] 0.3.13
[Profile] Common
[Issue Type] Optimization
[Dependency module] N/A

Change-Id: Ic4326e053dab0ea93e8d5be2cfdde5c10cf339a5
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoBug fix - pointer should be used for get attribute function 56/165256/1 accepted/tizen/unified/20171228.065008 submit/tizen/20171227.095031
Jeongmo Yang [Wed, 27 Dec 2017 09:24:41 +0000 (18:24 +0900)]
Bug fix - pointer should be used for get attribute function

[Version] 0.3.12
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20171227.2]

Change-Id: Ia0e9b2408ff450cc653c6bbaab3fc10e230f2a83
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoFix crash in case of calling some functions which has a bool type parameter 48/165248/3
Jeongmo Yang [Wed, 27 Dec 2017 08:30:48 +0000 (17:30 +0900)]
Fix crash in case of calling some functions which has a bool type parameter

[Version] 0.3.11
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A

Change-Id: I18b68484febe6573bd3b6a583f1a0ebd00b32c11
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoSupport new APIs for ACR-1130 57/164857/1
Jeongmo Yang [Thu, 21 Dec 2017 08:22:27 +0000 (17:22 +0900)]
Support new APIs for ACR-1130

[Version] 0.3.10
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20171219.4]

Change-Id: I1725869ddc87cf36222fc8de91e7bd97cc6d32a2
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoCheck camera support feature in camera_get_device_state function 35/162235/2 accepted/tizen/unified/20171211.061300 submit/tizen/20171208.071653
Jeongmo Yang [Thu, 30 Nov 2017 00:46:16 +0000 (09:46 +0900)]
Check camera support feature in camera_get_device_state function

[Version] 0.3.9
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20171128.5]

Change-Id: I6ef5e8c47095c446904cb0e21a2b8fb7786877b0
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoReplace wl_info by parent_id 74/160874/2 accepted/tizen/unified/20171130.063502 submit/tizen/20171129.023032 submit/tizen/20171130.010258
Jeongmo Yang [Mon, 20 Nov 2017 09:42:12 +0000 (18:42 +0900)]
Replace wl_info by parent_id

[Version] 0.3.8
[Profile] Common
[Issue Type] Update
[Dependency module] capi-media-camera, libmm-camcorder
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20171122.1]

Change-Id: I1183ccd4e1f9f9dcd548f31fde715acc218e0c00
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoFix deadlock in camera_dispatcher_unset_preview_cb 39/159139/1 accepted/tizen/unified/20171108.161107 submit/tizen/20171108.005543
Jeongmo Yang [Tue, 7 Nov 2017 06:45:21 +0000 (15:45 +0900)]
Fix deadlock in camera_dispatcher_unset_preview_cb

The mutex lock is used in camera_dispatcher_unset_preview_cb
and same one is used in preview_callback function.
When preview buffer is come, preview callback function locks mutex
and wait for returned buffer.
But at that time, deadlock could be occurred if camera_dispatcher_unset_preview_cb is also called.
Because muse camera's socket handing thread is only one
and camera_dispatcher_unset_preview_cb tries to lock mutex while preempting handling thread,
so return buffer message could not be handled.

This patch makes return buffer message could be handled while some APIs are calling.

[Version] 0.3.7
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-4.0-unified_20171106.1]

Change-Id: Iacb6c5125db0267795dd30c74555f69cc6ac3c89
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoFix KONA issue - Invalid log parameter 38/155138/3 accepted/tizen/unified/20171013.192844 submit/tizen/20171012.091106
Haesu Gwon [Thu, 12 Oct 2017 06:48:18 +0000 (15:48 +0900)]
Fix KONA issue - Invalid log parameter

[Version] 0.3.6
[Profile] Common
[Issue Type] Update
[Dependency module] N/A

Change-Id: Icc029f50e129629b814b794a7798f5d32edc6a5b
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
6 years agoFix coverity issue 21/152821/1 accepted/tizen/unified/20171010.063619 submit/tizen/20170928.044334
Jeongmo Yang [Wed, 27 Sep 2017 07:18:40 +0000 (16:18 +0900)]
Fix coverity issue

- Improper use of negative value

[Version] 0.3.5
[Profile] Common
[Issue Type]
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20170926.2]

Change-Id: I23ec3d9ee2c4fe7e2112a626b5b2fa7b6b450525
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoUpdate muse-camera by the splited muse library 92/142792/4 accepted/tizen/4.0/unified/20170829.015932 accepted/tizen/unified/20170822.112937 submit/tizen/20170821.070131 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004
YoungHun Kim [Mon, 7 Aug 2017 08:31:13 +0000 (17:31 +0900)]
Update muse-camera by the splited muse library

Change-Id: Ic84f5055a7284a1d3f11b47192986a6711cf7245

6 years agoFix Svace issues - INVARIANT_RESULT.OP_ZERO, SIZEOF_POINTER_TYPE 74/141574/1 accepted/tizen/unified/20170810.171613 submit/tizen/20170809.053234
Jeongmo Yang [Tue, 1 Aug 2017 05:05:35 +0000 (14:05 +0900)]
Fix Svace issues - INVARIANT_RESULT.OP_ZERO, SIZEOF_POINTER_TYPE

[Version] 0.3.3
[Profile] Common
[Issue Type] Svace
[Dependency module] N/A

Change-Id: I85365deeb093db0e562d7af983bd21e684c0e386
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoAdd new legacy APIs and dispatcher functions for new APIs 36/133236/1 accepted/tizen/4.0/unified/20170816.013228 accepted/tizen/4.0/unified/20170816.015757 accepted/tizen/unified/20170630.083112 submit/tizen/20170614.052326 submit/tizen/20170619.053621 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
Jeongmo Yang [Fri, 9 Jun 2017 09:30:25 +0000 (18:30 +0900)]
Add new legacy APIs and dispatcher functions for new APIs

The user has no way to know when the interrupt is started.
This commit provides the interface for it.

[Version] 0.3.2
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20170608.1]

Change-Id: I2158934cee9781cbb6ffc4b592fb7341ce1508a2
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoFix stack-buffer-overflow error 07/131607/2 accepted/tizen/unified/20170612.073912 submit/tizen/20170612.030116
Jeongmo Yang [Tue, 30 May 2017 07:11:06 +0000 (16:11 +0900)]
Fix stack-buffer-overflow error

[Version] 0.3.1
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20170524.4]

Change-Id: I25fa5d47e519dfbf4983852630ee1356971d7f95
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoRemove so versioning and symlink files 87/131587/2
Jeongmo Yang [Tue, 30 May 2017 06:12:56 +0000 (15:12 +0900)]
Remove so versioning and symlink files

libmuse-camera.so is used by muse server with dlopen in target,
so it should be placed on target.
Because of it, we removed so versioning and symlink files.

[Version] 0.3.0-2
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20170524.4]

Change-Id: Ied194accdcbcbc14725847186c3dec96f124aa73
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoExclude *.so files from binary package 44/131144/1
Jeongmo Yang [Thu, 25 May 2017 12:42:05 +0000 (21:42 +0900)]
Exclude *.so files from binary package

[Version] 0.3.0-1
[Profile] Common
[Issue Type] Update
[Dependency module] N/A

Change-Id: Ie8d03343077dcb2dd03dbcf6275f003ea6b57004
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoMove privilege check code from camera_create to camera_start_preview 48/128548/1 accepted/tizen/unified/20170515.074601 submit/tizen/20170515.041223 tizen_4.0.m1_release
Jeongmo Yang [Wed, 10 May 2017 10:00:43 +0000 (19:00 +0900)]
Move privilege check code from camera_create to camera_start_preview

[Version] 0.3.0
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20170502.4]

Change-Id: I29fe63336af66d198319758ae803b0f144375cf3
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoBug fix for foreach supported callback 24/125824/1 accepted/tizen/unified/20170419.165021 submit/tizen/20170419.094330
Jeongmo Yang [Wed, 19 Apr 2017 04:58:21 +0000 (13:58 +0900)]
Bug fix for foreach supported callback

The foreach supported callback stopped because of void return.
So, add proper return value for them to call remained callback.

[Version] 0.2.77
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=20170412_223034]

Change-Id: I8750c247744e886160d2290e59187df4249683bb
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoCheck camera feature with system info 12/123012/1 accepted/tizen/unified/20170410.160216 submit/tizen/20170410.072959
Jeongmo Yang [Tue, 4 Apr 2017 07:12:40 +0000 (16:12 +0900)]
Check camera feature with system info

[Version] 0.2.76
[Profile] Common
[Issue Type] Update
[Dependency module] mmsvc-core

Change-Id: I23fd5180d0fd4c86c638b61ae2e3434734a53d1d
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoUpdate spec file for license macro 05/120305/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170329.171835 accepted/tizen/ivi/20170329.221925 accepted/tizen/mobile/20170329.221758 accepted/tizen/tv/20170329.221853 accepted/tizen/unified/20170329.221942 accepted/tizen/wearable/20170329.221909 submit/tizen/20170328.103759
Jeongmo Yang [Wed, 22 Mar 2017 07:22:49 +0000 (16:22 +0900)]
Update spec file for license macro

[Version] 0.2.75-1
[Profile] Common
[Issue Type] Update
[Dependency module] N/A

Change-Id: Ia287bdfc9c6a3ff8e4ebee1c0cef42e5f885f189
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoAdd new command dispatcher(current NULL) and modify return value for dispatcher 08/119308/1
Jeongmo Yang [Thu, 16 Mar 2017 07:55:25 +0000 (16:55 +0900)]
Add new command dispatcher(current NULL) and modify return value for dispatcher

[Version] 0.2.75
[Profile] Common
[Issue Type] Update

Change-Id: I7b89f36829dec90b4a5bb3ea995996e55022495d
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoReturn CAMERA_STATE_PREVIEW for camera_get_state while stopping preview 25/119225/1
Jeongmo Yang [Wed, 15 Mar 2017 23:28:10 +0000 (08:28 +0900)]
Return CAMERA_STATE_PREVIEW for camera_get_state while stopping preview

[Version] 0.2.74
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20170315.2]

Change-Id: I8af74825136bd89faf03290650e996eff34e2cba
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoUpdate shutdown cmd for remained buffer release 14/117614/3 accepted/tizen/common/20170309.174911 accepted/tizen/ivi/20170308.120224 accepted/tizen/mobile/20170308.120144 accepted/tizen/tv/20170308.120202 accepted/tizen/unified/20170310.080652 accepted/tizen/wearable/20170308.120214 submit/tizen/20170307.122057 submit/tizen_unified/20170310.011402
Jeongmo Yang [Mon, 27 Feb 2017 06:00:16 +0000 (15:00 +0900)]
Update shutdown cmd for remained buffer release

[Version] 0.2.73
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A

Change-Id: I86c6bcac5c26e43818fc4f544129cc196aa69204
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoAdd thread exit code for shutdown case. 13/117613/2
Haesu Gwon [Fri, 24 Feb 2017 05:57:41 +0000 (14:57 +0900)]
Add thread exit code for shutdown case.

In shutdown case, camera_task_thread is not destroyed properly.
So signal missing can be caused by this unhandled thread.

Change-Id: Ia45d7b0f5626851a61bd8ed9022b5f43c1bb2eb4
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
7 years agoIgnore MM_ERROR_OUT_OF_STORAGE, MM_ERROR_FILE_WRITE 12/117612/2
Jeongmo Yang [Thu, 16 Feb 2017 02:01:35 +0000 (11:01 +0900)]
Ignore MM_ERROR_OUT_OF_STORAGE, MM_ERROR_FILE_WRITE

MM_ERROR_OUT_OF_STORAGE and MM_ERROR_FILE_WRITE are only occurred while recording,
but they're passed as a CAMERA_ERROR_INVALID_OPERATION in camera API.
It's just invalid operation, so updated to ignore them.

[Version] 0.2.71
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-mobile_20170215.1]

Change-Id: I72eaaf443c46e696cd266b9fce83494a4d809cab
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoAdd defensive code for signal missing when destroy handle 90/113390/1
Jeongmo Yang [Tue, 7 Feb 2017 06:45:22 +0000 (15:45 +0900)]
Add defensive code for signal missing when destroy handle

It seems that signal to quit task thread is missed when destroy handle,
so, call g_cond_wait_until instead of g_cond_wait after stop preview is called,
then, task thread can be quit although it does not receive signal.

[Version] 0.2.70
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20170206.3]

Change-Id: I9338a6bd779d9f19eae027f5a75f72f3b1498cba
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoUpdate code for count 0 of face detection 47/112847/1
Jeongmo Yang [Thu, 2 Feb 2017 06:33:41 +0000 (15:33 +0900)]
Update code for count 0 of face detection

[Version] 0.2.69
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20170131.2]

Change-Id: I6adb7b8f8a7dd7f19f4830d786ad803dfd76b99e
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoAvoid duplicated call of legacy_camera_create/destroy 45/112845/2
Jeongmo Yang [Wed, 1 Feb 2017 09:43:32 +0000 (18:43 +0900)]
Avoid duplicated call of legacy_camera_create/destroy

When user calls camera_get_device_state or camera_get_flash_state,
legacy_camera_create and legacy_camera_destroy are always called internally.
But, it's enough to call only once after muse-server starts, so update the code to avoid unnecessary call.

[Version] 0.2.68
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20170131.2]

Change-Id: I93685e0bef44b792c5c899cd0d0009012e7290cd
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoWait for recorder handle release when shutdown 14/109514/1
Jeongmo Yang [Tue, 10 Jan 2017 08:39:48 +0000 (17:39 +0900)]
Wait for recorder handle release when shutdown

[Version] 0.2.67
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20170104.1]

Change-Id: Ic36239c60fd1c84c1c2cd785d3d4c82f9020c119
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoAdd resource conflict error in error convert function 21/108921/1
Jeongmo Yang [Fri, 6 Jan 2017 07:51:21 +0000 (16:51 +0900)]
Add resource conflict error in error convert function

[Version] 0.2.66
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20170104.1]

Change-Id: Ibdb05531e23848339de000466323b1b132d0a967
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoAdd tbm_bo_unmap for face detected data 21/108521/1
Jeongmo Yang [Thu, 5 Jan 2017 02:23:14 +0000 (11:23 +0900)]
Add tbm_bo_unmap for face detected data

The client can not map the bo because it's not unmapped on server side

[Version] 0.2.65
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20161230.2]

Change-Id: I41df72f849fe1dca8d6e8ba3175dc37e5dcf95dc
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoRemove g_thread_unref after g_thread_join 49/108149/1
Jeongmo Yang [Tue, 3 Jan 2017 06:44:41 +0000 (15:44 +0900)]
Remove g_thread_unref after g_thread_join

g_thread_unref is also called in g_thread_join,
so g_thread_unref after g_thread_join is not needed
and it can cause memory corruption.

[Version] 0.2.64
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20161230.2]

Change-Id: I8b1737934171f7bbdfc4735b71b06eef23fcf474
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoBug fix - invalid previous state on interrupted callback 92/105992/1 accepted/tizen/common/20161220.191009 accepted/tizen/ivi/20161220.223817 accepted/tizen/mobile/20161220.223647 accepted/tizen/tv/20161220.223721 accepted/tizen/unified/20170309.033112 accepted/tizen/wearable/20161220.223750 submit/tizen/20161220.104958 submit/tizen_unified/20170308.100408
Jeongmo Yang [Tue, 20 Dec 2016 01:58:51 +0000 (10:58 +0900)]
Bug fix - invalid previous state on interrupted callback

[Version] 0.2.63
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20161215.3]

Change-Id: I4193a7e52c3f0f2b1b4e58610dd5e3990f9d340a
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoBug fix - After change device, preview is not displayed in case of EVAS display type. 01/105101/6
Haesu Gwon [Thu, 15 Dec 2016 11:07:39 +0000 (20:07 +0900)]
Bug fix - After change device, preview is not displayed in case of EVAS display type.

[Version] 0.2.62
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=devel-dotnet_20161212.4]

Change-Id: I3c450b4d59e388cbfd9f615d0863768b216ac679
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
7 years agoBug fix - state changed callback is not called after camera_change_device API is... 40/103340/1 accepted/tizen/common/20161214.160559 accepted/tizen/ivi/20161214.015317 accepted/tizen/mobile/20161214.014910 accepted/tizen/tv/20161214.015113 accepted/tizen/wearable/20161214.015130 submit/tizen/20161213.083228
Jeongmo Yang [Thu, 8 Dec 2016 06:03:57 +0000 (15:03 +0900)]
Bug fix - state changed callback is not called after camera_change_device API is called

[Version] 0.2.61
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20161206.3]

Change-Id: I328dce8ec701a6efb376139af4b0e1022460ae8e
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoFix Svace issue - UNREACHABLE_CODE 10/100510/1 accepted/tizen/common/20161129.173639 accepted/tizen/ivi/20161130.015442 accepted/tizen/mobile/20161130.015222 accepted/tizen/tv/20161130.015308 accepted/tizen/wearable/20161130.015353 submit/tizen/20161129.052917
Jeongmo Yang [Mon, 28 Nov 2016 09:42:55 +0000 (18:42 +0900)]
Fix Svace issue - UNREACHABLE_CODE

[Version] 0.2.60
[Profile] Common
[Issue Type] Svace
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20161122.5]

Change-Id: I2360535428e835226da7fa5a5520ef1c41163003
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoFix bug - 1. start preview failure, 2. destroy timeout 18/98318/1 accepted/tizen/common/20161117.085414 accepted/tizen/ivi/20161117.084527 accepted/tizen/mobile/20161117.084437 accepted/tizen/tv/20161117.084449 accepted/tizen/wearable/20161117.084508 submit/tizen/20161117.065259
Jeongmo Yang [Thu, 17 Nov 2016 05:08:45 +0000 (14:08 +0900)]
Fix bug - 1. start preview failure, 2. destroy timeout

1. After change device, gdbus_connection is not set to new handle, so realize is failed
2. task thread run flag is not used for "while" statement condition, so did not quit the thread

[Version] 0.2.59
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20161115.1]

Change-Id: I0e7747fabbb4628c4d95d5b18c784bf9a1846311
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoFix Svace issue - DEREFERENCE_AFTER_NULL 29/97629/2 accepted/tizen/common/20161115.200559 accepted/tizen/ivi/20161115.234301 accepted/tizen/mobile/20161115.234001 accepted/tizen/tv/20161115.234155 accepted/tizen/wearable/20161115.234226 submit/tizen/20161115.062308
Jeongmo Yang [Tue, 15 Nov 2016 01:23:04 +0000 (10:23 +0900)]
Fix Svace issue - DEREFERENCE_AFTER_NULL

[Version] 0.2.58
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20161114.3]

Change-Id: Ic6c7379b669197e099a921c9caa8121af70a7506
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoComment unnecessary log 05/97405/1
Jeongmo Yang [Mon, 14 Nov 2016 05:52:32 +0000 (14:52 +0900)]
Comment unnecessary log

[Version] 0.2.57
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-mobile_20161111.1]

Change-Id: I80cce8b0d846fbba8a2a201af99d6b1879ad69db
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoAdd task thread for some APIs related preview restart internally 39/96839/3
Jeongmo Yang [Thu, 10 Nov 2016 10:32:07 +0000 (19:32 +0900)]
Add task thread for some APIs related preview restart internally

The timeout could be occurred in camerasrc if app sets preview callback and call some APIs related preview restart internally,
because, for restarting preview, all camera buffers should be returned to camerasrc,
but, return buffer event can not be processed while calling some APIs which restarts preview internally.(deadlock)
so, added task thread and the APIs are processed in the task thread to process return buffer event immediately.

[Version] 0.2.56
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-mobile_20161110.1]

Change-Id: I6a55b0aa5f71f6595b75bce823f71c35b1a61287
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoAdd new enums for get APIs and code optimization 11/95411/1 accepted/tizen/common/20161109.140310 accepted/tizen/ivi/20161109.002848 accepted/tizen/mobile/20161109.002602 accepted/tizen/tv/20161109.002718 accepted/tizen/wearable/20161109.002803 submit/tizen/20161108.054351
Jeongmo Yang [Thu, 3 Nov 2016 06:50:50 +0000 (15:50 +0900)]
Add new enums for get APIs and code optimization

1. The previous mechanism for get APIs is extracting get value from received message.
But, received message could be overwritten by next message, so get API could lost the value from server.
To resolve it, this commit adds new enums and client can store the values to each independent space.
2. Replace some macros by function.

[Version] 0.2.55
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-mobile_20161101.3]

Change-Id: I687b53b8cba6bb759feea5191320911409a8496b
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years ago1. Add new function to set gdbus connection, 2. Bug fix for EXIF info 35/93635/4 accepted/tizen/3.0/ivi/20161028.134035 accepted/tizen/3.0/mobile/20161028.133143 accepted/tizen/3.0/tv/20161028.133311 accepted/tizen/3.0/wearable/20161028.133752 accepted/tizen/common/20161025.155109 accepted/tizen/common/20161027.073656 accepted/tizen/ivi/20161027.055026 accepted/tizen/mobile/20161027.054927 accepted/tizen/tv/20161027.055000 accepted/tizen/wearable/20161027.055016 submit/tizen/20161025.104308 submit/tizen/20161027.030209 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082423 submit/tizen_3.0_common/20161104.104000
Jeongmo Yang [Tue, 25 Oct 2016 06:06:40 +0000 (15:06 +0900)]
1. Add new function to set gdbus connection, 2. Bug fix for EXIF info

1. Sometimes, got crashed when get gdbus connection,
so do not get gdbus connection in camera module and get from outside(muse server)
2. EXIF info is missed, fixed it.

[Version] 0.2.54
[Profile] Common
[Issue Type] Update and bug fix
[Dependency module] libmm-camcorder, mmsvc-core
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-mobile_20161024.2]

Change-Id: I628804ad3b6b612b61f1550dc1f103f52b20cdd5
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>