diff options
author | Jeongmo Yang <jm80.yang@samsung.com> | 2017-12-20 17:26:27 +0900 |
---|---|---|
committer | Jeongmo Yang <jm80.yang@samsung.com> | 2017-12-21 19:28:35 +0900 |
commit | b92ea117ad886fcb3ac2306f6323aeca0d790a07 (patch) | |
tree | 46e9ab69efc33f2049f660b7fc1e5aa295273d46 /include | |
parent | d6e8af94d3c938b2bee625d9ec0174c74aacef8c (diff) | |
download | camera-b92ea117ad886fcb3ac2306f6323aeca0d790a07.tar.gz camera-b92ea117ad886fcb3ac2306f6323aeca0d790a07.tar.bz2 camera-b92ea117ad886fcb3ac2306f6323aeca0d790a07.zip |
[ACR-1130] Add new enum and APIs
This commit can support maximum 10 cameras in a target,
and new attribute setting(hue level).
[Version] 0.4.2
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
Change-Id: I675adab79b60d13a402ccceeea34c5df14b707ee
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/camera.h | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/include/camera.h b/include/camera.h index a221fa1..bb70732 100644 --- a/include/camera.h +++ b/include/camera.h @@ -89,7 +89,15 @@ typedef enum { */ typedef enum { CAMERA_DEVICE_CAMERA0 = 0, /**< Primary camera */ - CAMERA_DEVICE_CAMERA1 /**< Secondary camera */ + CAMERA_DEVICE_CAMERA1, /**< Secondary camera */ + CAMERA_DEVICE_CAMERA2, /**< Third camera (Since 5.0) */ + CAMERA_DEVICE_CAMERA3, /**< 4th camera (Since 5.0) */ + CAMERA_DEVICE_CAMERA4, /**< 5th camera (Since 5.0) */ + CAMERA_DEVICE_CAMERA5, /**< 6th camera (Since 5.0) */ + CAMERA_DEVICE_CAMERA6, /**< 7th camera (Since 5.0) */ + CAMERA_DEVICE_CAMERA7, /**< 8th camera (Since 5.0) */ + CAMERA_DEVICE_CAMERA8, /**< 9th camera (Since 5.0) */ + CAMERA_DEVICE_CAMERA9 /**< 10th camera (Since 5.0) */ } camera_device_e; /** @@ -2891,6 +2899,50 @@ int camera_attr_get_contrast(camera_h camera, int *level); int camera_attr_get_contrast_range(camera_h camera, int *min, int *max); /** + * @brief Sets the hue level. + * @since_tizen 5.0 + * @param[in] camera The handle to the camera + * @param[in] level The hue level + * @return @c 0 on success, otherwise a negative error value + * @retval #CAMERA_ERROR_NONE Successful + * @retval #CAMERA_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #CAMERA_ERROR_NOT_SUPPORTED The feature is not supported + * @see camera_attr_get_hue() + * @see camera_attr_get_hue_range() + */ +int camera_attr_set_hue(camera_h camera, int level); + +/** + * @brief Gets the hue level. + * @since_tizen 5.0 + * @param[in] camera The handle to the camera + * @param[out] level The hue level + * @return @c 0 on success, otherwise a negative error value + * @retval #CAMERA_ERROR_NONE Successful + * @retval #CAMERA_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #CAMERA_ERROR_NOT_SUPPORTED The feature is not supported + * @see camera_attr_set_hue() + * @see camera_attr_get_hue_range() + */ +int camera_attr_get_hue(camera_h camera, int *level); + +/** + * @brief Gets the available hue level. + * @since_tizen 5.0 + * @remarks If the min value is greater than the max value, it means that this feature is not supported. + * @param[in] camera The handle to the camera + * @param[out] min The minimum hue level + * @param[out] max The maximum hue level + * @return @c 0 on success, otherwise a negative error value + * @retval #CAMERA_ERROR_NONE Successful + * @retval #CAMERA_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #CAMERA_ERROR_NOT_SUPPORTED The feature is not supported + * @see camera_attr_set_hue() + * @see camera_attr_get_hue() + */ +int camera_attr_get_hue_range(camera_h camera, int *min, int *max); + +/** * @brief Sets the white balance mode. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * @param[in] camera The handle to the camera |