|
Tizen HAL API
1.0
|
The Camera provides functions for camera devices.
#include <hal-camera.h>
The camera devices have various specifications, so it's hard to control them using single code. The camera HAL provides common abstraction interfaces to control camera devices which are different.
The Camera HAL allows creation of components required in taking pictures including:
| FUNCTION | PRE-STATE | POST-STATE | SYNC TYPE |
|---|---|---|---|
| hal_camera_init() | N/A | INITIALIZED | SYNC |
| hal_camera_deinit() | INITIALIZED | N/A | SYNC |
| hal_camera_open_device() | INITIALIZED | OPENED | SYNC |
| hal_camera_close_device() | OPENED | INITIALIZED | SYNC |
| hal_camera_start_preview() | OPENED | PREVIEWING | SYNC |
| hal_camera_stop_preview() | PREVIEWING | OPENED | SYNC |
| hal_camera_start_capture() | PREVIEWING | CAPTURING | SYNC |
| hal_camera_stop_capture() | CAPTURING | PREVIEWING | SYNC |
| hal_camera_start_record() | PREVIEWING | RECORDING | SYNC |
| hal_camera_stop_record() | RECORDING | PREVIEWING | SYNC |
| hal_camera_start_capture() | RECORDING | RECORDING_SNAPSHOT | SYNC |
| hal_camera_stop_capture() | RECORDING_SNAPSHOT | RECORDING | SYNC |
For more information on the Camera features and the macros, see HAL Camera programming guides and tutorials.
Typedefs | |
| typedef enum camera_error | camera_error_e |
| Enumeration for the camera error. | |
| typedef enum camera_state | camera_state_e |
| Enumeration for the camera state. | |
| typedef enum camera_network_state | camera_network_state_e |
| Enumeration for the camera network state. | |
| typedef struct camera_resolution | camera_resolution_s |
| The structure type of the resolution. | |
| typedef struct camera_fraction | camera_fraction_s |
| The structure type of the fraction. | |
| typedef struct camera_rectangle | camera_rectangle_s |
| The structure type of the rectangle. | |
| typedef enum camera_pixel_format | camera_pixel_format_e |
| Enumeration for the camera pixel format. | |
| typedef enum camera_focus_state | camera_focus_state_e |
| Enumeration for the focus state. | |
| typedef enum camera_facing_direction | camera_facing_direction_e |
| Enumeration for the facing direction of camera device. | |
| typedef enum camera_rotation | camera_rotation_e |
| Enumeration for the camera rotation. | |
| typedef enum camera_status_auto_exposure | camera_status_auto_exposure_e |
| Enumeration for the auto exposure status. | |
| typedef enum camera_status_auto_white_balance | camera_status_auto_white_balance_e |
| Enumeration for the auto white balance status. | |
| typedef enum camera_flip | camera_flip_e |
| Enumeration for the camera flip. | |
| typedef struct camera_plane | camera_plane_s |
| The structure type of the camera plane. | |
| typedef struct camera_buffer | camera_buffer_s |
| The structure type of the camera buffer. | |
| typedef struct camera_metadata | camera_metadata_s |
| The structure type of the camera metadata. | |
| typedef struct camera_format | camera_format_s |
| The structure type of the camera format. | |
| typedef enum camera_focus_mode | camera_focus_mode_e |
| Enumeration for the focus mode. | |
| typedef enum camera_focus_range | camera_focus_range_e |
| Enumeration for the focus range. | |
| typedef enum camera_white_balance | camera_white_balance_e |
| Enumeration for the white balance. | |
| typedef enum camera_effect | camera_effect_e |
| Enumeration for the effect. | |
| typedef enum camera_scene_mode | camera_scene_mode_e |
| Enumeration for the scene mode. | |
| typedef enum camera_exposure_mode | camera_exposure_mode_e |
| Enumeration for the exposure mode. | |
| typedef enum camera_shot_mode | camera_shot_mode_e |
| Enumeration for the shot mode. | |
| typedef enum camera_flash_mode | camera_flash_mode_e |
| Enumeration for the flash mode. | |
| typedef enum camera_face_detection | camera_face_detection_e |
| Enumeration for the face detection. | |
| typedef enum camera_ptz_type | camera_ptz_type_e |
| Enumeration for the PTZ(Pan Tilt Zoom) type. | |
| typedef enum camera_command | camera_command_e |
| Enumeration for the camera command. | |
| typedef struct camera_batch_command_control | camera_batch_command_control_s |
| The structure type of batch command. | |
| typedef struct camera_pixel_format_list | camera_format_list_s |
| The structure type of the format list. | |
| typedef struct camera_resolution_list | camera_resolution_list_s |
| The structure type of the resolution list. | |
| typedef struct camera_fps_list | camera_fps_list_s |
| The structure type of the fps list. | |
| typedef struct camera_device_info | camera_device_info_s |
| The structure type of the camera device information. | |
| typedef struct camera_device_info_list | camera_device_info_list_s |
| The structure type of the camera device information list. | |
| typedef struct camera_device_capability_resolution | camera_device_capability_resolution_s |
| The structure type of the camera device capability resolution. | |
| typedef struct camera_device_capability_format | camera_device_capability_format_s |
| The structure type of the camera device capability format. | |
| typedef struct camera_device_capability | camera_device_capability_s |
| The structure type of the camera device capability. | |
| typedef struct camera_device_capability_list | camera_device_capability_list_s |
| The structure type of the camera device capability list. | |
| typedef enum camera_message_type | camera_message_type_e |
| Enumeration for the camera message type. | |
| typedef struct camera_message | camera_message_s |
| The structure type of the camera message. | |
| typedef int(* | hal_camera_message_cb )(camera_message_s *message, void *user_data) |
| Callback function for notification from camera HAL. | |
| typedef int(* | hal_camera_preview_frame_cb )(camera_buffer_s *buffer, camera_metadata_s *meta, void *user_data) |
| Callback function for captured preview frame from camera device. | |
| typedef int(* | hal_camera_extra_preview_frame_cb )(camera_buffer_s *buffer, camera_metadata_s *meta, int stream_id, void *user_data) |
| Callback function for extra preview frame from camera device. | |
| typedef int(* | hal_camera_video_frame_cb )(camera_buffer_s *buffer, camera_metadata_s *meta, void *user_data) |
| Callback function for captured video buffer from camera device. | |
| typedef int(* | hal_camera_capture_cb )(camera_buffer_s *main, camera_buffer_s *postview, camera_buffer_s *thumbnail, void *user_data) |
| Callback function for captured still image from camera device. | |
| typedef struct _hal_backend_media_camera_funcs | hal_backend_camera_funcs |
| The structure type of the camera HAL functions. | |
Defines | |
| #define | BUFFER_PLANE_MAX 4 |
| The maximum number of planes in buffer. | |
| #define | DEVICE_COUNT_MAX 16 |
| The maximum number of device count. | |
| #define | RESOLUTION_COUNT_MAX 32 |
| The maximum number of resolution count. | |
| #define | FPS_COUNT_MAX 16 |
| The maximum number of FPS count. | |
| #define | DEVICE_NAME_LENGTH_MAX 16 |
| The maximum length of device name. | |
| #define | DEVICE_NODE_PATH_LENGTH_MAX 16 |
| The maximum length of device node path. | |
| struct camera_resolution |
The structure type of the resolution.
Data Fields | |
| uint32_t | width |
| uint32_t | height |
| uint32_t camera_resolution::height |
The height of resolution
| uint32_t camera_resolution::width |
The width of resolution
| struct camera_fraction |
The structure type of the fraction.
Data Fields | |
| int | numerator |
| int | denominator |
The denominator of fraction
The numerator of fraction
| struct camera_rectangle |
The structure type of the rectangle.
Data Fields | |
| int | x |
| int | y |
| uint32_t | width |
| uint32_t | height |
| uint32_t camera_rectangle::height |
The height of rectangle
| uint32_t camera_rectangle::width |
The width of rectangle
The x coordinate of rectangle
The y coordinate of rectangle
| struct camera_plane |
The structure type of the camera plane.
Data Fields | |
| unsigned char * | data |
| uint32_t | align_width |
| uint32_t | align_height |
| uint32_t | size |
| uint32_t | bytesused |
| uint32_t camera_plane::align_height |
The aligned height of plane
| uint32_t camera_plane::align_width |
The aligned width of plane
| uint32_t camera_plane::bytesused |
The number of bytes occupied by data
| unsigned char* camera_plane::data |
The data pointer of plane
| uint32_t camera_plane::size |
The size of plane
| struct camera_buffer |
The structure type of the camera buffer.
Data Fields | |
| int | index |
| camera_pixel_format_e | format |
| camera_resolution_s | resolution |
| uint32_t | total_size |
| uint32_t | num_planes |
| camera_plane_s | planes [4] |
| uint32_t | num_bos |
| void * | bos [4] |
| void* camera_buffer::bos[4] |
The bo(buffer object for TBM) array
The format of buffer
The index of buffer
| uint32_t camera_buffer::num_bos |
The number of bo(buffer object for TBM)
| uint32_t camera_buffer::num_planes |
The number of planes in buffer
The planes of buffer
The resolution of buffer
| uint32_t camera_buffer::total_size |
The total size of buffer
| struct camera_metadata |
The structure type of the camera metadata.
The F-number for aperture
The APEX for aperture
The brightness
The color space
The component configuration
The resolution of EXIF image
The exposure time
The face direction
The flip
The focal length
The focus state
The flag which indicates whether it's delta frame or not
The flag which indicates whether it's flashed or not
The ISO
The metering mode
The rotation
The shutter speed
The status for auto exposure
The status for auto white balance
| struct camera_format |
The structure type of the camera format.
The format of capture stream
| uint32_t camera_format::capture_quality |
The quality of captured image
The resolution of capture stream
| uint32_t camera_format::stream_bitrate |
The bitrate of stream
The format of stream
| uint32_t camera_format::stream_fps |
The FPS of stream
The resolution of stream
The rotation of stream
| struct camera_batch_command_control |
The structure type of batch command.
Data Fields | |
| uint64_t | command_set_flag |
| camera_white_balance_e | white_balance |
| int | iso |
| int | contrast |
| int | saturation |
| int | hue |
| int | sharpness |
| camera_effect_e | effect |
| camera_scene_mode_e | scene_mode |
| camera_exposure_mode_e | exposure_mode |
| int | exposure |
| camera_rotation_e | rotation |
| camera_flip_e | flip |
| camera_focus_mode_e | focus_mode |
| camera_focus_range_e | focus_range |
| camera_exposure_mode_e | shot_mode |
| int | anti_shake |
| camera_rectangle_s | focus_area |
| int | digital_zoom |
| int | optical_zoom |
| int | recording_hint |
| int | wdr |
| camera_fraction_s | shutter_speed |
| camera_flash_mode_e | flash_mode |
| camera_face_detection_e | face_detection |
| int | bitrate |
| int | ptz_type |
| int | pan |
| int | tilt |
| int | brightness |
| int | gop_interval |
| int | capture_count |
| int | capture_interval |
| int | flash_brightness |
| int | focus_level |
value for anti shake
value for bitrate
value for brightness
value for capture count of continuous capture
value for capture interval of continuous capture
flag for updating commands
value for contrast
value for digital zoom
value for effect
value for exposure
value for exposure mode
value for face detection
value for brightness of flash
value for flash mode
value for flip
value for focus area
value for level of manual focus
value for focus mode
value for focus range
value for GOP(Group Of Pictures) interval
value for hue
value for ISO
value for optical zoom
value for pan
value for PTZ(Pan Tilt Zoom) type
value for recording hint
value for rotation
value for saturation
value for scene mode
value for sharpness
value for shot mode
value for shutter speed
value for tilt
value for WDR(Wide Dynamic Range)
value for white balance
| struct camera_pixel_format_list |
The structure type of the format list.
Data Fields | |
| uint32_t | count |
| camera_pixel_format_e | formats [CAMERA_PIXEL_FORMAT_MAX] |
| uint32_t camera_pixel_format_list::count |
The count of format
| camera_pixel_format_e camera_pixel_format_list::formats[CAMERA_PIXEL_FORMAT_MAX] |
The format list
| struct camera_resolution_list |
The structure type of the resolution list.
Data Fields | |
| uint32_t | count |
| camera_resolution_s | resolutions [32] |
| uint32_t camera_resolution_list::count |
The count of resolution
The resolution list
| struct camera_fps_list |
The structure type of the fps list.
Data Fields | |
| uint32_t | count |
| int | fps [16] |
| uint32_t camera_fps_list::count |
The count of FPS
| int camera_fps_list::fps[16] |
The FPS list
| struct camera_device_info |
The structure type of the camera device information.
Data Fields | |
| uint32_t | index |
| char | name [16] |
| char | node_path [16] |
| camera_facing_direction_e | facing_direction |
| camera_format_list_s | format_list |
| camera_resolution_list_s | preview_list |
| camera_resolution_list_s | capture_list |
| camera_resolution_list_s | video_list |
| camera_fps_list_s | preview_fps_list [32] |
| camera_fps_list_s | video_fps_list [32] |
The supported capture resolution list of device
The facing direction of device
The supported format list of device
| uint32_t camera_device_info::index |
The index of device
| char camera_device_info::name[16] |
The name of device
| char camera_device_info::node_path[16] |
The node path of device
The supported preview FPS list of device
The supported preview resolution list of device
The supported video FPS list of device
The supported video resolution list of device
| struct camera_device_info_list |
The structure type of the camera device information list.
Data Fields | |
| uint32_t | count |
| camera_device_info_s | device_info [16] |
| uint32_t camera_device_info_list::count |
The count of devices
The device list
| struct camera_device_capability_resolution |
The structure type of the camera device capability resolution.
Data Fields | |
| uint32_t | width |
| uint32_t | height |
| int | default_fps_index |
| camera_fps_list_s | fps_list |
The default index of FPS list
The supported FPS list with width and height
The height of resolution
The width of resolution
| struct camera_device_capability_format |
The structure type of the camera device capability format.
Data Fields | |
| camera_pixel_format_e | pixel_format |
| uint32_t | resolution_count |
| int | default_resolution_index |
| camera_device_capability_resolution_s * | resolution [32] |
The default index of capability resolution list
The pixel format
The supported capability resolution list with pixel_format
The supported capability resolution count
| struct camera_device_capability |
The structure type of the camera device capability.
Data Fields | |
| int | device_index |
| uint32_t | format_count |
| int | default_format_index |
| camera_device_capability_format_s * | format [CAMERA_PIXEL_FORMAT_MAX] |
The default index of supported format list
The index of device
| camera_device_capability_format_s* camera_device_capability::format[CAMERA_PIXEL_FORMAT_MAX] |
The supported capability format list with device_index
The count of supported format
| struct camera_device_capability_list |
The structure type of the camera device capability list.
Data Fields | |
| uint32_t | device_count |
| camera_device_capability_s * | capability [16] |
The device capability list
The count of devices
| struct camera_message |
The structure type of the camera message.
Data Fields | |
| camera_message_type_e | type |
| camera_focus_state_e | focus_state |
| uint32_t | hdr_progress |
| camera_error_e | error_code |
| camera_network_state_e | network_state |
The error code
The state of focus
| uint32_t camera_message::hdr_progress |
The progress of HDR
The state of network camera
The type of message
| struct _hal_backend_media_camera_funcs |
The structure type of the camera HAL functions.
Data Fields | |
| int(* | init )(void **camera_handle) |
| int(* | deinit )(void *camera_handle) |
| int(* | get_device_info_list )(camera_device_info_list_s *device_info_list) |
| int(* | open_device )(void *camera_handle, int device_index) |
| int(* | open_device_ext )(void *camera_handle, const char *device_name) |
| int(* | close_device )(void *camera_handle) |
| int(* | add_message_callback )(void *camera_handle, hal_camera_message_cb callback, void *user_data, uint32_t *cb_id) |
| int(* | remove_message_callback )(void *camera_handle, uint32_t cb_id) |
| int(* | set_preview_stream_format )(void *camera_handle, camera_format_s *format) |
| int(* | get_preview_stream_format )(void *camera_handle, camera_format_s *format) |
| int(* | set_user_buffer_fd )(void *camera_handle, int *fds, int number) |
| int(* | start_preview )(void *camera_handle, hal_camera_preview_frame_cb callback, void *user_data) |
| int(* | release_preview_buffer )(void *camera_handle, int buffer_index) |
| int(* | stop_preview )(void *camera_handle) |
| int(* | start_auto_focus )(void *camera_handle) |
| int(* | stop_auto_focus )(void *camera_handle) |
| int(* | start_capture )(void *camera_handle, hal_camera_capture_cb callback, void *user_data) |
| int(* | stop_capture )(void *camera_handle) |
| int(* | set_video_stream_format )(void *camera_handle, camera_format_s *format) |
| int(* | get_video_stream_format )(void *camera_handle, camera_format_s *format) |
| int(* | start_record )(void *camera_handle, hal_camera_video_frame_cb callback, void *user_data) |
| int(* | release_video_buffer )(void *camera_handle, int buffer_index) |
| int(* | stop_record )(void *camera_handle) |
| int(* | set_command )(void *camera_handle, camera_command_e command, void *value) |
| int(* | get_command )(void *camera_handle, camera_command_e command, void **value) |
| int(* | set_batch_command )(void *camera_handle, camera_batch_command_control_s *batch_command, uint64_t *error_command) |
| int(* | set_extra_preview_frame_cb )(void *camera_handle, hal_camera_extra_preview_frame_cb callback, void *user_data) |
| int(* | unset_extra_preview_frame_cb )(void *camera_handle) |
| int(* | release_extra_preview_buffer )(void *camera_handle, int stream_id, int buffer_index) |
| int(* | set_extra_preview_stream_format )(void *camera_handle, int stream_id, camera_format_s *format) |
| int(* | get_extra_preview_stream_format )(void *camera_handle, int stream_id, camera_format_s *format) |
| int(* | set_extra_preview_bitrate )(void *camera_handle, int stream_id, int bitrate) |
| int(* | get_extra_preview_bitrate )(void *camera_handle, int stream_id, int *bitrate) |
| int(* | set_extra_preview_gop_interval )(void *camera_handle, int stream_id, int interval) |
| int(* | get_extra_preview_gop_interval )(void *camera_handle, int stream_id, int *interval) |
| int(* _hal_backend_media_camera_funcs::add_message_callback)(void *camera_handle, hal_camera_message_cb callback, void *user_data, uint32_t *cb_id) |
Remove message callback
| int(* _hal_backend_media_camera_funcs::close_device)(void *camera_handle) |
Add message callback
| int(* _hal_backend_media_camera_funcs::deinit)(void *camera_handle) |
Get list of device information
| int(* _hal_backend_media_camera_funcs::get_command)(void *camera_handle, camera_command_e command, void **value) |
Set batch command for multiple settings
| int(* _hal_backend_media_camera_funcs::get_device_info_list)(camera_device_info_list_s *device_info_list) |
Open device
| int(* _hal_backend_media_camera_funcs::get_extra_preview_bitrate)(void *camera_handle, int stream_id, int *bitrate) |
Set GOP(Group Of Pictures) interval for extra preview stream
| int(* _hal_backend_media_camera_funcs::get_extra_preview_gop_interval)(void *camera_handle, int stream_id, int *interval) |
Get list of device capability (
| int(* _hal_backend_media_camera_funcs::get_extra_preview_stream_format)(void *camera_handle, int stream_id, camera_format_s *format) |
Set bitrate for extra preview stream
| int(* _hal_backend_media_camera_funcs::get_preview_stream_format)(void *camera_handle, camera_format_s *format) |
Set buffer fd which is allocated by user
| int(* _hal_backend_media_camera_funcs::get_video_stream_format)(void *camera_handle, camera_format_s *format) |
Start record
| int(* _hal_backend_media_camera_funcs::init)(void **camera_handle) |
< Initialize HAL backend handle Deinitialize HAL backend handle
| int(* _hal_backend_media_camera_funcs::open_device)(void *camera_handle, int device_index) |
Open device for extension
| int(* _hal_backend_media_camera_funcs::open_device_ext)(void *camera_handle, const char *device_name) |
Close device
| int(* _hal_backend_media_camera_funcs::release_extra_preview_buffer)(void *camera_handle, int stream_id, int buffer_index) |
Set format for extra preview stream
| int(* _hal_backend_media_camera_funcs::release_preview_buffer)(void *camera_handle, int buffer_index) |
Stop preview
| int(* _hal_backend_media_camera_funcs::release_video_buffer)(void *camera_handle, int buffer_index) |
Stop record
| int(* _hal_backend_media_camera_funcs::remove_message_callback)(void *camera_handle, uint32_t cb_id) |
Set format for preview stream
| int(* _hal_backend_media_camera_funcs::set_batch_command)(void *camera_handle, camera_batch_command_control_s *batch_command, uint64_t *error_command) |
Set preview callback for extra stream
| int(* _hal_backend_media_camera_funcs::set_command)(void *camera_handle, camera_command_e command, void *value) |
Get command for various settings
| int(* _hal_backend_media_camera_funcs::set_extra_preview_bitrate)(void *camera_handle, int stream_id, int bitrate) |
Get bitrate for extra preview stream
| int(* _hal_backend_media_camera_funcs::set_extra_preview_frame_cb)(void *camera_handle, hal_camera_extra_preview_frame_cb callback, void *user_data) |
Unset preview callback for extra stream
| int(* _hal_backend_media_camera_funcs::set_extra_preview_gop_interval)(void *camera_handle, int stream_id, int interval) |
Get GOP(Group Of Pictures) interval for extra preview stream
| int(* _hal_backend_media_camera_funcs::set_extra_preview_stream_format)(void *camera_handle, int stream_id, camera_format_s *format) |
Get format for extra preview stream
| int(* _hal_backend_media_camera_funcs::set_preview_stream_format)(void *camera_handle, camera_format_s *format) |
Get format for preview stream
| int(* _hal_backend_media_camera_funcs::set_user_buffer_fd)(void *camera_handle, int *fds, int number) |
Start preview
| int(* _hal_backend_media_camera_funcs::set_video_stream_format)(void *camera_handle, camera_format_s *format) |
Get format for video stream
| int(* _hal_backend_media_camera_funcs::start_auto_focus)(void *camera_handle) |
Stop auto focusing
| int(* _hal_backend_media_camera_funcs::start_capture)(void *camera_handle, hal_camera_capture_cb callback, void *user_data) |
Stop capture
| int(* _hal_backend_media_camera_funcs::start_preview)(void *camera_handle, hal_camera_preview_frame_cb callback, void *user_data) |
Release preview buffer
| int(* _hal_backend_media_camera_funcs::start_record)(void *camera_handle, hal_camera_video_frame_cb callback, void *user_data) |
Release video buffer
| int(* _hal_backend_media_camera_funcs::stop_auto_focus)(void *camera_handle) |
Start capture
| int(* _hal_backend_media_camera_funcs::stop_capture)(void *camera_handle) |
Set format for video stream
| int(* _hal_backend_media_camera_funcs::stop_preview)(void *camera_handle) |
Start auto focusing
| int(* _hal_backend_media_camera_funcs::stop_record)(void *camera_handle) |
Set command for various settings
| int(* _hal_backend_media_camera_funcs::unset_extra_preview_frame_cb)(void *camera_handle) |
Release preview buffer for extra stream
| #define BUFFER_PLANE_MAX 4 |
The maximum number of planes in buffer.
| #define DEVICE_COUNT_MAX 16 |
The maximum number of device count.
| #define DEVICE_NAME_LENGTH_MAX 16 |
The maximum length of device name.
| #define DEVICE_NODE_PATH_LENGTH_MAX 16 |
The maximum length of device node path.
| #define FPS_COUNT_MAX 16 |
The maximum number of FPS count.
| #define RESOLUTION_COUNT_MAX 32 |
The maximum number of resolution count.
| typedef struct camera_batch_command_control camera_batch_command_control_s |
The structure type of batch command.
| typedef struct camera_buffer camera_buffer_s |
The structure type of the camera buffer.
| typedef enum camera_command camera_command_e |
Enumeration for the camera command.
| typedef struct camera_device_capability_format camera_device_capability_format_s |
The structure type of the camera device capability format.
| typedef struct camera_device_capability_list camera_device_capability_list_s |
The structure type of the camera device capability list.
The structure type of the camera device capability resolution.
| typedef struct camera_device_capability camera_device_capability_s |
The structure type of the camera device capability.
| typedef struct camera_device_info_list camera_device_info_list_s |
The structure type of the camera device information list.
| typedef struct camera_device_info camera_device_info_s |
The structure type of the camera device information.
| typedef enum camera_effect camera_effect_e |
Enumeration for the effect.
| typedef enum camera_error camera_error_e |
Enumeration for the camera error.
| typedef enum camera_exposure_mode camera_exposure_mode_e |
Enumeration for the exposure mode.
| typedef enum camera_face_detection camera_face_detection_e |
Enumeration for the face detection.
| typedef enum camera_facing_direction camera_facing_direction_e |
Enumeration for the facing direction of camera device.
| typedef enum camera_flash_mode camera_flash_mode_e |
Enumeration for the flash mode.
| typedef enum camera_flip camera_flip_e |
Enumeration for the camera flip.
| typedef enum camera_focus_mode camera_focus_mode_e |
Enumeration for the focus mode.
| typedef enum camera_focus_range camera_focus_range_e |
Enumeration for the focus range.
| typedef enum camera_focus_state camera_focus_state_e |
Enumeration for the focus state.
| typedef struct camera_pixel_format_list camera_format_list_s |
The structure type of the format list.
| typedef struct camera_format camera_format_s |
The structure type of the camera format.
| typedef struct camera_fps_list camera_fps_list_s |
The structure type of the fps list.
| typedef struct camera_fraction camera_fraction_s |
The structure type of the fraction.
| typedef struct camera_message camera_message_s |
The structure type of the camera message.
| typedef enum camera_message_type camera_message_type_e |
Enumeration for the camera message type.
| typedef struct camera_metadata camera_metadata_s |
The structure type of the camera metadata.
| typedef enum camera_network_state camera_network_state_e |
Enumeration for the camera network state.
| typedef enum camera_pixel_format camera_pixel_format_e |
Enumeration for the camera pixel format.
| typedef struct camera_plane camera_plane_s |
The structure type of the camera plane.
| typedef enum camera_ptz_type camera_ptz_type_e |
Enumeration for the PTZ(Pan Tilt Zoom) type.
| typedef struct camera_rectangle camera_rectangle_s |
The structure type of the rectangle.
| typedef struct camera_resolution_list camera_resolution_list_s |
The structure type of the resolution list.
| typedef struct camera_resolution camera_resolution_s |
The structure type of the resolution.
| typedef enum camera_rotation camera_rotation_e |
Enumeration for the camera rotation.
| typedef enum camera_scene_mode camera_scene_mode_e |
Enumeration for the scene mode.
| typedef enum camera_shot_mode camera_shot_mode_e |
Enumeration for the shot mode.
| typedef enum camera_state camera_state_e |
Enumeration for the camera state.
| typedef enum camera_status_auto_exposure camera_status_auto_exposure_e |
Enumeration for the auto exposure status.
Enumeration for the auto white balance status.
| typedef enum camera_white_balance camera_white_balance_e |
Enumeration for the white balance.
| typedef struct _hal_backend_media_camera_funcs hal_backend_camera_funcs |
The structure type of the camera HAL functions.
| typedef int(* hal_camera_capture_cb)(camera_buffer_s *main, camera_buffer_s *postview, camera_buffer_s *thumbnail, void *user_data) |
Callback function for captured still image from camera device.
| [in] | main | The main image data |
| [in] | postview | The image data of the postview (it could be NULL if the available data does not exist) |
| [in] | thumbnail | The image data of the thumbnail (it could be NULL if the available data does not exist) |
| [in] | user_data | The user data passed from the callback registration function |
| typedef int(* hal_camera_extra_preview_frame_cb)(camera_buffer_s *buffer, camera_metadata_s *meta, int stream_id, void *user_data) |
Callback function for extra preview frame from camera device.
| [in] | buffer | The extra preview frame |
| [in] | meta | The meta data for the extra preview frame |
| [in] | stream_id | The id of extra preview stream |
| [in] | user_data | The user data for callback |
| typedef int(* hal_camera_message_cb)(camera_message_s *message, void *user_data) |
Callback function for notification from camera HAL.
| [in] | message | The message from camera HAL |
| [in] | user_data | The user data for callback |
| typedef int(* hal_camera_preview_frame_cb)(camera_buffer_s *buffer, camera_metadata_s *meta, void *user_data) |
Callback function for captured preview frame from camera device.
| [in] | buffer | The preview frame |
| [in] | meta | The meta data for the preview frame |
| [in] | user_data | The user data for callback |
| typedef int(* hal_camera_video_frame_cb)(camera_buffer_s *buffer, camera_metadata_s *meta, void *user_data) |
Callback function for captured video buffer from camera device.
| [in] | buffer | The video buffer |
| [in] | meta | The meta data for the video frame |
| [in] | user_data | The user data for callback |
| enum camera_command |
Enumeration for the camera command.
| enum camera_effect |
Enumeration for the effect.
| enum camera_error |
Enumeration for the camera error.
| enum camera_exposure_mode |
Enumeration for the exposure mode.
| enum camera_flash_mode |
Enumeration for the flash mode.
| enum camera_flip |
| enum camera_focus_mode |
| enum camera_focus_range |
| enum camera_focus_state |
| enum camera_message_type |
Enumeration for the camera message type.
| enum camera_network_state |
| enum camera_pixel_format |
Enumeration for the camera pixel format.
| enum camera_ptz_type |
| enum camera_rotation |
| enum camera_scene_mode |
Enumeration for the scene mode.
| enum camera_shot_mode |
| enum camera_state |
Enumeration for the camera state.
| enum camera_white_balance |
Enumeration for the white balance.