  #define LOG_CAMERA_ID_ECAMERA 2
  #define LOG_CAMERA_ID_QCAMERA 3
  #define LOG_CAMERA_ID_MAX 4
  
  const bool env_send_front = getenv("SEND_FRONT") != NULL;
  const bool env_send_rear = getenv("SEND_REAR") != NULL;
  const bool env_send_wide = getenv("SEND_WIDE") != NULL;
  
  typedef void (*release_cb)(void *cookie, int buf_idx);
  
  typedef struct CameraInfo {
    const char* name;
 
</s> remove   const char* name;
 </s> add  </s> remove   static const bool rhd_front = Params().read_db_bool("IsRHD");
 </s> add   static const bool is_rhd = Params().read_db_bool("IsRHD"); </s> remove void common_camera_process_front(SubMaster *sm, PubMaster *pm, CameraState *c, int cnt) {
 </s> add void common_process_driver_camera(SubMaster *sm, PubMaster *pm, CameraState *c, int cnt) { </s> remove std::thread start_process_thread(MultiCameraState *cameras, const char *tname,
                                 CameraState *cs, process_thread_cb callback) {
  return std::thread(processing_thread, cameras, tname, cs, callback);
 </s> add std::thread start_process_thread(MultiCameraState *cameras, CameraState *cs, process_thread_cb callback) {
  return std::thread(processing_thread, cameras, cs, callback); </s> remove     rear_op = rear_exp.load();
    if (rear_op.op_id != rear_op_id_last) {
      do_autoexposure(&s->rear, rear_op.grey_frac);
      do_autofocus(&s->rear, &sm);
      rear_op_id_last = rear_op.op_id;
 </s> add     road_cam_op = road_cam_exp.load();
    if (road_cam_op.op_id != last_road_cam_op_id) {
      do_autoexposure(&s->road_cam, road_cam_op.grey_frac);
      do_autofocus(&s->road_cam, &sm);
      last_road_cam_op_id = road_cam_op.op_id;
const bool env_send_driver = getenv("SEND_DRIVER") != NULL;
const bool env_send_road = getenv("SEND_ROAD") != NULL;
const bool env_send_wide_road = getenv("SEND_WIDE_ROAD") != NULL;
  #define LOG_CAMERA_ID_ECAMERA 2
  #define LOG_CAMERA_ID_QCAMERA 3
  #define LOG_CAMERA_ID_MAX 4
  
const bool env_send_driver = getenv("SEND_DRIVER") != NULL;
const bool env_send_road = getenv("SEND_ROAD") != NULL;
const bool env_send_wide_road = getenv("SEND_WIDE_ROAD") != NULL;
const bool env_send_driver = getenv("SEND_DRIVER") != NULL;
const bool env_send_road = getenv("SEND_ROAD") != NULL;
const bool env_send_wide_road = getenv("SEND_WIDE_ROAD") != NULL;
const bool env_send_driver = getenv("SEND_DRIVER") != NULL;
const bool env_send_road = getenv("SEND_ROAD") != NULL;
const bool env_send_wide_road = getenv("SEND_WIDE_ROAD") != NULL;
  
  typedef void (*release_cb)(void *cookie, int buf_idx);
  
  typedef struct CameraInfo {
    const char* name;
keep keep keep keep 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_common.h