diff options
Diffstat (limited to 'include/camera_internal.h')
-rw-r--r-- | include/camera_internal.h | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/include/camera_internal.h b/include/camera_internal.h index 913539d..4de519e 100644 --- a/include/camera_internal.h +++ b/include/camera_internal.h @@ -39,11 +39,35 @@ extern "C" { #define CAMERA_DEVICE_MAX ((CAMERA_DEVICE_CAMERA9 + 1) * 2) +/** + * @internal + * @brief The structure type of the camera device list. + * @since_tizen 6.0 + */ typedef struct _camera_device_list_s { unsigned int count; camera_device_s device[CAMERA_DEVICE_MAX]; } camera_device_list_s; +/** + * @internal + * @brief The structure type of the meta timestamp. + * @since_tizen 7.0 + * @remarks This is available for specific device only. + */ +typedef struct _camera_meta_timestamp_s { + unsigned long long ts_soe; + unsigned long long ts_eoe; + unsigned long long ts_sof; + unsigned long long ts_eof; + unsigned long long ts_hal; + unsigned long long ts_qmf; + unsigned long long ts_gst; + unsigned long long td_exp; + unsigned long long ts_aux; + unsigned long long td_aux; +} camera_meta_timestamp_s; + /** * @internal @@ -256,9 +280,9 @@ int camera_request_codec_config(camera_h camera); * @internal * @brief Gets the timestamp of preview frame in nano second. * @since_tizen 7.0 - * @remarks The function should be called in camera_preview_cb(),\n + * @remarks The function should be called in camera_preview_cb() or camera_media_packet_preview_cb(),\n * otherwise, it will return #CAMERA_ERROR_INVALID_OPERATION. - * @param[in] camera The handle to the camera + * @param[in] camera The handle to the camera * @param[out] timestamp The timestamp of preview frame (in nsec) * @return @c 0 on success, otherwise a negative error value * @retval #CAMERA_ERROR_NONE Successful @@ -268,6 +292,22 @@ int camera_request_codec_config(camera_h camera); int camera_attr_get_preview_frame_timestamp(camera_h camera, unsigned long *timestamp); /** + * @internal + * @brief Gets the meta timestamp of preview frame in nano second. + * @since_tizen 7.0 + * @remarks The function should be called in camera_preview_cb() or camera_media_packet_preview_cb(),\n + * otherwise, it will return #CAMERA_ERROR_INVALID_OPERATION. + * @param[in] camera The handle to the camera + * @param[out] meta_timestamp The meta timestamp of preview frame (in nsec) + * @return @c 0 on success, otherwise a negative error value + * @retval #CAMERA_ERROR_NONE Successful + * @retval #CAMERA_ERROR_INVALID_OPERATION Internal error + * @retval #CAMERA_ERROR_INVALID_PARAMETER Invalid parameter + */ +int camera_attr_get_preview_frame_meta_timestamp(camera_h camera, camera_meta_timestamp_s *meta_timestamp); + + +/** * @} */ #ifdef __cplusplus |