    LOG("*** open front ***");
    s->front.ss[0].bufs = s->front.buf.camera_bufs.get();
    camera_open(&s->front, false);
  
    LOG("*** open rear ***");
    s->rear.ss[0].bufs = s->rear.buf.camera_bufs.get();
    s->rear.ss[1].bufs = s->focus_bufs;
    s->rear.ss[2].bufs = s->stats_bufs;
    camera_open(&s->rear, true);
  
    if (getenv("CAMERA_TEST")) {
      cameras_close(s);
      exit(0);
    }
 
</s> remove   LOG("*** open front ***");
  s->front.ss[0].bufs = s->front.buf.camera_bufs.get();
  camera_open(&s->front, false);
 </s> add   LOG("*** open driver camera ***");
  s->driver_cam.ss[0].bufs = s->driver_cam.buf.camera_bufs.get();
  camera_open(&s->driver_cam, false); </s> remove   if (rear) {
 </s> add   if (is_road_cam) { </s> remove       // rear camera
 </s> add       // road camera </s> remove       // front camera
 </s> add       // driver camera </s> remove   } else if (s->front.camera_id == CAMERA_ID_S5K3P8SP) {
    // init front camera
 </s> add   } else if (s->driver_cam.camera_id == CAMERA_ID_S5K3P8SP) {
    // init driver camera
  LOG("*** open road camera ***");
  s->road_cam.ss[0].bufs = s->road_cam.buf.camera_bufs.get();
  s->road_cam.ss[1].bufs = s->focus_bufs;
  s->road_cam.ss[2].bufs = s->stats_bufs;
  camera_open(&s->road_cam, true);
    LOG("*** open front ***");
    s->front.ss[0].bufs = s->front.buf.camera_bufs.get();
    camera_open(&s->front, false);
  
  LOG("*** open road camera ***");
  s->road_cam.ss[0].bufs = s->road_cam.buf.camera_bufs.get();
  s->road_cam.ss[1].bufs = s->focus_bufs;
  s->road_cam.ss[2].bufs = s->stats_bufs;
  camera_open(&s->road_cam, true);
  LOG("*** open road camera ***");
  s->road_cam.ss[0].bufs = s->road_cam.buf.camera_bufs.get();
  s->road_cam.ss[1].bufs = s->focus_bufs;
  s->road_cam.ss[2].bufs = s->stats_bufs;
  camera_open(&s->road_cam, true);
  LOG("*** open road camera ***");
  s->road_cam.ss[0].bufs = s->road_cam.buf.camera_bufs.get();
  s->road_cam.ss[1].bufs = s->focus_bufs;
  s->road_cam.ss[2].bufs = s->stats_bufs;
  camera_open(&s->road_cam, true);
  LOG("*** open road camera ***");
  s->road_cam.ss[0].bufs = s->road_cam.buf.camera_bufs.get();
  s->road_cam.ss[1].bufs = s->focus_bufs;
  s->road_cam.ss[2].bufs = s->stats_bufs;
  camera_open(&s->road_cam, true);
  LOG("*** open road camera ***");
  s->road_cam.ss[0].bufs = s->road_cam.buf.camera_bufs.get();
  s->road_cam.ss[1].bufs = s->focus_bufs;
  s->road_cam.ss[2].bufs = s->stats_bufs;
  camera_open(&s->road_cam, true);
  
    if (getenv("CAMERA_TEST")) {
      cameras_close(s);
      exit(0);
    }
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 camerad: rename variables&functions to follow new convention (#20096)

* rename CameraState variables to follow new convention

* continue

* rename camera_process functions

* qcom:rename exposure related variables

* continue

* update commments

* bool real -> bool is_road_cam

* rename sm_front -> sm

* remove paramater tname from start_process_thread

* rename rhd_front to is_rhd

* remove unused varialble name from struct CameraInfo

* rename env_send_xxx

* rename cap_front to cap_driver,cap_rear to cap_road

* rename xxx_camera_process to process_xxx_camera

* update snapshot.py 
selfdrive/camerad/cameras/camera_qcom.cc