Tizen Native API
5.5
|
The Attributes API provides functions to fetch camera attributes.
#include <camera.h>
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:
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 |
This API is related with the following features:
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_get_encoded_preview_bitrate (camera_h camera, int *bitrate) |
Gets the bit rate of encoded preview. | |
int | camera_attr_set_encoded_preview_bitrate (camera_h camera, int bitrate) |
Sets the bit rate of encoded preview. | |
int | camera_attr_get_encoded_preview_gop_interval (camera_h camera, int *interval) |
Gets the GOP (Group Of Pictures) interval of encoded preview. | |
int | camera_attr_set_encoded_preview_gop_interval (camera_h camera, int interval) |
Sets the GOP (Group Of Pictures) interval of encoded preview. | |
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_hue (camera_h camera, int level) |
Sets the hue level. | |
int | camera_attr_get_hue (camera_h camera, int *level) |
Gets the hue level. | |
int | camera_attr_get_hue_range (camera_h camera, int *min, int *max) |
Gets the available hue 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. | |
int | camera_attr_set_pan (camera_h camera, camera_attr_ptz_move_type_e move_type, int pan_step) |
Sets the position to move horizontally. | |
int | camera_attr_get_pan (camera_h camera, int *pan_step) |
Gets the current position of the camera. | |
int | camera_attr_get_pan_range (camera_h camera, int *min, int *max) |
Gets lower limit and upper limit for pan position. | |
int | camera_attr_set_tilt (camera_h camera, camera_attr_ptz_move_type_e move_type, int tilt_step) |
Sets the position to move vertically. | |
int | camera_attr_get_tilt (camera_h camera, int *tilt_step) |
Gets the current position of the camera. | |
int | camera_attr_get_tilt_range (camera_h camera, int *min, int *max) |
Gets lower limit and upper limit for tilt position. | |
int | camera_attr_set_ptz_type (camera_h camera, camera_attr_ptz_type_e ptz_type) |
Sets the type of PTZ(Pan Tilt Zoom). | |
int | camera_attr_set_display_roi_area (camera_h camera, int x, int y, int width, int height) |
Sets the ROI(Region Of Interest) area of display. | |
int | camera_attr_get_display_roi_area (camera_h camera, int *x, int *y, int *width, int *height) |
Gets the ROI(Region Of Interest) area of display. | |
Typedefs | |
typedef void(* | camera_attr_hdr_progress_cb )(int percent, void *user_data) |
Called when the HDR capture process is updated. |
typedef void(* camera_attr_hdr_progress_cb)(int percent, void *user_data) |
Called when the HDR capture process is updated.
[in] | percent | The progress percentage of HDR capture |
[in] | user_data | The user data passed from the callback registration function |
Enumeration for the auto focus mode.
Enumeration for the color tone, which provides the impression of looking through a tinted glass.
Enumeration for the flash mode.
enum camera_attr_fps_e |
Enumeration to preview FPS.
enum camera_attr_iso_e |
Enumeration for the ISO levels of the camera.
Enumeration for the scene mode.
The mode of operation can be in daylight, night, or back-light.
Enumeration for the orientation values of tag.
Enumeration for the theater mode.
Enumeration for the white balance levels of the camera.
int camera_attr_clear_af_area | ( | camera_h | camera | ) |
Clears the auto focus area.
[in] | camera | The handle to the camera |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_disable_shutter_sound | ( | camera_h | camera, |
bool | disable | ||
) |
Disables shutter sound.
[in] | camera | The handle to the camera |
[in] | disable | If true shutter sound is disabled, otherwise false |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_enable_anti_shake | ( | camera_h | camera, |
bool | enable | ||
) |
Enables/Disables the anti-shake feature.
[in] | camera | The handle to the camera |
[in] | enable | If true the anti-shake feature is enabled, otherwise false |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_enable_auto_contrast | ( | camera_h | camera, |
bool | enable | ||
) |
Enables/Disables auto contrast.
[in] | camera | The handle to the camera |
[in] | enable | If true auto contrast is enabled, otherwise false |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_enable_tag | ( | camera_h | camera, |
bool | enable | ||
) |
Enables to write EXIF(Exchangeable image file format) tags in a JPEG file.
[in] | camera | The handle to the camera |
[in] | enable | If true writing EXIF tags in a JPEG file is enabled, otherwise false |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_enable_video_stabilization | ( | camera_h | camera, |
bool | enable | ||
) |
Enables/Disables the video stabilization feature.
[in] | camera | The handle to the camera |
[in] | enable | If true video stabilization is enabled, otherwise false |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_af_mode | ( | camera_h | camera, |
camera_attr_af_mode_e * | mode | ||
) |
Gets the auto focus mode.
[in] | camera | The handle to the camera |
[out] | mode | The auto focus mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_brightness | ( | camera_h | camera, |
int * | level | ||
) |
Gets the brightness level.
[in] | camera | The handle to the camera |
[out] | level | The brightness level |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_brightness_range | ( | camera_h | camera, |
int * | min, | ||
int * | max | ||
) |
Gets the available brightness level.
[in] | camera | The handle to the camera |
[out] | min | The minimum brightness level |
[out] | max | The maximum brightness level |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_contrast | ( | camera_h | camera, |
int * | level | ||
) |
Gets the contrast level.
[in] | camera | The handle to the camera |
[out] | level | The contrast level |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_contrast_range | ( | camera_h | camera, |
int * | min, | ||
int * | max | ||
) |
Gets the available contrast level.
[in] | camera | The handle to the camera |
[out] | min | The minimum contrast level |
[out] | max | The maximum contrast level |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_display_roi_area | ( | camera_h | camera, |
int * | x, | ||
int * | y, | ||
int * | width, | ||
int * | height | ||
) |
Gets the ROI(Region Of Interest) area of display.
[in] | camera | The handle to the camera |
[out] | x | X coordinate of area |
[out] | y | Y coordinate of area |
[out] | width | Width of area |
[out] | height | Height of area |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_effect | ( | camera_h | camera, |
camera_attr_effect_mode_e * | effect | ||
) |
Gets the camera effect mode.
[in] | camera | The handle to the camera |
[out] | effect | The camera effect mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_encoded_preview_bitrate | ( | camera_h | camera, |
int * | bitrate | ||
) |
Gets the bit rate of encoded preview.
[in] | camera | The handle to the camera |
[out] | bitrate | The bit rate of encoded preview |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_encoded_preview_gop_interval | ( | camera_h | camera, |
int * | interval | ||
) |
Gets the GOP (Group Of Pictures) interval of encoded preview.
[in] | camera | The handle to the camera |
[out] | interval | the GOP interval of encoded preview (millisecond) |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_exposure | ( | camera_h | camera, |
int * | value | ||
) |
Gets the exposure value.
[in] | camera | The handle to the camera |
[out] | value | The exposure value |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_exposure_mode | ( | camera_h | camera, |
camera_attr_exposure_mode_e * | mode | ||
) |
Gets the exposure mode.
[in] | camera | The handle to the camera |
[out] | mode | The exposure mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_exposure_range | ( | camera_h | camera, |
int * | min, | ||
int * | max | ||
) |
Gets the available exposure value.
[in] | camera | The handle to the camera |
[out] | min | The minimum exposure value |
[out] | max | The maximum exposure value |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_flash_mode | ( | camera_h | camera, |
camera_attr_flash_mode_e * | mode | ||
) |
Gets the camera's flash mode.
[in] | camera | The handle to the camera |
[out] | mode | The flash mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
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.
[in] | camera | The handle to the camera |
[out] | latitude | The latitude data |
[out] | longitude | The longitude data |
[out] | altitude | The altitude data |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_hdr_mode | ( | camera_h | camera, |
camera_attr_hdr_mode_e * | mode | ||
) |
Gets the mode of HDR (High Dynamic Range) capture.
[in] | camera | The handle to the camera |
[out] | mode | The mode of HDR capture |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_hue | ( | camera_h | camera, |
int * | level | ||
) |
Gets the hue level.
[in] | camera | The handle to the camera |
[out] | level | The hue level |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
int camera_attr_get_hue_range | ( | camera_h | camera, |
int * | min, | ||
int * | max | ||
) |
Gets the available hue level.
[in] | camera | The handle to the camera |
[out] | min | The minimum hue level |
[out] | max | The maximum hue level |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
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.
[in] | camera | The handle to the camera |
[out] | quality | The quality of the image(1 ~ 100) |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_iso | ( | camera_h | camera, |
camera_attr_iso_e * | iso | ||
) |
Gets the ISO level.
[in] | camera | The handle to the camera |
[out] | iso | The ISO level |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_lens_orientation | ( | camera_h | camera, |
int * | angle | ||
) |
Gets the camera len's orientation angle.
[in] | camera | The handle to the camera |
[out] | angle | The orientation angle |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_pan | ( | camera_h | camera, |
int * | pan_step | ||
) |
Gets the current position of the camera.
[in] | camera | The handle to the camera |
[out] | pan_step | The current horizontal distance from the starting point. |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_pan_range | ( | camera_h | camera, |
int * | min, | ||
int * | max | ||
) |
Gets lower limit and upper limit for pan position.
[in] | camera | The handle to the camera |
[out] | min | The lower limit for pan |
[out] | max | The upper limit for pan |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_preview_fps | ( | camera_h | camera, |
camera_attr_fps_e * | fps | ||
) |
Gets the frames per second of a preview video stream.
[in] | camera | The handle to the camera |
[out] | fps | The frames per second of the preview video stream |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_scene_mode | ( | camera_h | camera, |
camera_attr_scene_mode_e * | mode | ||
) |
Gets the scene mode.
[in] | camera | The handle to the camera |
[out] | mode | The scene mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_stream_flip | ( | camera_h | camera, |
camera_flip_e * | flip | ||
) |
Gets the stream flip.
[in] | camera | The handle to the camera |
[out] | flip | The stream flip |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_stream_rotation | ( | camera_h | camera, |
camera_rotation_e * | rotation | ||
) |
Gets the stream rotation.
[in] | camera | The handle to the camera |
[out] | rotation | The stream rotation |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_tag_image_description | ( | camera_h | camera, |
char ** | description | ||
) |
Gets the camera image description in EXIF(Exchangeable image file format) tag.
[in] | camera | The handle to the camera |
[out] | description | A pointer to a string |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
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.
[in] | camera | The handle to the camera |
[out] | orientation | The camera orientation |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_tag_software | ( | camera_h | camera, |
char ** | software | ||
) |
Gets the software information in the EXIF(Exchangeable image file format) tag.
[in] | camera | The handle to the camera |
[out] | software | A pointer to a string |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_theater_mode | ( | camera_h | camera, |
camera_attr_theater_mode_e * | mode | ||
) |
Gets the theater mode.
[in] | camera | The handle to the camera |
[in] | mode | Current theater mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_tilt | ( | camera_h | camera, |
int * | tilt_step | ||
) |
Gets the current position of the camera.
[in] | camera | The handle to the camera |
[out] | tilt_step | The current vertical distance from the starting point. |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_tilt_range | ( | camera_h | camera, |
int * | min, | ||
int * | max | ||
) |
Gets lower limit and upper limit for tilt position.
[in] | camera | The handle to the camera |
[out] | min | The lower limit for tilt |
[out] | max | The upper limit for tilt |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_whitebalance | ( | camera_h | camera, |
camera_attr_whitebalance_e * | whitebalance | ||
) |
Gets the white balance mode.
[in] | camera | The handle to the camera |
[out] | whitebalance | The white balance mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_zoom | ( | camera_h | camera, |
int * | zoom | ||
) |
Gets the zoom level.
[in] | camera | The handle to the camera |
[out] | zoom | The zoom level |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_get_zoom_range | ( | camera_h | camera, |
int * | min, | ||
int * | max | ||
) |
Gets the available zoom level.
[in] | camera | The handle to the camera |
[out] | min | The minimum zoom level |
[out] | max | The maximum zoom level |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_is_enabled_anti_shake | ( | camera_h | camera, |
bool * | enabled | ||
) |
Gets the state of the anti-shake feature.
[in] | camera | The handle to the camera |
[out] | enabled | The state of anti-shake |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_is_enabled_auto_contrast | ( | camera_h | camera, |
bool * | enabled | ||
) |
Gets the state of auto contrast.
[in] | camera | The handle to the camera |
[out] | enabled | The state of auto contrast |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
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.
[in] | camera | The handle to the camera |
[out] | enabled | If true camera information is enabled, otherwise false |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_is_enabled_video_stabilization | ( | camera_h | camera, |
bool * | enabled | ||
) |
Gets the state of the video stabilization feature.
[in] | camera | The handle to the camera |
[out] | enabled | The state of video stabilization |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_remove_geotag | ( | camera_h | camera | ) |
Removes the geotag(GPS data) in the EXIF(Exchangeable image file format) tag.
[in] | camera | The handle to the camera |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_af_area | ( | camera_h | camera, |
int | x, | ||
int | y | ||
) |
Sets auto focus area.
[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 |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_INVALID_OPERATION | Invalid operation |
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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_af_mode | ( | camera_h | camera, |
camera_attr_af_mode_e | mode | ||
) |
Sets the auto focus mode.
[in] | camera | The handle to the camera |
[in] | mode | The auto focus mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_brightness | ( | camera_h | camera, |
int | level | ||
) |
Sets the brightness level.
[in] | camera | The handle to the camera |
[in] | level | The brightness level |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_contrast | ( | camera_h | camera, |
int | level | ||
) |
Sets the contrast level.
[in] | camera | The handle to the camera |
[in] | level | The contrast level |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_display_roi_area | ( | camera_h | camera, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
Sets the ROI(Region Of Interest) area of display.
[in] | camera | The handle to the camera |
[in] | x | X coordinate of area |
[in] | y | Y coordinate of area |
[in] | width | Width of area |
[in] | height | Height of area |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_effect | ( | camera_h | camera, |
camera_attr_effect_mode_e | effect | ||
) |
Sets the camera effect mode.
[in] | camera | The handle to the camera |
[in] | effect | The camera effect mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_encoded_preview_bitrate | ( | camera_h | camera, |
int | bitrate | ||
) |
Sets the bit rate of encoded preview.
[in] | camera | The handle to the camera |
[in] | bitrate | The bit rate of encoded preview |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_encoded_preview_gop_interval | ( | camera_h | camera, |
int | interval | ||
) |
Sets the GOP (Group Of Pictures) interval of encoded preview.
[in] | camera | The handle to the camera |
[in] | interval | the GOP interval of encoded preview (millisecond) |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_exposure | ( | camera_h | camera, |
int | value | ||
) |
Sets the exposure value.
[in] | camera | The handle to the camera |
[in] | value | The exposure value |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_exposure_mode | ( | camera_h | camera, |
camera_attr_exposure_mode_e | mode | ||
) |
Sets the exposure mode.
[in] | camera | The handle to the camera |
[in] | mode | The exposure mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_flash_mode | ( | camera_h | camera, |
camera_attr_flash_mode_e | mode | ||
) |
Sets the camera's flash mode.
[in] | camera | The handle to the camera |
[in] | mode | The flash mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
CAMERA_ERROR_DEVICE_BUSY | The flash was preempted by other API |
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.
[in] | camera | The handle to the camera |
[in] | latitude | The latitude data |
[in] | longitude | The longitude data |
[in] | altitude | The altitude data |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
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.
[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 |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_hdr_mode | ( | camera_h | camera, |
camera_attr_hdr_mode_e | mode | ||
) |
Sets the mode of HDR (High Dynamic Range) capture.
true
. camera_attr_hdr_progress_cb() is invoked during capture.[in] | camera | The handle to the camera |
[in] | mode | The mode of HDR capture |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_hue | ( | camera_h | camera, |
int | level | ||
) |
Sets the hue level.
[in] | camera | The handle to the camera |
[in] | level | The hue level |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
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.
[in] | camera | The handle to the camera |
[in] | quality | The quality of image (1 ~ 100) |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_iso | ( | camera_h | camera, |
camera_attr_iso_e | iso | ||
) |
Sets the ISO level.
[in] | camera | The handle to the camera |
[in] | iso | The ISO level |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_pan | ( | camera_h | camera, |
camera_attr_ptz_move_type_e | move_type, | ||
int | pan_step | ||
) |
Sets the position to move horizontally.
[in] | camera | The handle to the camera |
[in] | move_type | The PTZ(Pan Tilt Zoom) move type |
[in] | pan_step | The step to move the camera |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_INVALID_STATE | Invalid state |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_preview_fps | ( | camera_h | camera, |
camera_attr_fps_e | fps | ||
) |
Sets the preview frame rate.
[in] | camera | The handle to the camera |
[in] | fps | The frame rate |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_ptz_type | ( | camera_h | camera, |
camera_attr_ptz_type_e | ptz_type | ||
) |
Sets the type of PTZ(Pan Tilt Zoom).
[in] | camera | The handle to the camera |
[in] | ptz_type | PTZ type |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_INVALID_STATE | Invalid state |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_scene_mode | ( | camera_h | camera, |
camera_attr_scene_mode_e | mode | ||
) |
Sets the scene mode.
[in] | camera | The handle to the camera |
[in] | mode | The scene mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_stream_flip | ( | camera_h | camera, |
camera_flip_e | flip | ||
) |
Sets the stream flip.
[in] | camera | The handle to the camera |
[in] | flip | The stream flip |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_stream_rotation | ( | camera_h | camera, |
camera_rotation_e | rotation | ||
) |
Sets the stream rotation.
[in] | camera | The handle to the camera |
[in] | rotation | The stream rotation |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
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.
[in] | camera | The handle to the camera |
[in] | description | The string with description |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
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.
[in] | camera | The handle to the camera |
[in] | orientation | The camera orientation |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_tag_software | ( | camera_h | camera, |
const char * | software | ||
) |
Sets the software information in the EXIF(Exchangeable image file format) tag.
[in] | camera | The handle to the camera |
[in] | software | The software information tag |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_theater_mode | ( | camera_h | camera, |
camera_attr_theater_mode_e | mode | ||
) |
Sets the theater mode.
[in] | camera | The handle to the camera |
[in] | mode | The mode to change |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_tilt | ( | camera_h | camera, |
camera_attr_ptz_move_type_e | move_type, | ||
int | tilt_step | ||
) |
Sets the position to move vertically.
[in] | camera | The handle to the camera |
[in] | move_type | The PTZ(Pan Tilt Zoom) move type |
[in] | tilt_step | The step to move the camera |
0
on success, otherwise a negative error value CAMERA_ERROR_NONE | Successful |
CAMERA_ERROR_INVALID_OPERATION | Internal error |
CAMERA_ERROR_INVALID_PARAMETER | Invalid parameter |
CAMERA_ERROR_INVALID_STATE | Invalid state |
CAMERA_ERROR_NOT_SUPPORTED | The feature is not supported |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_set_whitebalance | ( | camera_h | camera, |
camera_attr_whitebalance_e | whitebalance | ||
) |
Sets the white balance mode.
[in] | camera | The handle to the camera |
[in] | whitebalance | The white balance mode |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
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.
[in] | camera | The handle to the camera |
[in] | zoom | The zoom level |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |
int camera_attr_unset_hdr_capture_progress_cb | ( | camera_h | camera | ) |
Unregisters the callback function.
[in] | camera | The handle to the camera |
0
on success, otherwise a negative error value 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 |
CAMERA_ERROR_SERVICE_DISCONNECTED | The socket to multimedia server is disconnected |