Tizen Native API
|
The Attributes API provides functions to fetch camera attributes.
Required Header
#include <camera.h>
Overview
The Camera Attributes API provides functions to get/set basic camera attributes.
With the Camera Attributes API you are able to set and get camera attributes like:
- Preview frame rate
- Supported FPS
- Image quality
- Zoom level
- Auto focus mode
- Supported auto focus mode
- Exposure mode
- Supported exposure mode
- Exposure value
- ISO level
- Supported ISO
- Brightness level
- Contrast level
- White balance mode
- Supported white balance
- Effect mode
- Supported effect mode
- Scene mode
- Supported scene mode
- On/off camera information
- Image description
- Orientation information
- Software tag
- GPS latitude data
- GPS longitude data
- GPS altitude data
- Flash mode
- Supported flash mode
Foreach Operations
FOREACH | CALLBACK | DESCRIPTION |
---|---|---|
camera_attr_foreach_supported_fps() | camera_attr_supported_fps_cb() | Supported FPS |
camera_attr_foreach_supported_af_mode() | camera_attr_supported_af_mode_cb() | Supported auto focus mode |
camera_attr_foreach_supported_exposure_mode() | camera_attr_supported_exposure_mode_cb() | Supported exposure mode |
camera_attr_foreach_supported_iso() | camera_attr_supported_iso_cb() | Supported ISO |
camera_attr_foreach_supported_whitebalance() | camera_attr_supported_whitebalance_cb() | Supported whitebalance |
camera_attr_foreach_supported_effect() | camera_attr_supported_effect_cb() | Supported effect mode |
camera_attr_foreach_supported_scene_mode() | camera_attr_supported_scene_mode_cb() | Supported scene mode |
camera_attr_foreach_supported_flash_mode() | camera_attr_supported_flash_mode_cb() | Supported flash mode |
Related Features
This API is related with the following features:
- http://tizen.org/feature/camera
- http://tizen.org/feature/camera.back
- http://tizen.org/feature/camera.back.flash
- http://tizen.org/feature/camera.front
- http://tizen.org/feature/camera.front.flash
It is recommended to design feature related codes in your application for reliability.
You can check if a device supports the related features for this API by using System Information, thereby controlling the procedure of your application.
To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on featuring your application can be found from Feature Element.
Functions | |
int | camera_attr_set_preview_fps (camera_h camera, camera_attr_fps_e fps) |
Sets the preview frame rate. | |
int | camera_attr_get_preview_fps (camera_h camera, camera_attr_fps_e *fps) |
Gets the frames per second of a preview video stream. | |
int | camera_attr_set_image_quality (camera_h camera, int quality) |
Sets quality of the image. | |
int | camera_attr_get_image_quality (camera_h camera, int *quality) |
Gets the quality of a still image, which is captured. | |
int | camera_attr_set_zoom (camera_h camera, int zoom) |
Sets the zoom level. | |
int | camera_attr_get_zoom (camera_h camera, int *zoom) |
Gets the zoom level. | |
int | camera_attr_get_zoom_range (camera_h camera, int *min, int *max) |
Gets the available zoom level. | |
int | camera_attr_set_af_mode (camera_h camera, camera_attr_af_mode_e mode) |
Sets the auto focus mode. | |
int | camera_attr_get_af_mode (camera_h camera, camera_attr_af_mode_e *mode) |
Gets the auto focus mode. | |
int | camera_attr_set_af_area (camera_h camera, int x, int y) |
Sets auto focus area. | |
int | camera_attr_clear_af_area (camera_h camera) |
Clears the auto focus area. | |
int | camera_attr_set_exposure_mode (camera_h camera, camera_attr_exposure_mode_e mode) |
Sets the exposure mode. | |
int | camera_attr_get_exposure_mode (camera_h camera, camera_attr_exposure_mode_e *mode) |
Gets the exposure mode. | |
int | camera_attr_set_exposure (camera_h camera, int value) |
Sets the exposure value. | |
int | camera_attr_get_exposure (camera_h camera, int *value) |
Gets the exposure value. | |
int | camera_attr_get_exposure_range (camera_h camera, int *min, int *max) |
Gets the available exposure value. | |
int | camera_attr_set_iso (camera_h camera, camera_attr_iso_e iso) |
Sets the ISO level. | |
int | camera_attr_get_iso (camera_h camera, camera_attr_iso_e *iso) |
Gets the ISO level. | |
int | camera_attr_set_theater_mode (camera_h camera, camera_attr_theater_mode_e mode) |
Sets the theater mode. | |
int | camera_attr_get_theater_mode (camera_h camera, camera_attr_theater_mode_e *mode) |
Gets the theater mode. | |
int | camera_attr_set_brightness (camera_h camera, int level) |
Sets the brightness level. | |
int | camera_attr_get_brightness (camera_h camera, int *level) |
Gets the brightness level. | |
int | camera_attr_get_brightness_range (camera_h camera, int *min, int *max) |
Gets the available brightness level. | |
int | camera_attr_set_contrast (camera_h camera, int level) |
Sets the contrast level. | |
int | camera_attr_get_contrast (camera_h camera, int *level) |
Gets the contrast level. | |
int | camera_attr_get_contrast_range (camera_h camera, int *min, int *max) |
Gets the available contrast level. | |
int | camera_attr_set_whitebalance (camera_h camera, camera_attr_whitebalance_e whitebalance) |
Sets the white balance mode. | |
int | camera_attr_get_whitebalance (camera_h camera, camera_attr_whitebalance_e *whitebalance) |
Gets the white balance mode. | |
int | camera_attr_set_effect (camera_h camera, camera_attr_effect_mode_e effect) |
Sets the camera effect mode. | |
int | camera_attr_get_effect (camera_h camera, camera_attr_effect_mode_e *effect) |
Gets the camera effect mode. | |
int | camera_attr_set_scene_mode (camera_h camera, camera_attr_scene_mode_e mode) |
Sets the scene mode. | |
int | camera_attr_get_scene_mode (camera_h camera, camera_attr_scene_mode_e *mode) |
Gets the scene mode. | |
int | camera_attr_enable_tag (camera_h camera, bool enable) |
Enables to write EXIF(Exchangeable image file format) tags in a JPEG file. | |
int | camera_attr_is_enabled_tag (camera_h camera, bool *enabled) |
Gets the value that indicates whether writing EXIF(Exchangeable image file format) tags in a JPEG file is enabled. | |
int | camera_attr_set_tag_image_description (camera_h camera, const char *description) |
Sets the camera image description in the EXIF(Exchangeable image file format) tag. | |
int | camera_attr_get_tag_image_description (camera_h camera, char **description) |
Gets the camera image description in EXIF(Exchangeable image file format) tag. | |
int | camera_attr_set_tag_orientation (camera_h camera, camera_attr_tag_orientation_e orientation) |
Sets the camera orientation in the EXIF(Exchangeable image file format) tag. | |
int | camera_attr_get_tag_orientation (camera_h camera, camera_attr_tag_orientation_e *orientation) |
Gets the camera orientation in the EXIF(Exchangeable image file format) tag. | |
int | camera_attr_set_tag_software (camera_h camera, const char *software) |
Sets the software information in the EXIF(Exchangeable image file format) tag. | |
int | camera_attr_get_tag_software (camera_h camera, char **software) |
Gets the software information in the EXIF(Exchangeable image file format) tag. | |
int | camera_attr_set_geotag (camera_h camera, double latitude, double longitude, double altitude) |
Sets the geotag(GPS data) in the EXIF(Exchangeable image file format) tag. | |
int | camera_attr_get_geotag (camera_h camera, double *latitude, double *longitude, double *altitude) |
Gets the geotag(GPS data) in the EXIF(Exchangeable image file format) tag. | |
int | camera_attr_remove_geotag (camera_h camera) |
Removes the geotag(GPS data) in the EXIF(Exchangeable image file format) tag. | |
int | camera_attr_set_flash_mode (camera_h camera, camera_attr_flash_mode_e mode) |
Sets the camera's flash mode. | |
int | camera_attr_get_flash_mode (camera_h camera, camera_attr_flash_mode_e *mode) |
Gets the camera's flash mode. | |
int | camera_attr_get_lens_orientation (camera_h camera, int *angle) |
Gets the camera len's orientation angle. | |
int | camera_attr_set_stream_rotation (camera_h camera, camera_rotation_e rotation) |
Sets the stream rotation. | |
int | camera_attr_get_stream_rotation (camera_h camera, camera_rotation_e *rotation) |
Gets the stream rotation. | |
int | camera_attr_set_stream_flip (camera_h camera, camera_flip_e flip) |
Sets the stream flip. | |
int | camera_attr_get_stream_flip (camera_h camera, camera_flip_e *flip) |
Gets the stream flip. | |
int | camera_attr_set_hdr_mode (camera_h camera, camera_attr_hdr_mode_e mode) |
Sets the mode of HDR(High dynamic range) capture. | |
int | camera_attr_get_hdr_mode (camera_h camera, camera_attr_hdr_mode_e *mode) |
Gets the mode of HDR(High dynamic range) capture. | |
int | camera_attr_set_hdr_capture_progress_cb (camera_h camera, camera_attr_hdr_progress_cb callback, void *user_data) |
Registers a callback function to be called when HDR capture is progressing. | |
int | camera_attr_unset_hdr_capture_progress_cb (camera_h camera) |
Unregisters the callback function. | |
int | camera_attr_enable_anti_shake (camera_h camera, bool enable) |
Enables/Disables the anti-shake feature. | |
int | camera_attr_is_enabled_anti_shake (camera_h camera, bool *enabled) |
Gets the state of the anti-shake feature. | |
int | camera_attr_enable_video_stabilization (camera_h camera, bool enable) |
Enables/Disables the video stabilization feature. | |
int | camera_attr_is_enabled_video_stabilization (camera_h camera, bool *enabled) |
Gets the state of the video stabilization feature. | |
int | camera_attr_enable_auto_contrast (camera_h camera, bool enable) |
Enables/Disables auto contrast. | |
int | camera_attr_is_enabled_auto_contrast (camera_h camera, bool *enabled) |
Gets the state of auto contrast. | |
int | camera_attr_disable_shutter_sound (camera_h camera, bool disable) |
Disables shutter sound. | |
Typedefs | |
typedef void(* | camera_attr_hdr_progress_cb )(int percent, void *user_data) |
Called when the HDR capture process is updated. |
Typedef Documentation
typedef void(* camera_attr_hdr_progress_cb)(int percent, void *user_data) |
Called when the HDR capture process is updated.
- Since :
- 2.3.1
- Parameters:
-
[in] percent The progress percentage of HDR capture [in] user_data The user data passed from the callback registration function
- Precondition:
- camera_start_capture() will invoke this callback if you register it using camera_attr_set_hdr_capture_progress_cb().
Enumeration Type Documentation
Enumeration for the auto focus mode.
- Since :
- 2.3.1
Enumeration for the color tone, which provides the impression of looking through a tinted glass.
- Since :
- 2.3.1
- Enumerator:
Enumeration for the flash mode.
- Since :
- 2.3.1
- Enumerator:
enum camera_attr_fps_e |
Enumeration to preview FPS.
- Since :
- 2.3.1
enum camera_attr_iso_e |
Enumeration for the ISO levels of the camera.
- Since :
- 2.3.1
Enumeration for the scene mode.
The mode of operation can be in daylight, night, or back-light.
- Since :
- 2.3.1
- Enumerator:
Enumeration for the orientation values of tag.
- Since :
- 2.3.1
- Enumerator:
Enumeration for the theater mode.
- Since :
- 2.3.1
- Enumerator:
Enumeration for the white balance levels of the camera.
- Since :
- 2.3.1
- Enumerator:
Function Documentation
int camera_attr_clear_af_area | ( | camera_h | camera | ) |
Clears the auto focus area.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Remarks:
- The focusing area is set to the center.
- Parameters:
-
[in] camera The handle to the camera
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_INVALID_OPERATION Invalid operation CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_disable_shutter_sound | ( | camera_h | camera, |
bool | disable | ||
) |
Disables shutter sound.
- Since :
- 2.3.1
- Remarks:
- In some countries, this operation is not permitted.
- Parameters:
-
[in] camera The handle to the camera [in] disable If true
shutter sound is disabled, otherwisefalse
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_INVALID_OPERATION Disabling shutter sound is not permitted CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_enable_anti_shake | ( | camera_h | camera, |
bool | enable | ||
) |
Enables/Disables the anti-shake feature.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Remarks:
- This feature is used for image capture.
- Parameters:
-
[in] camera The handle to the camera [in] enable If true
the anti-shake feature is enabled, otherwisefalse
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_enable_auto_contrast | ( | camera_h | camera, |
bool | enable | ||
) |
Enables/Disables auto contrast.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] enable If true
auto contrast is enabled, otherwisefalse
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_enable_tag | ( | camera_h | camera, |
bool | enable | ||
) |
Enables to write EXIF(Exchangeable image file format) tags in a JPEG file.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [in] enable If true
writing EXIF tags in a JPEG file is enabled, otherwisefalse
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_is_enabled_tag()
int camera_attr_enable_video_stabilization | ( | camera_h | camera, |
bool | enable | ||
) |
Enables/Disables the video stabilization feature.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Remarks:
- If video stabilization is enabled, zero shutter lag is disabled.
This feature is used to record a video.
- Parameters:
-
[in] camera The handle to the camera [in] enable If true
video stabilization is enabled, otherwisefalse
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_af_mode | ( | camera_h | camera, |
camera_attr_af_mode_e * | mode | ||
) |
Gets the auto focus mode.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [out] mode The auto focus mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_brightness | ( | camera_h | camera, |
int * | level | ||
) |
Gets the brightness level.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] level The brightness level
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_brightness_range | ( | camera_h | camera, |
int * | min, | ||
int * | max | ||
) |
Gets the available brightness level.
- Since :
- 2.3.1
- Remarks:
- If the min value is greater than the max value, it means that this feature is not supported.
- Parameters:
-
[in] camera The handle to the camera [out] min The minimum brightness level [out] max The maximum brightness level
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_contrast | ( | camera_h | camera, |
int * | level | ||
) |
Gets the contrast level.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] level The contrast level
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_contrast_range | ( | camera_h | camera, |
int * | min, | ||
int * | max | ||
) |
Gets the available contrast level.
- Since :
- 2.3.1
- Remarks:
- If the min value is greater than the max value, it means that this feature is not supported.
- Parameters:
-
[in] camera The handle to the camera [out] min The minimum contrast level [out] max The maximum contrast level
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_effect | ( | camera_h | camera, |
camera_attr_effect_mode_e * | effect | ||
) |
Gets the camera effect mode.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] effect The camera effect mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_exposure | ( | camera_h | camera, |
int * | value | ||
) |
Gets the exposure value.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] value The exposure value
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_set_exposure()
int camera_attr_get_exposure_mode | ( | camera_h | camera, |
camera_attr_exposure_mode_e * | mode | ||
) |
Gets the exposure mode.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] mode The exposure mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_exposure_range | ( | camera_h | camera, |
int * | min, | ||
int * | max | ||
) |
Gets the available exposure value.
- Since :
- 2.3.1
- Remarks:
- If the min value is greater than the max value, it means that this feature is not supported.
- Parameters:
-
[in] camera The handle to the camera [out] min The minimum exposure value [out] max The maximum exposure value
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_set_exposure()
int camera_attr_get_flash_mode | ( | camera_h | camera, |
camera_attr_flash_mode_e * | mode | ||
) |
Gets the camera's flash mode.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] mode The flash mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_geotag | ( | camera_h | camera, |
double * | latitude, | ||
double * | longitude, | ||
double * | altitude | ||
) |
Gets the geotag(GPS data) in the EXIF(Exchangeable image file format) tag.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] latitude The latitude data [out] longitude The longitude data [out] altitude The altitude data
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_hdr_mode | ( | camera_h | camera, |
camera_attr_hdr_mode_e * | mode | ||
) |
Gets the mode of HDR(High dynamic range) capture.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] mode The mode of HDR capture
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_image_quality | ( | camera_h | camera, |
int * | quality | ||
) |
Gets the quality of a still image, which is captured.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] quality The quality of the image(1 ~ 100)
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_set_image_quality()
int camera_attr_get_iso | ( | camera_h | camera, |
camera_attr_iso_e * | iso | ||
) |
Gets the ISO level.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] iso The ISO level
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_lens_orientation | ( | camera_h | camera, |
int * | angle | ||
) |
Gets the camera len's orientation angle.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] angle The orientation angle
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_set_display_rotation()
int camera_attr_get_preview_fps | ( | camera_h | camera, |
camera_attr_fps_e * | fps | ||
) |
Gets the frames per second of a preview video stream.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] fps The frames per second of the preview video stream
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_scene_mode | ( | camera_h | camera, |
camera_attr_scene_mode_e * | mode | ||
) |
Gets the scene mode.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] mode The scene mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_stream_flip | ( | camera_h | camera, |
camera_flip_e * | flip | ||
) |
Gets the stream flip.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] flip The stream flip
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- Precondition:
- The camera state must be set to CAMERA_STATE_CREATED.
- See also:
- camera_attr_set_stream_rotation()
int camera_attr_get_stream_rotation | ( | camera_h | camera, |
camera_rotation_e * | rotation | ||
) |
Gets the stream rotation.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] rotation The stream rotation
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- Precondition:
- The camera state must be set to CAMERA_STATE_CREATED.
- See also:
- camera_attr_set_stream_rotation()
int camera_attr_get_tag_image_description | ( | camera_h | camera, |
char ** | description | ||
) |
Gets the camera image description in EXIF(Exchangeable image file format) tag.
- Since :
- 2.3.1
- Remarks:
- You must release description using free().
- Parameters:
-
[in] camera The handle to the camera [out] description A pointer to a string
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_tag_orientation | ( | camera_h | camera, |
camera_attr_tag_orientation_e * | orientation | ||
) |
Gets the camera orientation in the EXIF(Exchangeable image file format) tag.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] orientation The camera orientation
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_set_tag_orientation()
int camera_attr_get_tag_software | ( | camera_h | camera, |
char ** | software | ||
) |
Gets the software information in the EXIF(Exchangeable image file format) tag.
- Since :
- 2.3.1
- Remarks:
- You must release software using free().
- Parameters:
-
[in] camera The handle to the camera [out] software A pointer to a string
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_set_tag_software()
int camera_attr_get_theater_mode | ( | camera_h | camera, |
camera_attr_theater_mode_e * | mode | ||
) |
Gets the theater mode.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [in] mode Currnet theater mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_get_theater_mode()
int camera_attr_get_whitebalance | ( | camera_h | camera, |
camera_attr_whitebalance_e * | whitebalance | ||
) |
Gets the white balance mode.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] whitebalance The white balance mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_zoom | ( | camera_h | camera, |
int * | zoom | ||
) |
Gets the zoom level.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] zoom The zoom level
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_get_zoom_range | ( | camera_h | camera, |
int * | min, | ||
int * | max | ||
) |
Gets the available zoom level.
- Since :
- 2.3.1
- Remarks:
- If the min value is greater than the max value, it means that this feature is not supported.
- Parameters:
-
[in] camera The handle to the camera [out] min The minimum zoom level [out] max The maximum zoom level
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_is_enabled_anti_shake | ( | camera_h | camera, |
bool * | enabled | ||
) |
Gets the state of the anti-shake feature.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] enabled The state of anti-shake
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_is_enabled_auto_contrast | ( | camera_h | camera, |
bool * | enabled | ||
) |
Gets the state of auto contrast.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] enabled The state of auto contrast
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_enable_auto_contrast()
int camera_attr_is_enabled_tag | ( | camera_h | camera, |
bool * | enabled | ||
) |
Gets the value that indicates whether writing EXIF(Exchangeable image file format) tags in a JPEG file is enabled.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] enabled If true
camera information is enabled, otherwisefalse
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_enable_tag()
int camera_attr_is_enabled_video_stabilization | ( | camera_h | camera, |
bool * | enabled | ||
) |
Gets the state of the video stabilization feature.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [out] enabled The state of video stabilization
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_remove_geotag | ( | camera_h | camera | ) |
Removes the geotag(GPS data) in the EXIF(Exchangeable image file format) tag.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_af_area | ( | camera_h | camera, |
int | x, | ||
int | y | ||
) |
Sets auto focus area.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Remarks:
- This API is invalid in the CAMERA_ATTR_AF_NONE mode.
The coordinates are mapped to preview area.
- Parameters:
-
[in] camera The handle to the camera [in] x The x coordinates of the focus area [in] y The y coordinates of the focus area
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_INVALID_OPERATION Invalid operation CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_af_mode | ( | camera_h | camera, |
camera_attr_af_mode_e | mode | ||
) |
Sets the auto focus mode.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] mode The auto focus mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_brightness | ( | camera_h | camera, |
int | level | ||
) |
Sets the brightness level.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] level The brightness level
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_contrast | ( | camera_h | camera, |
int | level | ||
) |
Sets the contrast level.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] level The contrast level
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_effect | ( | camera_h | camera, |
camera_attr_effect_mode_e | effect | ||
) |
Sets the camera effect mode.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] effect The camera effect mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_exposure | ( | camera_h | camera, |
int | value | ||
) |
Sets the exposure value.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] value The exposure value
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_get_exposure()
int camera_attr_set_exposure_mode | ( | camera_h | camera, |
camera_attr_exposure_mode_e | mode | ||
) |
Sets the exposure mode.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] mode The exposure mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_flash_mode | ( | camera_h | camera, |
camera_attr_flash_mode_e | mode | ||
) |
Sets the camera's flash mode.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] mode The flash mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_geotag | ( | camera_h | camera, |
double | latitude, | ||
double | longitude, | ||
double | altitude | ||
) |
Sets the geotag(GPS data) in the EXIF(Exchangeable image file format) tag.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [in] latitude The latitude data [in] longitude The longitude data [in] altitude The altitude data
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_hdr_capture_progress_cb | ( | camera_h | camera, |
camera_attr_hdr_progress_cb | callback, | ||
void * | user_data | ||
) |
Registers a callback function to be called when HDR capture is progressing.
- Since :
- 2.3.1
- Remarks:
- This callback notifies progress of the HDR process.
- Parameters:
-
[in] camera The handle to the camera [in] callback The callback function to invoke [in] user_data The user data passed to the callback registration function
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_hdr_mode | ( | camera_h | camera, |
camera_attr_hdr_mode_e | mode | ||
) |
Sets the mode of HDR(High dynamic range) capture.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Remarks:
- Taking multiple pictures at different exposure levels and intelligently stitching them together so that we eventually arrive at a picture that is representative in both dark and bright areas.
If this attribute is set totrue
. camera_attr_hdr_progress_cb() is invoked during capture.
If you set CAMERA_ATTR_HDR_MODE_KEEP_ORIGINAL, the capturing callback is invoked twice. The first callback is delivering origin image data. The second callback is delivering improved image data.
- Parameters:
-
[in] camera The handle to the camera [in] mode The mode of HDR capture
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_image_quality | ( | camera_h | camera, |
int | quality | ||
) |
Sets quality of the image.
The range for image quality is 1 to 100. If quality is out of range, CAMERA_ERROR_INVALID_PARAMETER error occurred.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] quality The quality of image (1 ~ 100)
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_INVALID_STATE Invalid state CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- Precondition:
- The camera state must be set to CAMERA_STATE_CREATED or CAMERA_STATE_PREVIEW.
int camera_attr_set_iso | ( | camera_h | camera, |
camera_attr_iso_e | iso | ||
) |
Sets the ISO level.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] iso The ISO level
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_preview_fps | ( | camera_h | camera, |
camera_attr_fps_e | fps | ||
) |
Sets the preview frame rate.
- Since :
- 2.3.1
- Remarks:
- This function should be called before previewing (see camera_start_preview()).
- Parameters:
-
[in] camera The handle to the camera [in] fps The frame rate
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_INVALID_STATE Invalid state CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_scene_mode | ( | camera_h | camera, |
camera_attr_scene_mode_e | mode | ||
) |
Sets the scene mode.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] mode The scene mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_stream_flip | ( | camera_h | camera, |
camera_flip_e | flip | ||
) |
Sets the stream flip.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [in] flip The stream flip
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- Precondition:
- The camera state must be set to CAMERA_STATE_CREATED.
- See also:
- camera_attr_set_stream_rotation()
int camera_attr_set_stream_rotation | ( | camera_h | camera, |
camera_rotation_e | rotation | ||
) |
Sets the stream rotation.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [in] rotation The stream rotation
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- Precondition:
- The camera state must be set to CAMERA_STATE_CREATED.
- See also:
- camera_attr_get_stream_rotation()
int camera_attr_set_tag_image_description | ( | camera_h | camera, |
const char * | description | ||
) |
Sets the camera image description in the EXIF(Exchangeable image file format) tag.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [in] description The string with description
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_tag_orientation | ( | camera_h | camera, |
camera_attr_tag_orientation_e | orientation | ||
) |
Sets the camera orientation in the EXIF(Exchangeable image file format) tag.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [in] orientation The camera orientation
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_get_tag_orientation()
int camera_attr_set_tag_software | ( | camera_h | camera, |
const char * | software | ||
) |
Sets the software information in the EXIF(Exchangeable image file format) tag.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera [in] software The software information tag
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- See also:
- camera_attr_get_tag_software()
int camera_attr_set_theater_mode | ( | camera_h | camera, |
camera_attr_theater_mode_e | mode | ||
) |
Sets the theater mode.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Remarks:
- If you want to display the preview image on the external display with the full screen mode, use this function.
- Parameters:
-
[in] camera The handle to the camera [in] mode The mode to change
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
- Precondition:
- This function is valid only when the external display is connected.
- See also:
- camera_attr_get_theater_mode()
int camera_attr_set_whitebalance | ( | camera_h | camera, |
camera_attr_whitebalance_e | whitebalance | ||
) |
Sets the white balance mode.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] whitebalance The white balance mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_set_zoom | ( | camera_h | camera, |
int | zoom | ||
) |
Sets the zoom level.
The range for the zoom level is received from camera_attr_get_zoom_range(). If zoom is out of range, the CAMERA_ERROR_INVALID_PARAMETER error occurs.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] camera The handle to the camera [in] zoom The zoom level
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
int camera_attr_unset_hdr_capture_progress_cb | ( | camera_h | camera | ) |
Unregisters the callback function.
- Since :
- 2.3.1
- Parameters:
-
[in] camera The handle to the camera
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
CAMERA_ERROR_NONE Successful CAMERA_ERROR_INVALID_PARAMETER Invalid parameter CAMERA_ERROR_PERMISSION_DENIED The access to the resources can not be granted CAMERA_ERROR_NOT_SUPPORTED The feature is not supported