|
|
@ -987,11 +987,6 @@ void camera_autoexposure(CameraState *s, float grey_frac) { |
|
|
|
set_camera_exposure(s, grey_frac); |
|
|
|
set_camera_exposure(s, grey_frac); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void process_driver_camera(MultiCameraState *s, CameraState *c, int cnt) { |
|
|
|
|
|
|
|
common_process_driver_camera(s->sm, s->pm, c, cnt); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// called by processing_thread
|
|
|
|
// called by processing_thread
|
|
|
|
void process_road_camera(MultiCameraState *s, CameraState *c, int cnt) { |
|
|
|
void process_road_camera(MultiCameraState *s, CameraState *c, int cnt) { |
|
|
|
const CameraBuf *b = &c->buf; |
|
|
|
const CameraBuf *b = &c->buf; |
|
|
@ -1016,7 +1011,7 @@ void cameras_run(MultiCameraState *s) { |
|
|
|
LOG("-- Starting threads"); |
|
|
|
LOG("-- Starting threads"); |
|
|
|
std::vector<std::thread> threads; |
|
|
|
std::vector<std::thread> threads; |
|
|
|
threads.push_back(start_process_thread(s, &s->road_cam, process_road_camera)); |
|
|
|
threads.push_back(start_process_thread(s, &s->road_cam, process_road_camera)); |
|
|
|
threads.push_back(start_process_thread(s, &s->driver_cam, process_driver_camera)); |
|
|
|
threads.push_back(start_process_thread(s, &s->driver_cam, common_process_driver_camera)); |
|
|
|
threads.push_back(start_process_thread(s, &s->wide_road_cam, process_road_camera)); |
|
|
|
threads.push_back(start_process_thread(s, &s->wide_road_cam, process_road_camera)); |
|
|
|
|
|
|
|
|
|
|
|
// start devices
|
|
|
|
// start devices
|
|
|
|