fix isp processing_time unit (#33964)

should be in seconds

Co-authored-by: Comma Device <device@comma.ai>
pull/33967/head
ZwX1616 6 months ago committed by GitHub
parent e0acd86ca1
commit 48fcb4dc60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/camerad/cameras/camera_common.cc

@ -114,7 +114,7 @@ bool CameraBuf::acquire(int expo_time) {
cur_frame_data.processing_time = (millis_since_boot() - start_time) / 1000.0; cur_frame_data.processing_time = (millis_since_boot() - start_time) / 1000.0;
} else { } else {
cur_yuv_buf = vipc_server->get_buffer(stream_type, cur_buf_idx); cur_yuv_buf = vipc_server->get_buffer(stream_type, cur_buf_idx);
cur_frame_data.processing_time = (double)(cur_frame_data.timestamp_end_of_isp - cur_frame_data.timestamp_eof)*1e-6; cur_frame_data.processing_time = (double)(cur_frame_data.timestamp_end_of_isp - cur_frame_data.timestamp_eof)*1e-9;
} }
VisionIpcBufExtra extra = { VisionIpcBufExtra extra = {

Loading…
Cancel
Save