    cameras_close(s);
  }
  
  void cameras_close(MultiCameraState *s) {
    camera_close(&s->rear);
    camera_close(&s->front);
    for (int i = 0; i < FRAME_BUF_COUNT; i++) {
      s->focus_bufs[i].free();
      s->stats_bufs[i].free();
    }
    CL_CHECK(clReleaseMemObject(s->rgb_conv_roi_cl));
 
</s> remove   s->rear.device = s->device;
  s->front.device = s->device;
 </s> add   s->road_cam.device = s->device;
  s->driver_cam.device = s->device; </s> remove   for (int i = 0; i < (rear ? 3 : 1); i++) {
 </s> add   for (int i = 0; i < (is_road_cam ? 3 : 1); i++) { </s> remove   s->sm_front = new SubMaster({"driverState"});
 </s> add   s->sm = new SubMaster({"driverState"}); </s> remove   s->stream_cfg.num_streams = rear ? 3 : 1;
 </s> add   s->stream_cfg.num_streams = is_road_cam ? 3 : 1; </s> remove   camera_close(&s->rear);
  camera_close(&s->front);
 </s> add   camera_close(&s->road_cam);
  camera_close(&s->driver_cam);
  camera_close(&s->road_cam);
  camera_close(&s->driver_cam);
    cameras_close(s);
  }
  
  void cameras_close(MultiCameraState *s) {
  camera_close(&s->road_cam);
  camera_close(&s->driver_cam);
  camera_close(&s->road_cam);
  camera_close(&s->driver_cam);
    for (int i = 0; i < FRAME_BUF_COUNT; i++) {
      s->focus_bufs[i].free();
      s->stats_bufs[i].free();
    }
    CL_CHECK(clReleaseMemObject(s->rgb_conv_roi_cl));
keep keep keep keep 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