      // ISO200 is minimum gain
      gain_frac = std::clamp(gain_frac, 1.0f/64, 1.0f);
  
      // linearize gain response
      // TODO: will be wrong for front camera
      // 0.125 -> 448
      // 0.25  -> 480
      // 0.5   -> 496
      // 1.0   -> 504
      // 512 - 512/(128*gain_frac)
 
</s> remove   camera_init(v, &s->rear, CAMERA_ID_IMX298, 0,
 </s> add   camera_init(v, &s->road_cam, CAMERA_ID_IMX298, 0, </s> remove       // rear camera (stats, for AE)
 </s> add       // road camera (stats, for AE) </s> remove       LOGD("rear camera bad state detected. attempting recovery from %.1f, recover state is %d", lens_true_pos, self_recover);
 </s> add       LOGD("road camera bad state detected. attempting recovery from %.1f, recover state is %d", lens_true_pos, self_recover); </s> remove       // rear camera (focus)
 </s> add       // road camera (focus) </s> remove       // front camera
 </s> add       // driver camera
    // TODO: will be wrong for driver camera
      // ISO200 is minimum gain
      gain_frac = std::clamp(gain_frac, 1.0f/64, 1.0f);
  
      // linearize gain response
    // TODO: will be wrong for driver camera
      // 0.125 -> 448
      // 0.25  -> 480
      // 0.5   -> 496
      // 1.0   -> 504
      // 512 - 512/(128*gain_frac)
keep keep keep keep 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