* @brief Enumeration for the error codes of Camera.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
- CAMERA_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
- CAMERA_ERROR_INVALID_STATE = CAMERA_ERROR_CLASS | 0x02, /**< Invalid state */
- CAMERA_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
- CAMERA_ERROR_DEVICE = CAMERA_ERROR_CLASS | 0x04, /**< Device error */
- CAMERA_ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Internal error */
- CAMERA_ERROR_SOUND_POLICY = CAMERA_ERROR_CLASS | 0x06, /**< Blocked by Audio Session Manager (Deprecated since 3.0) */
- CAMERA_ERROR_SECURITY_RESTRICTED = CAMERA_ERROR_CLASS | 0x07, /**< Restricted by security system policy */
- CAMERA_ERROR_DEVICE_BUSY = CAMERA_ERROR_CLASS | 0x08, /**< The device is using another application or working on some operation */
- CAMERA_ERROR_DEVICE_NOT_FOUND = CAMERA_ERROR_CLASS | 0x09, /**< No camera device */
- CAMERA_ERROR_SOUND_POLICY_BY_CALL = CAMERA_ERROR_CLASS | 0x0a, /**< Blocked by Audio Session Manager - CALL (Deprecated since 3.0) */
- CAMERA_ERROR_SOUND_POLICY_BY_ALARM = CAMERA_ERROR_CLASS | 0x0b, /**< Blocked by Audio Session Manager - ALARM (Deprecated since 3.0) */
- CAMERA_ERROR_ESD = CAMERA_ERROR_CLASS | 0x0c, /**< ESD situation */
- CAMERA_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< The access to the resources can not be granted*/
- CAMERA_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< The feature is not supported */
- CAMERA_ERROR_RESOURCE_CONFLICT = CAMERA_ERROR_CLASS | 0x0d, /**< Blocked by resource conflict (Since 3.0) */
+typedef enum {
+ CAMERA_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
+ CAMERA_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
+ CAMERA_ERROR_INVALID_STATE = CAMERA_ERROR_CLASS | 0x02, /**< Invalid state */
+ CAMERA_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
+ CAMERA_ERROR_DEVICE = CAMERA_ERROR_CLASS | 0x04, /**< Device error */
+ CAMERA_ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Internal error */
+ CAMERA_ERROR_SOUND_POLICY = CAMERA_ERROR_CLASS | 0x06, /**< Blocked by Audio Session Manager (Deprecated since 3.0) */
+ CAMERA_ERROR_SECURITY_RESTRICTED = CAMERA_ERROR_CLASS | 0x07, /**< Restricted by security system policy */
+ CAMERA_ERROR_DEVICE_BUSY = CAMERA_ERROR_CLASS | 0x08, /**< The device is using another application or working on some operation */
+ CAMERA_ERROR_DEVICE_NOT_FOUND = CAMERA_ERROR_CLASS | 0x09, /**< No camera device */
+ CAMERA_ERROR_SOUND_POLICY_BY_CALL = CAMERA_ERROR_CLASS | 0x0a, /**< Blocked by Audio Session Manager - CALL (Deprecated since 3.0) */
+ CAMERA_ERROR_SOUND_POLICY_BY_ALARM = CAMERA_ERROR_CLASS | 0x0b, /**< Blocked by Audio Session Manager - ALARM (Deprecated since 3.0) */
+ CAMERA_ERROR_ESD = CAMERA_ERROR_CLASS | 0x0c, /**< ESD situation */
+ CAMERA_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< The access to the resources can not be granted*/
+ CAMERA_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< The feature is not supported */
+ CAMERA_ERROR_RESOURCE_CONFLICT = CAMERA_ERROR_CLASS | 0x0d, /**< Blocked by resource conflict (Since 3.0) */
} camera_error_e;
/**
* @brief Enumeration for the camera state.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_STATE_NONE, /**< Before creating */
- CAMERA_STATE_CREATED, /**< Created, but not initialized yet */
- CAMERA_STATE_PREVIEW, /**< Preview */
- CAMERA_STATE_CAPTURING, /**< While capturing */
- CAMERA_STATE_CAPTURED /**< After capturing */
+typedef enum {
+ CAMERA_STATE_NONE, /**< Before creating */
+ CAMERA_STATE_CREATED, /**< Created, but not initialized yet */
+ CAMERA_STATE_PREVIEW, /**< Preview */
+ CAMERA_STATE_CAPTURING, /**< While capturing */
+ CAMERA_STATE_CAPTURED /**< After capturing */
} camera_state_e;
/**
* @brief Enumeration for the camera device.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_DEVICE_CAMERA0 = 0, /**< Primary camera */
- CAMERA_DEVICE_CAMERA1 /**< Secondary camera */
+typedef enum {
+ CAMERA_DEVICE_CAMERA0 = 0, /**< Primary camera */
+ CAMERA_DEVICE_CAMERA1 /**< Secondary camera */
} camera_device_e;
/**
* @brief Enumeration for the camera pixel format.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
+typedef enum {
CAMERA_PIXEL_FORMAT_INVALID = -1, /**< Invalid pixel format */
CAMERA_PIXEL_FORMAT_NV12, /**< NV12 pixel format */
CAMERA_PIXEL_FORMAT_NV12T, /**< NV12 Tiled pixel format */
* @brief Enumeration for the camera display type.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
+typedef enum {
CAMERA_DISPLAY_TYPE_OVERLAY = 0, /**< Overlay surface display */
CAMERA_DISPLAY_TYPE_EVAS, /**< Evas object surface display */
CAMERA_DISPLAY_TYPE_NONE /**< This disposes off buffers */
* @brief Enumeration for the camera policy.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
+typedef enum {
CAMERA_POLICY_NONE = 0, /**< None */
CAMERA_POLICY_SOUND, /**< Sound policy (Deprecated since 3.0) */
CAMERA_POLICY_SOUND_BY_CALL, /**< Sound policy by CALL (Deprecated since 3.0) */
* @brief Enumeration for the camera rotation type.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
+typedef enum {
CAMERA_ROTATION_NONE, /**< No rotation */
CAMERA_ROTATION_90, /**< 90 degree rotation */
CAMERA_ROTATION_180, /**< 180 degree rotation */
* @brief Enumeration for the camera flip type.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
+typedef enum {
CAMERA_FLIP_NONE, /**< No Flip */
CAMERA_FLIP_HORIZONTAL, /**< Horizontal flip */
CAMERA_FLIP_VERTICAL, /**< Vertical flip */
* @brief Enumeration for the camera focus state.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_FOCUS_STATE_RELEASED = 0, /**< Focus released */
- CAMERA_FOCUS_STATE_ONGOING, /**< Focus in progress */
- CAMERA_FOCUS_STATE_FOCUSED, /**< Focus succeeded */
- CAMERA_FOCUS_STATE_FAILED, /**< Focus failed */
+typedef enum {
+ CAMERA_FOCUS_STATE_RELEASED = 0, /**< Focus released */
+ CAMERA_FOCUS_STATE_ONGOING, /**< Focus in progress */
+ CAMERA_FOCUS_STATE_FOCUSED, /**< Focus succeeded */
+ CAMERA_FOCUS_STATE_FAILED, /**< Focus failed */
} camera_focus_state_e;
/**
* @brief The structure type of the image data.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
- typedef struct
-{
+typedef struct {
unsigned char *data; /**< The image buffer */
unsigned int size; /**< The size of the buffer */
int width; /**< The width of the image */
* @brief The structure type for face detection.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef struct
-{
+typedef struct {
int id; /**< The ID of each face */
int score; /**< The confidence level for the detection of the face */
int x; /**< The x coordinates of the face */
* @brief The structure type to preview stream data.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef struct
-{
+typedef struct {
camera_pixel_format_e format; /**< The format of the frame pixel */
int width; /**< The width of the frame */
int height; /**< The height of the frame */
* @brief Enumeration for the camera display mode.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
+typedef enum {
CAMERA_DISPLAY_MODE_LETTER_BOX = 0, /**< Letter box */
CAMERA_DISPLAY_MODE_ORIGIN_SIZE, /**< Origin size */
CAMERA_DISPLAY_MODE_FULL, /**< Full screen */
* @brief Enumeration for the color tone, which provides the impression of looking through a tinted glass.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_ATTR_EFFECT_NONE = 0, /**< None */
- CAMERA_ATTR_EFFECT_MONO, /**< Mono */
- CAMERA_ATTR_EFFECT_SEPIA, /**< Sepia */
- CAMERA_ATTR_EFFECT_NEGATIVE, /**< Negative */
- CAMERA_ATTR_EFFECT_BLUE, /**< Blue */
- CAMERA_ATTR_EFFECT_GREEN, /**< Green */
- CAMERA_ATTR_EFFECT_AQUA, /**< Aqua */
- CAMERA_ATTR_EFFECT_VIOLET, /**< Violet */
- CAMERA_ATTR_EFFECT_ORANGE, /**< Orange */
- CAMERA_ATTR_EFFECT_GRAY, /**< Gray */
- CAMERA_ATTR_EFFECT_RED, /**< Red */
- CAMERA_ATTR_EFFECT_ANTIQUE, /**< Antique */
- CAMERA_ATTR_EFFECT_WARM, /**< Warm */
- CAMERA_ATTR_EFFECT_PINK, /**< Pink */
- CAMERA_ATTR_EFFECT_YELLOW, /**< Yellow */
- CAMERA_ATTR_EFFECT_PURPLE, /**< Purple */
- CAMERA_ATTR_EFFECT_EMBOSS, /**< Emboss */
- CAMERA_ATTR_EFFECT_OUTLINE, /**< Outline */
- CAMERA_ATTR_EFFECT_SOLARIZATION, /**< Solarization */
- CAMERA_ATTR_EFFECT_SKETCH, /**< Sketch */
- CAMERA_ATTR_EFFECT_WASHED, /**< Washed */
- CAMERA_ATTR_EFFECT_VINTAGE_WARM, /**< Vintage warm */
- CAMERA_ATTR_EFFECT_VINTAGE_COLD, /**< Vintage cold */
- CAMERA_ATTR_EFFECT_POSTERIZATION, /**< Posterization */
- CAMERA_ATTR_EFFECT_CARTOON, /**< Cartoon */
- CAMERA_ATTR_EFFECT_SELECTIVE_RED, /**< Selective color - Red */
- CAMERA_ATTR_EFFECT_SELECTIVE_GREEN, /**< Selective color - Green */
- CAMERA_ATTR_EFFECT_SELECTIVE_BLUE, /**< Selective color - Blue */
- CAMERA_ATTR_EFFECT_SELECTIVE_YELLOW, /**< Selective color - Yellow */
- CAMERA_ATTR_EFFECT_SELECTIVE_RED_YELLOW, /**< Selective color - Red and Yellow */
- CAMERA_ATTR_EFFECT_OTHER_GRAPHICS, /**< Other Graphic effects */
+typedef enum {
+ CAMERA_ATTR_EFFECT_NONE = 0, /**< None */
+ CAMERA_ATTR_EFFECT_MONO, /**< Mono */
+ CAMERA_ATTR_EFFECT_SEPIA, /**< Sepia */
+ CAMERA_ATTR_EFFECT_NEGATIVE, /**< Negative */
+ CAMERA_ATTR_EFFECT_BLUE, /**< Blue */
+ CAMERA_ATTR_EFFECT_GREEN, /**< Green */
+ CAMERA_ATTR_EFFECT_AQUA, /**< Aqua */
+ CAMERA_ATTR_EFFECT_VIOLET, /**< Violet */
+ CAMERA_ATTR_EFFECT_ORANGE, /**< Orange */
+ CAMERA_ATTR_EFFECT_GRAY, /**< Gray */
+ CAMERA_ATTR_EFFECT_RED, /**< Red */
+ CAMERA_ATTR_EFFECT_ANTIQUE, /**< Antique */
+ CAMERA_ATTR_EFFECT_WARM, /**< Warm */
+ CAMERA_ATTR_EFFECT_PINK, /**< Pink */
+ CAMERA_ATTR_EFFECT_YELLOW, /**< Yellow */
+ CAMERA_ATTR_EFFECT_PURPLE, /**< Purple */
+ CAMERA_ATTR_EFFECT_EMBOSS, /**< Emboss */
+ CAMERA_ATTR_EFFECT_OUTLINE, /**< Outline */
+ CAMERA_ATTR_EFFECT_SOLARIZATION, /**< Solarization */
+ CAMERA_ATTR_EFFECT_SKETCH, /**< Sketch */
+ CAMERA_ATTR_EFFECT_WASHED, /**< Washed */
+ CAMERA_ATTR_EFFECT_VINTAGE_WARM, /**< Vintage warm */
+ CAMERA_ATTR_EFFECT_VINTAGE_COLD, /**< Vintage cold */
+ CAMERA_ATTR_EFFECT_POSTERIZATION, /**< Posterization */
+ CAMERA_ATTR_EFFECT_CARTOON, /**< Cartoon */
+ CAMERA_ATTR_EFFECT_SELECTIVE_RED, /**< Selective color - Red */
+ CAMERA_ATTR_EFFECT_SELECTIVE_GREEN, /**< Selective color - Green */
+ CAMERA_ATTR_EFFECT_SELECTIVE_BLUE, /**< Selective color - Blue */
+ CAMERA_ATTR_EFFECT_SELECTIVE_YELLOW, /**< Selective color - Yellow */
+ CAMERA_ATTR_EFFECT_SELECTIVE_RED_YELLOW, /**< Selective color - Red and Yellow */
+ CAMERA_ATTR_EFFECT_OTHER_GRAPHICS, /**< Other Graphic effects */
} camera_attr_effect_mode_e;
/**
* @brief Enumeration for the white balance levels of the camera.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_ATTR_WHITE_BALANCE_NONE = 0, /**< None */
- CAMERA_ATTR_WHITE_BALANCE_AUTOMATIC, /**< Automatic */
- CAMERA_ATTR_WHITE_BALANCE_DAYLIGHT, /**< Daylight */
- CAMERA_ATTR_WHITE_BALANCE_CLOUDY, /**< Cloudy */
- CAMERA_ATTR_WHITE_BALANCE_FLUORESCENT, /**< Fluorescent */
- CAMERA_ATTR_WHITE_BALANCE_INCANDESCENT, /**< Incandescent */
- CAMERA_ATTR_WHITE_BALANCE_SHADE, /**< Shade */
- CAMERA_ATTR_WHITE_BALANCE_HORIZON, /**< Horizon */
- CAMERA_ATTR_WHITE_BALANCE_FLASH, /**< Flash */
- CAMERA_ATTR_WHITE_BALANCE_CUSTOM, /**< Custom */
+typedef enum {
+ CAMERA_ATTR_WHITE_BALANCE_NONE = 0, /**< None */
+ CAMERA_ATTR_WHITE_BALANCE_AUTOMATIC, /**< Automatic */
+ CAMERA_ATTR_WHITE_BALANCE_DAYLIGHT, /**< Daylight */
+ CAMERA_ATTR_WHITE_BALANCE_CLOUDY, /**< Cloudy */
+ CAMERA_ATTR_WHITE_BALANCE_FLUORESCENT, /**< Fluorescent */
+ CAMERA_ATTR_WHITE_BALANCE_INCANDESCENT, /**< Incandescent */
+ CAMERA_ATTR_WHITE_BALANCE_SHADE, /**< Shade */
+ CAMERA_ATTR_WHITE_BALANCE_HORIZON, /**< Horizon */
+ CAMERA_ATTR_WHITE_BALANCE_FLASH, /**< Flash */
+ CAMERA_ATTR_WHITE_BALANCE_CUSTOM, /**< Custom */
} camera_attr_whitebalance_e;
/**
* @details The mode of operation can be in daylight, night, or back-light.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_ATTR_SCENE_MODE_NORMAL = 0, /**< Normal */
- CAMERA_ATTR_SCENE_MODE_PORTRAIT, /**< Portrait */
- CAMERA_ATTR_SCENE_MODE_LANDSCAPE, /**< Landscape */
- CAMERA_ATTR_SCENE_MODE_SPORTS, /**< Sports */
- CAMERA_ATTR_SCENE_MODE_PARTY_N_INDOOR, /**< Party & indoor */
- CAMERA_ATTR_SCENE_MODE_BEACH_N_INDOOR, /**< Beach & indoor */
- CAMERA_ATTR_SCENE_MODE_SUNSET, /**< Sunset */
- CAMERA_ATTR_SCENE_MODE_DUSK_N_DAWN, /**< Dusk & dawn */
- CAMERA_ATTR_SCENE_MODE_FALL_COLOR, /**< Fall */
- CAMERA_ATTR_SCENE_MODE_NIGHT_SCENE, /**< Night scene */
- CAMERA_ATTR_SCENE_MODE_FIREWORK, /**< Firework */
- CAMERA_ATTR_SCENE_MODE_TEXT, /**< Text */
- CAMERA_ATTR_SCENE_MODE_SHOW_WINDOW, /**< Show window */
- CAMERA_ATTR_SCENE_MODE_CANDLE_LIGHT, /**< Candle light */
- CAMERA_ATTR_SCENE_MODE_BACKLIGHT, /**< Backlight */
- CAMERA_ATTR_SCENE_MODE_AQUA, /**< Aqua */
+typedef enum {
+ CAMERA_ATTR_SCENE_MODE_NORMAL = 0, /**< Normal */
+ CAMERA_ATTR_SCENE_MODE_PORTRAIT, /**< Portrait */
+ CAMERA_ATTR_SCENE_MODE_LANDSCAPE, /**< Landscape */
+ CAMERA_ATTR_SCENE_MODE_SPORTS, /**< Sports */
+ CAMERA_ATTR_SCENE_MODE_PARTY_N_INDOOR, /**< Party & indoor */
+ CAMERA_ATTR_SCENE_MODE_BEACH_N_INDOOR, /**< Beach & indoor */
+ CAMERA_ATTR_SCENE_MODE_SUNSET, /**< Sunset */
+ CAMERA_ATTR_SCENE_MODE_DUSK_N_DAWN, /**< Dusk & dawn */
+ CAMERA_ATTR_SCENE_MODE_FALL_COLOR, /**< Fall */
+ CAMERA_ATTR_SCENE_MODE_NIGHT_SCENE, /**< Night scene */
+ CAMERA_ATTR_SCENE_MODE_FIREWORK, /**< Firework */
+ CAMERA_ATTR_SCENE_MODE_TEXT, /**< Text */
+ CAMERA_ATTR_SCENE_MODE_SHOW_WINDOW, /**< Show window */
+ CAMERA_ATTR_SCENE_MODE_CANDLE_LIGHT, /**< Candle light */
+ CAMERA_ATTR_SCENE_MODE_BACKLIGHT, /**< Backlight */
+ CAMERA_ATTR_SCENE_MODE_AQUA, /**< Aqua */
} camera_attr_scene_mode_e;
/**
* @brief Enumeration for the auto focus mode.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_ATTR_AF_NONE = 0, /**< auto-focus is not set */
- CAMERA_ATTR_AF_NORMAL, /**< auto-focus in the normal mode */
- CAMERA_ATTR_AF_MACRO, /**< auto-focus in the macro mode(close distance) */
- CAMERA_ATTR_AF_FULL, /**< auto-focus in the full mode(all range scan, limited by device spec) */
+typedef enum {
+ CAMERA_ATTR_AF_NONE = 0, /**< auto-focus is not set */
+ CAMERA_ATTR_AF_NORMAL, /**< auto-focus in the normal mode */
+ CAMERA_ATTR_AF_MACRO, /**< auto-focus in the macro mode(close distance) */
+ CAMERA_ATTR_AF_FULL, /**< auto-focus in the full mode(all range scan, limited by device spec) */
} camera_attr_af_mode_e;
/**
* @brief Enumeration for the ISO levels of the camera.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_ATTR_ISO_AUTO = 0, /**< ISO auto mode */
- CAMERA_ATTR_ISO_50, /**< ISO 50 */
- CAMERA_ATTR_ISO_100, /**< ISO 100 */
- CAMERA_ATTR_ISO_200, /**< ISO 200 */
- CAMERA_ATTR_ISO_400, /**< ISO 400 */
- CAMERA_ATTR_ISO_800, /**< ISO 800 */
- CAMERA_ATTR_ISO_1600, /**< ISO 1600 */
- CAMERA_ATTR_ISO_3200, /**< ISO 3200 */
+typedef enum {
+ CAMERA_ATTR_ISO_AUTO = 0, /**< ISO auto mode */
+ CAMERA_ATTR_ISO_50, /**< ISO 50 */
+ CAMERA_ATTR_ISO_100, /**< ISO 100 */
+ CAMERA_ATTR_ISO_200, /**< ISO 200 */
+ CAMERA_ATTR_ISO_400, /**< ISO 400 */
+ CAMERA_ATTR_ISO_800, /**< ISO 800 */
+ CAMERA_ATTR_ISO_1600, /**< ISO 1600 */
+ CAMERA_ATTR_ISO_3200, /**< ISO 3200 */
} camera_attr_iso_e;
/**
* @brief Enumeration for the camera exposure modes.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_ATTR_EXPOSURE_MODE_OFF = 0, /**< Off */
- CAMERA_ATTR_EXPOSURE_MODE_ALL, /**< All mode */
- CAMERA_ATTR_EXPOSURE_MODE_CENTER, /**< Center mode */
- CAMERA_ATTR_EXPOSURE_MODE_SPOT, /**< Spot mode */
- CAMERA_ATTR_EXPOSURE_MODE_CUSTOM, /**< Custom mode */
+typedef enum {
+ CAMERA_ATTR_EXPOSURE_MODE_OFF = 0, /**< Off */
+ CAMERA_ATTR_EXPOSURE_MODE_ALL, /**< All mode */
+ CAMERA_ATTR_EXPOSURE_MODE_CENTER, /**< Center mode */
+ CAMERA_ATTR_EXPOSURE_MODE_SPOT, /**< Spot mode */
+ CAMERA_ATTR_EXPOSURE_MODE_CUSTOM, /**< Custom mode */
} camera_attr_exposure_mode_e;
/**
* @brief Enumeration for the orientation values of tag.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_ATTR_TAG_ORIENTATION_TOP_LEFT = 1, /**< Row #0 is at the top, Column #0 is to the left */
- CAMERA_ATTR_TAG_ORIENTATION_TOP_RIGHT = 2, /**< Row #0 is at the top, Column #0 is to the right (flipped) */
- CAMERA_ATTR_TAG_ORIENTATION_BOTTOM_RIGHT = 3, /**< Row #0 is at the bottom, Column #0 is to the right */
- CAMERA_ATTR_TAG_ORIENTATION_BOTTOM_LEFT = 4, /**< Row #0 is at the bottom, Column #0 is to the left (flipped) */
- CAMERA_ATTR_TAG_ORIENTATION_LEFT_TOP = 5, /**< Row #0 is to the left, Column #0 is at the top (flipped) */
- CAMERA_ATTR_TAG_ORIENTATION_RIGHT_TOP = 6, /**< Row #0 is to the right, Column #0 is at the top */
- CAMERA_ATTR_TAG_ORIENTATION_RIGHT_BOTTOM = 7, /**< Row #0 is to the right, Column #0 is at the bottom (flipped) */
- CAMERA_ATTR_TAG_ORIENTATION_LEFT_BOTTOM = 8, /**< Row #0 is to the left, Column #0 is at the bottom */
+typedef enum {
+ CAMERA_ATTR_TAG_ORIENTATION_TOP_LEFT = 1, /**< Row #0 is at the top, Column #0 is to the left */
+ CAMERA_ATTR_TAG_ORIENTATION_TOP_RIGHT = 2, /**< Row #0 is at the top, Column #0 is to the right (flipped) */
+ CAMERA_ATTR_TAG_ORIENTATION_BOTTOM_RIGHT = 3, /**< Row #0 is at the bottom, Column #0 is to the right */
+ CAMERA_ATTR_TAG_ORIENTATION_BOTTOM_LEFT = 4, /**< Row #0 is at the bottom, Column #0 is to the left (flipped) */
+ CAMERA_ATTR_TAG_ORIENTATION_LEFT_TOP = 5, /**< Row #0 is to the left, Column #0 is at the top (flipped) */
+ CAMERA_ATTR_TAG_ORIENTATION_RIGHT_TOP = 6, /**< Row #0 is to the right, Column #0 is at the top */
+ CAMERA_ATTR_TAG_ORIENTATION_RIGHT_BOTTOM = 7, /**< Row #0 is to the right, Column #0 is at the bottom (flipped) */
+ CAMERA_ATTR_TAG_ORIENTATION_LEFT_BOTTOM = 8, /**< Row #0 is to the left, Column #0 is at the bottom */
} camera_attr_tag_orientation_e;
/**
* @brief Enumeration for the flash mode.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_ATTR_FLASH_MODE_OFF = 0, /**< Always off */
- CAMERA_ATTR_FLASH_MODE_ON, /**< Always splashes */
- CAMERA_ATTR_FLASH_MODE_AUTO, /**< Depending on intensity of light, strobe starts to flash */
- CAMERA_ATTR_FLASH_MODE_REDEYE_REDUCTION, /**< Red eye reduction. Multiple flash before capturing */
- CAMERA_ATTR_FLASH_MODE_SLOW_SYNC, /**< Slow sync curtain synchronization */
- CAMERA_ATTR_FLASH_MODE_FRONT_CURTAIN, /**< Front curtain synchronization */
- CAMERA_ATTR_FLASH_MODE_REAR_CURTAIN, /**< Rear curtain synchronization */
- CAMERA_ATTR_FLASH_MODE_PERMANENT, /**< Keep turned on until turning off */
+typedef enum {
+ CAMERA_ATTR_FLASH_MODE_OFF = 0, /**< Always off */
+ CAMERA_ATTR_FLASH_MODE_ON, /**< Always splashes */
+ CAMERA_ATTR_FLASH_MODE_AUTO, /**< Depending on intensity of light, strobe starts to flash */
+ CAMERA_ATTR_FLASH_MODE_REDEYE_REDUCTION, /**< Red eye reduction. Multiple flash before capturing */
+ CAMERA_ATTR_FLASH_MODE_SLOW_SYNC, /**< Slow sync curtain synchronization */
+ CAMERA_ATTR_FLASH_MODE_FRONT_CURTAIN, /**< Front curtain synchronization */
+ CAMERA_ATTR_FLASH_MODE_REAR_CURTAIN, /**< Rear curtain synchronization */
+ CAMERA_ATTR_FLASH_MODE_PERMANENT, /**< Keep turned on until turning off */
} camera_attr_flash_mode_e;
/**
* @brief Enumeration to preview FPS.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- CAMERA_ATTR_FPS_AUTO = 0, /**< AUTO FPS */
- CAMERA_ATTR_FPS_7 = 7, /**< 7 FPS */
- CAMERA_ATTR_FPS_8 = 8, /**< 8 FPS */
- CAMERA_ATTR_FPS_15 = 15, /**< 15 FPS */
- CAMERA_ATTR_FPS_20 = 20, /**< 20 FPS */
- CAMERA_ATTR_FPS_24 = 24, /**< 24 FPS */
- CAMERA_ATTR_FPS_25 = 25, /**< 25 FPS */
- CAMERA_ATTR_FPS_30 = 30, /**< 30 FPS */
- CAMERA_ATTR_FPS_60 = 60, /**< 60 FPS */
- CAMERA_ATTR_FPS_90 = 90, /**< 90 FPS */
- CAMERA_ATTR_FPS_120 = 120 /**< 120 FPS */
+typedef enum {
+ CAMERA_ATTR_FPS_AUTO = 0, /**< AUTO FPS */
+ CAMERA_ATTR_FPS_7 = 7, /**< 7 FPS */
+ CAMERA_ATTR_FPS_8 = 8, /**< 8 FPS */
+ CAMERA_ATTR_FPS_15 = 15, /**< 15 FPS */
+ CAMERA_ATTR_FPS_20 = 20, /**< 20 FPS */
+ CAMERA_ATTR_FPS_24 = 24, /**< 24 FPS */
+ CAMERA_ATTR_FPS_25 = 25, /**< 25 FPS */
+ CAMERA_ATTR_FPS_30 = 30, /**< 30 FPS */
+ CAMERA_ATTR_FPS_60 = 60, /**< 60 FPS */
+ CAMERA_ATTR_FPS_90 = 90, /**< 90 FPS */
+ CAMERA_ATTR_FPS_120 = 120 /**< 120 FPS */
} camera_attr_fps_e;
/**
* @brief Enumeration for the theater mode.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
+typedef enum {
CAMERA_ATTR_THEATER_MODE_DISABLE = 0, /**< Disable theater mode - External display shows same image as device display */
CAMERA_ATTR_THEATER_MODE_ENABLE = 2, /**< Enable theater mode - Preview image is displayed on external display with full screen mode, but preview image is not shown on device display */
CAMERA_ATTR_THEATER_MODE_CLONE = 1 /**< Clone mode - Preview image is displayed on external display with full screen mode. Also preview image is shown by the UI on device display */
* @brief Enumeration for HDR capture mode.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
+typedef enum {
CAMERA_ATTR_HDR_MODE_DISABLE = 0, /**< Disable HDR capture */
CAMERA_ATTR_HDR_MODE_ENABLE, /**< Enable HDR capture */
CAMERA_ATTR_HDR_MODE_KEEP_ORIGINAL /**< Enable HDR capture and keep original image data */
* will invoke this callback if you register this callback using camera_set_state_changed_cb().
* @see camera_set_state_changed_cb()
*/
-typedef void (*camera_state_changed_cb)(camera_state_e previous, camera_state_e current,
- bool by_policy, void *user_data);
+typedef void (*camera_state_changed_cb)(camera_state_e previous, camera_state_e current, bool by_policy, void *user_data);
/**
* @brief Called when the camera is interrupted by policy.
* @pre camera_foreach_supported_capture_format() will invoke this callback.
* @see camera_foreach_supported_capture_format()
*/
-typedef bool (*camera_supported_capture_format_cb)(camera_pixel_format_e format,
- void *user_data);
+typedef bool (*camera_supported_capture_format_cb)(camera_pixel_format_e format, void *user_data);
/**
* @brief Called once for the pixel format of each supported preview format.
* @pre camera_foreach_supported_preview_format() will invoke this callback.
* @see camera_foreach_supported_preview_format()
*/
-typedef bool (*camera_supported_preview_format_cb)(camera_pixel_format_e format,
- void *user_data);
+typedef bool (*camera_supported_preview_format_cb)(camera_pixel_format_e format, void *user_data);
/**
* @}
* @exception #CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
*
*/
- bool camera_is_supported_continuous_capture(camera_h camera);
+bool camera_is_supported_continuous_capture(camera_h camera);
/**
* @brief Retrieves all supported camera preview resolutions by invoking the callback function once for each supported camera preview resolution.
* @see camera_get_preview_resolution()
* @see camera_supported_preview_resolution_cb()
*/
-int camera_foreach_supported_preview_resolution(camera_h camera,
- camera_supported_preview_resolution_cb callback, void *user_data);
+int camera_foreach_supported_preview_resolution(camera_h camera, camera_supported_preview_resolution_cb callback, void *user_data);
/**
* @}
* @see camera_get_capture_resolution()
* @see camera_supported_capture_resolution_cb()
*/
-int camera_foreach_supported_capture_resolution(camera_h camera,
- camera_supported_capture_resolution_cb callback, void *user_data);
+int camera_foreach_supported_capture_resolution(camera_h camera, camera_supported_capture_resolution_cb callback, void *user_data);
/**
* @}
* @see camera_get_capture_format()
* @see camera_supported_capture_format_cb()
*/
-int camera_foreach_supported_capture_format(camera_h camera,
- camera_supported_capture_format_cb callback, void *user_data);
+int camera_foreach_supported_capture_format(camera_h camera, camera_supported_capture_format_cb callback, void *user_data);
/**
* @}
* @see camera_get_preview_format()
* @see camera_supported_preview_format_cb()
*/
-int camera_foreach_supported_preview_format(camera_h camera,
- camera_supported_preview_format_cb callback, void *user_data);
+int camera_foreach_supported_preview_format(camera_h camera, camera_supported_preview_format_cb callback, void *user_data);
/**
* @ingroup CAPI_MEDIA_CAMERA_CAPABILITY_MODULE
* @see camera_unset_state_changed_cb()
* @see camera_state_changed_cb()
*/
-int camera_set_state_changed_cb(camera_h camera, camera_state_changed_cb callback,
- void *user_data);
+int camera_set_state_changed_cb(camera_h camera, camera_state_changed_cb callback, void *user_data);
/**
* @brief Unregisters the callback function.
* @see camera_unset_focus_changed_cb()
* @see camera_focus_changed_cb()
*/
-int camera_set_focus_changed_cb(camera_h camera, camera_focus_changed_cb callback,
- void *user_data);
+int camera_set_focus_changed_cb(camera_h camera, camera_focus_changed_cb callback, void *user_data);
/**
* @brief Unregisters the callback function.
* @see camera_attr_foreach_supported_exposure_mode()
* @see #camera_attr_exposure_mode_e
*/
-typedef bool (*camera_attr_supported_exposure_mode_cb)(camera_attr_exposure_mode_e mode,
- void *user_data);
+typedef bool (*camera_attr_supported_exposure_mode_cb)(camera_attr_exposure_mode_e mode, void *user_data);
/**
* @brief Called to get each supported ISO mode.
* @see camera_attr_foreach_supported_whitebalance()
* @see #camera_attr_whitebalance_e
*/
-typedef bool (*camera_attr_supported_whitebalance_cb)(camera_attr_whitebalance_e wb,
- void *user_data);
+typedef bool (*camera_attr_supported_whitebalance_cb)(camera_attr_whitebalance_e wb, void *user_data);
/**
* @brief Called to get each supported effect mode.
* @pre camera_attr_foreach_supported_effect() will invoke this callback.
* @see camera_attr_foreach_supported_effect()
*/
-typedef bool (*camera_attr_supported_effect_cb)(camera_attr_effect_mode_e effect,
- void *user_data);
+typedef bool (*camera_attr_supported_effect_cb)(camera_attr_effect_mode_e effect, void *user_data);
/**
* @brief Called to get each supported scene mode.
* @see camera_attr_foreach_supported_scene_mode()
* @see #camera_attr_scene_mode_e
*/
-typedef bool (*camera_attr_supported_scene_mode_cb)(camera_attr_scene_mode_e mode,
- void *user_data);
+typedef bool (*camera_attr_supported_scene_mode_cb)(camera_attr_scene_mode_e mode, void *user_data);
/**
* @brief Called to get each supported flash mode.
* @pre camera_attr_foreach_supported_flash_mode() will invoke this callback.
* @see camera_attr_foreach_supported_flash_mode()
*/
-typedef bool (*camera_attr_supported_flash_mode_cb)(camera_attr_flash_mode_e mode,
- void *user_data);
+typedef bool (*camera_attr_supported_flash_mode_cb)(camera_attr_flash_mode_e mode, void *user_data);
/**
* @brief Called to get each supported FPS mode.
* @see camera_attr_get_preview_fps()
* @see camera_attr_supported_fps_cb()
*/
-int camera_attr_foreach_supported_fps(camera_h camera, camera_attr_supported_fps_cb callback,
- void *user_data);
+int camera_attr_foreach_supported_fps(camera_h camera, camera_attr_supported_fps_cb callback, void *user_data);
/**
* @brief Retrieves all supported FPS modes by invoking the callback function once for each supported FPS mode.
* @see camera_attr_get_preview_fps()
* @see camera_attr_supported_fps_cb()
*/
-int camera_attr_foreach_supported_fps_by_resolution(camera_h camera, int width, int height,
- camera_attr_supported_fps_cb callback ,void *user_data);
+int camera_attr_foreach_supported_fps_by_resolution(camera_h camera, int width, int height, camera_attr_supported_fps_cb callback, void *user_data);
/**
* @}
* @see camera_attr_get_af_mode()
* @see camera_attr_supported_af_mode_cb()
*/
-int camera_attr_foreach_supported_af_mode(camera_h camera,
- camera_attr_supported_af_mode_cb callback, void *user_data);
+int camera_attr_foreach_supported_af_mode(camera_h camera, camera_attr_supported_af_mode_cb callback, void *user_data);
/**
* @}
* @see camera_attr_get_exposure_mode()
* @see camera_attr_supported_exposure_mode_cb()
*/
-int camera_attr_foreach_supported_exposure_mode(camera_h camera,
- camera_attr_supported_exposure_mode_cb callback, void *user_data);
+int camera_attr_foreach_supported_exposure_mode(camera_h camera, camera_attr_supported_exposure_mode_cb callback, void *user_data);
/**
* @}
* @see camera_attr_get_iso()
* @see camera_attr_supported_iso_cb()
*/
-int camera_attr_foreach_supported_iso(camera_h camera, camera_attr_supported_iso_cb callback,
- void *user_data);
+int camera_attr_foreach_supported_iso(camera_h camera, camera_attr_supported_iso_cb callback, void *user_data);
/**
* @}
* @see camera_attr_get_theater_mode()
* @see camera_attr_supported_theater_mode_cb()
*/
-int camera_attr_foreach_supported_theater_mode(camera_h camera,
- camera_attr_supported_theater_mode_cb callback, void *user_data);
+int camera_attr_foreach_supported_theater_mode(camera_h camera, camera_attr_supported_theater_mode_cb callback, void *user_data);
/**
* @}
* @see camera_attr_get_whitebalance()
* @see camera_attr_supported_whitebalance_cb()
*/
-int camera_attr_foreach_supported_whitebalance(camera_h camera,
- camera_attr_supported_whitebalance_cb callback, void *user_data);
+int camera_attr_foreach_supported_whitebalance(camera_h camera, camera_attr_supported_whitebalance_cb callback, void *user_data);
/**
* @}
* @see camera_attr_get_effect()
* @see camera_attr_supported_effect_cb()
*/
-int camera_attr_foreach_supported_effect(camera_h camera,
- camera_attr_supported_effect_cb callback, void *user_data);
+int camera_attr_foreach_supported_effect(camera_h camera, camera_attr_supported_effect_cb callback, void *user_data);
/**
* @}
* @see camera_attr_get_scene_mode()
* @see camera_attr_supported_scene_mode_cb()
*/
-int camera_attr_foreach_supported_scene_mode(camera_h camera,
- camera_attr_supported_scene_mode_cb callback, void *user_data);
+int camera_attr_foreach_supported_scene_mode(camera_h camera, camera_attr_supported_scene_mode_cb callback, void *user_data);
/**
* @}
* @privlevel public
* @privilege %http://tizen.org/privilege/camera
* @remarks Since 2.4, while setting the flash mode, if the flash was preempted by other APIs,\n
- then this function returns #CAMERA_ERROR_DEVICE_BUSY error.
+ * then this function returns #CAMERA_ERROR_DEVICE_BUSY error.
* @param[in] camera The handle to the camera
* @param[in] mode The flash mode
* @return @c 0 on success, otherwise a negative error value
* @see camera_attr_get_flash_mode()
* @see camera_attr_supported_flash_mode_cb()
*/
-int camera_attr_foreach_supported_flash_mode(camera_h camera,
- camera_attr_supported_flash_mode_cb callback, void *user_data);
+int camera_attr_foreach_supported_flash_mode(camera_h camera, camera_attr_supported_flash_mode_cb callback, void *user_data);
/**
* @}
* @see camera_attr_get_stream_rotation()
* @see camera_attr_supported_stream_rotation_cb()
*/
-int camera_attr_foreach_supported_stream_rotation(camera_h camera,
- camera_attr_supported_stream_rotation_cb callback, void *user_data);
+int camera_attr_foreach_supported_stream_rotation(camera_h camera, camera_attr_supported_stream_rotation_cb callback, void *user_data);
/**
* @}
* @see camera_attr_get_stream_flip()
* @see camera_attr_supported_stream_flip_cb()
*/
-int camera_attr_foreach_supported_stream_flip(camera_h camera,
- camera_attr_supported_stream_flip_cb callback, void *user_data);
+int camera_attr_foreach_supported_stream_flip(camera_h camera, camera_attr_supported_stream_flip_cb callback, void *user_data);
/**
* @}
#endif
#endif /* __TIZEN_MULTIMEDIA_CAMERA_H__ */
-