Tizen Native API
4.0
|
The Display API provides functions to control display.
#include <camera.h>
The Display API allows you to manage display for the camera. This API provides you with functions that set and get various display properties :
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_set_display_rotation (camera_h camera, camera_rotation_e rotation) |
Sets the display rotation. | |
int | camera_get_display_rotation (camera_h camera, camera_rotation_e *rotation) |
Gets the display rotation. | |
int | camera_set_display_flip (camera_h camera, camera_flip_e flip) |
Sets the display flip. | |
int | camera_get_display_flip (camera_h camera, camera_flip_e *flip) |
Gets the display flip. | |
int | camera_set_display_visible (camera_h camera, bool visible) |
Sets the visible property for display. | |
int | camera_is_display_visible (camera_h camera, bool *visible) |
Gets the visible property of display. | |
int | camera_set_display_mode (camera_h camera, camera_display_mode_e mode) |
Sets the display mode. | |
int | camera_get_display_mode (camera_h camera, camera_display_mode_e *mode) |
Gets the display mode. |
Enumeration for the camera display mode.
int camera_get_display_flip | ( | camera_h | camera, |
camera_flip_e * | flip | ||
) |
Gets the display flip.
[in] | camera | The handle to the camera |
[out] | flip | The display 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_get_display_mode | ( | camera_h | camera, |
camera_display_mode_e * | mode | ||
) |
Gets the display mode.
[in] | camera | The handle to the camera |
[out] | mode | The display 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_get_display_rotation | ( | camera_h | camera, |
camera_rotation_e * | rotation | ||
) |
Gets the display rotation.
[in] | camera | The handle to the camera |
[out] | rotation | The display 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_is_display_visible | ( | camera_h | camera, |
bool * | visible | ||
) |
Gets the visible property of display.
[in] | camera | The handle to the camera |
[out] | visible | true if camera display is visible, 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_set_display_flip | ( | camera_h | camera, |
camera_flip_e | flip | ||
) |
Sets the display flip.
[in] | camera | The handle to the camera |
[in] | flip | The display 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_INVALID_OPERATION | Display type is incorrect |
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_set_display_mode | ( | camera_h | camera, |
camera_display_mode_e | mode | ||
) |
Sets the display mode.
[in] | camera | The handle to the camera |
[in] | mode | The display 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_set_display_rotation | ( | camera_h | camera, |
camera_rotation_e | rotation | ||
) |
Sets the display rotation.
[in] | camera | The handle to the camera |
[in] | rotation | The display rotation |
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_INVALID_OPERATION | Display type is incorrect |
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_set_display_visible | ( | camera_h | camera, |
bool | visible | ||
) |
Sets the visible property for display.
[in] | camera | The handle to the camera |
[in] | visible | The display visibility property |
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 |