}
-int camera_attr_get_preview_frame_timestamp(camera_h camera, unsigned long *timestamp)
+int camera_attr_get_preview_frame_timestamp(camera_h camera, unsigned long long *timestamp)
{
camera_cli_s *pc = (camera_cli_s *)camera;
*timestamp = pc->cb_info->stream_data->timestamp_nsec;
- CAM_LOG_DEBUG("frame timestamp[%lu]", *timestamp);
+ CAM_LOG_DEBUG("frame timestamp[%llu]", *timestamp);
return CAMERA_ERROR_NONE;
}
int ret = CAMERA_ERROR_NONE;
camera_h cam_handle = (camera_h)user_data;
camera_rotation_e rotation = CAMERA_ROTATION_NONE;
- unsigned long timestamp = 0;
+ unsigned long long timestamp = 0;
camera_frame_meta_s frame_meta = {0, };
camera_status_auto_exposure_e status_ae = CAMERA_STATUS_AUTO_EXPOSURE_NONE;
camera_status_auto_white_balance_e status_awb = CAMERA_STATUS_AUTO_WHITE_BALANCE_NONE;
LOGW("get preview frame rotation failed[0x%x]", ret);
ret = camera_attr_get_preview_frame_timestamp(cam_handle, ×tamp);
- if (ret != CAMERA_ERROR_NONE)
+ if (ret == CAMERA_ERROR_NONE)
+ LOGI("rotation[%d], timestamp[%llu]", rotation, timestamp);
+ else
LOGW("get preview frame timestamp failed[0x%x]", ret);
- LOGI("rotation[%d], timestamp[%lu]", rotation, timestamp);
-
ret = camera_attr_get_preview_frame_meta(cam_handle, &frame_meta);
if (ret == CAMERA_ERROR_NONE) {
LOGD("meta %llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu%llu,%llu",
frame_meta.ts_hal, frame_meta.ts_qmf, frame_meta.ts_gst, frame_meta.td_exp,
frame_meta.ts_aux, frame_meta.td_aux, frame_meta.seqnum, frame_meta.flags);
} else {
- LOGW("get preview frame meta timestamp failed[0x%x]", ret);
+ LOGW("get preview frame meta failed[0x%x]", ret);
}
ret = camera_attr_get_preview_frame_status_auto_exposure(cam_handle, &status_ae);