Tizen Native API
5.0
|
The Capability API provides capability information of the camera.
#include <camera.h>
The Camera Capability API provides functions to obtain capability information of the camera device.
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 | |
bool | camera_is_supported_continuous_capture (camera_h camera) |
Gets continuous capture feature's supported state. | |
int | camera_foreach_supported_preview_resolution (camera_h camera, camera_supported_preview_resolution_cb callback, void *user_data) |
Retrieves all supported camera preview resolutions by invoking the callback function once for each supported camera preview resolution. | |
int | camera_foreach_supported_capture_resolution (camera_h camera, camera_supported_capture_resolution_cb callback, void *user_data) |
Retrieves all supported camera captured resolutions by invoking the callback function once for each supported camera capture resolution. | |
int | camera_foreach_supported_capture_format (camera_h camera, camera_supported_capture_format_cb callback, void *user_data) |
Retrieves all supported camera capture formats by invoking the callback function once for each supported camera capture format. | |
int | camera_foreach_supported_preview_format (camera_h camera, camera_supported_preview_format_cb callback, void *user_data) |
Retrieves all supported camera preview formats by invoking the callback function once for each supported camera preview format. | |
bool | camera_is_supported_face_detection (camera_h camera) |
Gets the face detection feature's supported state. | |
bool | camera_is_supported_zero_shutter_lag (camera_h camera) |
Gets the zero shutter lag feature's supported state. | |
int | camera_get_device_count (camera_h camera, int *device_count) |
Gets the camera device count. | |
bool | camera_is_supported_media_packet_preview_cb (camera_h camera) |
Gets the media packet preview callback feature's supported state. | |
int | camera_attr_foreach_supported_fps (camera_h camera, camera_attr_supported_fps_cb callback, void *user_data) |
Retrieves all supported FPS modes by invoking the callback function once for each supported FPS mode. | |
int | camera_attr_foreach_supported_fps_by_resolution (camera_h camera, int width, int height, camera_attr_supported_fps_cb callback, void *user_data) |
Retrieves all supported FPS modes by invoking the callback function once for each supported FPS mode. | |
int | camera_attr_foreach_supported_af_mode (camera_h camera, camera_attr_supported_af_mode_cb callback, void *user_data) |
Retrieves all supported auto focus modes by invoking the callback function once for each supported auto focus mode. | |
int | camera_attr_foreach_supported_exposure_mode (camera_h camera, camera_attr_supported_exposure_mode_cb callback, void *user_data) |
Retrieves all supported exposure modes by invoking the callback function once for each supported exposure mode. | |
int | camera_attr_foreach_supported_iso (camera_h camera, camera_attr_supported_iso_cb callback, void *user_data) |
Retrieves all supported ISO levels by invoking the callback function once for each supported ISO level. | |
int | camera_attr_foreach_supported_theater_mode (camera_h camera, camera_attr_supported_theater_mode_cb callback, void *user_data) |
Retrieves all supported theater modes by invoking callback function once for each supported theater modes. | |
int | camera_attr_foreach_supported_whitebalance (camera_h camera, camera_attr_supported_whitebalance_cb callback, void *user_data) |
Retrieves all supported white balances by invoking the callback function once for each supported white balance. | |
int | camera_attr_foreach_supported_effect (camera_h camera, camera_attr_supported_effect_cb callback, void *user_data) |
Retrieves all supported effect modes by invoking the callback function once for each supported effect mode. | |
int | camera_attr_foreach_supported_scene_mode (camera_h camera, camera_attr_supported_scene_mode_cb callback, void *user_data) |
Retrieves all supported scene modes by invoking the callback function once for each supported scene mode. | |
int | camera_attr_foreach_supported_flash_mode (camera_h camera, camera_attr_supported_flash_mode_cb callback, void *user_data) |
Retrieves all supported flash modes by invoking the callback function once for each supported flash mode. | |
int | camera_attr_foreach_supported_stream_rotation (camera_h camera, camera_attr_supported_stream_rotation_cb callback, void *user_data) |
Retrieves all supported stream rotation modes by invoking callback function once for each supported stream rotation mode. | |
int | camera_attr_foreach_supported_stream_flip (camera_h camera, camera_attr_supported_stream_flip_cb callback, void *user_data) |
Retrieves all supported stream flip modes by invoking callback function once for each supported stream flip mode. | |
bool | camera_attr_is_supported_hdr_capture (camera_h camera) |
Gets the support state of HDR capture. | |
bool | camera_attr_is_supported_anti_shake (camera_h camera) |
Gets the support state of the anti-shake feature. | |
bool | camera_attr_is_supported_video_stabilization (camera_h camera) |
Gets the support state of the video stabilization feature. | |
bool | camera_attr_is_supported_auto_contrast (camera_h camera) |
Gets state of support of auto contrast feature. | |
int | camera_attr_foreach_supported_ptz_type (camera_h camera, camera_attr_supported_ptz_type_cb callback, void *user_data) |
Retrieves all supported PTZ(Pan Tilt Zoom) types by invoking callback function once for each supported ptz type. | |
Typedefs | |
typedef bool(* | camera_supported_preview_resolution_cb )(int width, int height, void *user_data) |
Called once for each supported preview resolution. | |
typedef bool(* | camera_supported_capture_resolution_cb )(int width, int height, void *user_data) |
Called once for each supported capture resolution. | |
typedef bool(* | camera_supported_capture_format_cb )(camera_pixel_format_e format, void *user_data) |
Called once for the pixel format of each supported capture format. | |
typedef bool(* | camera_supported_preview_format_cb )(camera_pixel_format_e format, void *user_data) |
Called once for the pixel format of each supported preview format. | |
typedef bool(* | camera_attr_supported_af_mode_cb )(camera_attr_af_mode_e mode, void *user_data) |
Called to get each supported auto-focus mode. | |
typedef bool(* | camera_attr_supported_exposure_mode_cb )(camera_attr_exposure_mode_e mode, void *user_data) |
Called to get each supported exposure mode. | |
typedef bool(* | camera_attr_supported_iso_cb )(camera_attr_iso_e iso, void *user_data) |
Called to get each supported ISO mode. | |
typedef bool(* | camera_attr_supported_whitebalance_cb )(camera_attr_whitebalance_e wb, void *user_data) |
Called to get each supported white balance. | |
typedef bool(* | camera_attr_supported_effect_cb )(camera_attr_effect_mode_e effect, void *user_data) |
Called to get each supported effect mode. | |
typedef bool(* | camera_attr_supported_scene_mode_cb )(camera_attr_scene_mode_e mode, void *user_data) |
Called to get each supported scene mode. | |
typedef bool(* | camera_attr_supported_flash_mode_cb )(camera_attr_flash_mode_e mode, void *user_data) |
Called to get each supported flash mode. | |
typedef bool(* | camera_attr_supported_fps_cb )(camera_attr_fps_e fps, void *user_data) |
Called to get each supported FPS mode. | |
typedef bool(* | camera_attr_supported_stream_flip_cb )(camera_flip_e flip, void *user_data) |
Called to get each supported stream flip mode. | |
typedef bool(* | camera_attr_supported_stream_rotation_cb )(camera_rotation_e rotation, void *user_data) |
Called to get each supported stream rotation mode. | |
typedef bool(* | camera_attr_supported_theater_mode_cb )(camera_attr_theater_mode_e mode, void *user_data) |
Called to get each supported theater mode. | |
typedef bool(* | camera_attr_supported_ptz_type_cb )(camera_attr_ptz_type_e type, void *user_data) |
Called to get each supported PTZ(Pan Tilt Zoom) type. |
typedef bool(* camera_attr_supported_af_mode_cb)(camera_attr_af_mode_e mode, void *user_data) |
Called to get each supported auto-focus mode.
[in] | mode | The supported auto-focus mode |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_attr_supported_effect_cb)(camera_attr_effect_mode_e effect, void *user_data) |
Called to get each supported effect mode.
[in] | effect | The supported effect mode |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_attr_supported_exposure_mode_cb)(camera_attr_exposure_mode_e mode, void *user_data) |
Called to get each supported exposure mode.
[in] | mode | The supported exposure mode |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_attr_supported_flash_mode_cb)(camera_attr_flash_mode_e mode, void *user_data) |
Called to get each supported flash mode.
[in] | mode | The supported flash mode |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_attr_supported_fps_cb)(camera_attr_fps_e fps, void *user_data) |
Called to get each supported FPS mode.
[in] | mode | The supported FPS mode |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_attr_supported_iso_cb)(camera_attr_iso_e iso, void *user_data) |
Called to get each supported ISO mode.
[in] | iso | The supported ISO mode |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_attr_supported_ptz_type_cb)(camera_attr_ptz_type_e type, void *user_data) |
Called to get each supported PTZ(Pan Tilt Zoom) type.
[in] | type | The supported ptz type |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_attr_supported_scene_mode_cb)(camera_attr_scene_mode_e mode, void *user_data) |
Called to get each supported scene mode.
[in] | mode | The supported scene mode |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_attr_supported_stream_flip_cb)(camera_flip_e flip, void *user_data) |
Called to get each supported stream flip mode.
[in] | mode | The supported stream flip mode |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_attr_supported_stream_rotation_cb)(camera_rotation_e rotation, void *user_data) |
Called to get each supported stream rotation mode.
[in] | mode | The supported stream rotation mode |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_attr_supported_theater_mode_cb)(camera_attr_theater_mode_e mode, void *user_data) |
Called to get each supported theater mode.
[in] | mode | The supported theater mode |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_attr_supported_whitebalance_cb)(camera_attr_whitebalance_e wb, void *user_data) |
Called to get each supported white balance.
[in] | wb | The supported white balance mode |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_supported_capture_format_cb)(camera_pixel_format_e format, void *user_data) |
Called once for the pixel format of each supported capture format.
[in] | format | The supported pixel format |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_supported_capture_resolution_cb)(int width, int height, void *user_data) |
Called once for each supported capture resolution.
[in] | width | The capture resolution width |
[in] | height | The capture resolution height |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_supported_preview_format_cb)(camera_pixel_format_e format, void *user_data) |
Called once for the pixel format of each supported preview format.
[in] | format | The supported preview data format |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop typedef bool(* camera_supported_preview_resolution_cb)(int width, int height, void *user_data) |
Called once for each supported preview resolution.
[in] | width | The preview image width |
[in] | height | The preview image height |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop int camera_attr_foreach_supported_af_mode | ( | camera_h | camera, |
camera_attr_supported_af_mode_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported auto focus modes by invoking the callback function once for each supported auto focus mode.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to invoke |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_effect | ( | camera_h | camera, |
camera_attr_supported_effect_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported effect modes by invoking the callback function once for each supported effect mode.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to invoke |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_exposure_mode | ( | camera_h | camera, |
camera_attr_supported_exposure_mode_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported exposure modes by invoking the callback function once for each supported exposure mode.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to be invoked |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_flash_mode | ( | camera_h | camera, |
camera_attr_supported_flash_mode_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported flash modes by invoking the callback function once for each supported flash mode.
[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_foreach_supported_fps | ( | camera_h | camera, |
camera_attr_supported_fps_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported FPS modes by invoking the callback function once for each supported FPS mode.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to invoke |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_fps_by_resolution | ( | camera_h | camera, |
int | width, | ||
int | height, | ||
camera_attr_supported_fps_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported FPS modes by invoking the callback function once for each supported FPS mode.
[in] | camera | The handle to the camera |
[in] | width | Required preview resolution's width |
[in] | height | Required preview resolution's height |
[in] | callback | The callback function to invoke |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_iso | ( | camera_h | camera, |
camera_attr_supported_iso_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported ISO levels by invoking the callback function once for each supported ISO level.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to be invoked |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_ptz_type | ( | camera_h | camera, |
camera_attr_supported_ptz_type_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported PTZ(Pan Tilt Zoom) types by invoking callback function once for each supported ptz type.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to invoke |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_scene_mode | ( | camera_h | camera, |
camera_attr_supported_scene_mode_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported scene modes by invoking the callback function once for each supported scene mode.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to invoke |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_stream_flip | ( | camera_h | camera, |
camera_attr_supported_stream_flip_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported stream flip modes by invoking callback function once for each supported stream flip mode.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to invoke |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_stream_rotation | ( | camera_h | camera, |
camera_attr_supported_stream_rotation_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported stream rotation modes by invoking callback function once for each supported stream rotation mode.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to invoke |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_theater_mode | ( | camera_h | camera, |
camera_attr_supported_theater_mode_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported theater modes by invoking callback function once for each supported theater modes.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to be invoked |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_whitebalance | ( | camera_h | camera, |
camera_attr_supported_whitebalance_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported white balances by invoking the callback function once for each supported white balance.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to be invoked |
[in] | user_data | The user data to be passed to the callback 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 |
bool camera_attr_is_supported_anti_shake | ( | camera_h | camera | ) |
Gets the support state of the anti-shake feature.
[in] | camera | The handle to the camera |
true
if supported, otherwise false
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 |
bool camera_attr_is_supported_auto_contrast | ( | camera_h | camera | ) |
Gets state of support of auto contrast feature.
[in] | camera | The handle to the camera |
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 |
bool camera_attr_is_supported_hdr_capture | ( | camera_h | camera | ) |
Gets the support state of HDR capture.
[in] | camera | The handle to the camera |
true
if supported, otherwise false
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 |
bool camera_attr_is_supported_video_stabilization | ( | camera_h | camera | ) |
Gets the support state of the video stabilization feature.
[in] | camera | The handle to the camera |
true
if supported, otherwise false
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_foreach_supported_capture_format | ( | camera_h | camera, |
camera_supported_capture_format_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported camera capture formats by invoking the callback function once for each supported camera capture format.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to be invoked |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_capture_resolution | ( | camera_h | camera, |
camera_supported_capture_resolution_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported camera captured resolutions by invoking the callback function once for each supported camera capture resolution.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to register |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_preview_format | ( | camera_h | camera, |
camera_supported_preview_format_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported camera preview formats by invoking the callback function once for each supported camera preview format.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to be invoked |
[in] | user_data | The user data to be passed to the callback 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_foreach_supported_preview_resolution | ( | camera_h | camera, |
camera_supported_preview_resolution_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all supported camera preview resolutions by invoking the callback function once for each supported camera preview resolution.
[in] | camera | The handle to the camera |
[in] | callback | The callback function to be invoked |
[in] | user_data | The user data to be passed to the callback 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_get_device_count | ( | camera_h | camera, |
int * | device_count | ||
) |
Gets the camera device count.
2
. If 1
is returned, the device only supports primary camera. [in] | camera | The handle to the camera |
[out] | device_count | The device count |
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 |
bool camera_is_supported_continuous_capture | ( | camera_h | camera | ) |
Gets continuous capture feature's supported state.
[in] | camera | The handle to the camera |
true
on supported, otherwise false 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 |
bool camera_is_supported_face_detection | ( | camera_h | camera | ) |
Gets the face detection feature's supported state.
[in] | camera | The handle to the camera |
true
if supported, otherwise false
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 |
bool camera_is_supported_media_packet_preview_cb | ( | camera_h | camera | ) |
Gets the media packet preview callback feature's supported state.
[in] | camera | The handle to the camera |
true
if supported, otherwise false
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 |
bool camera_is_supported_zero_shutter_lag | ( | camera_h | camera | ) |
Gets the zero shutter lag feature's supported state.
[in] | camera | The handle to the camera |
true
if supported, otherwise false
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 |