      // TODO: make lengths correct
      s->focus_bufs[i].allocate(0xb80);
      s->stats_bufs[i].allocate(0xb80);
    }
    const int width = s->rear.buf.rgb_width/NUM_SEGMENTS_X;
    const int height = s->rear.buf.rgb_height/NUM_SEGMENTS_Y;
    s->prg_rgb_laplacian = build_conv_program(device_id, ctx, width, height, 3);
    s->krnl_rgb_laplacian = CL_CHECK_ERR(clCreateKernel(s->prg_rgb_laplacian, "rgb2gray_conv2d", &err));
    // TODO: Removed CL_MEM_SVM_FINE_GRAIN_BUFFER, confirm it doesn't matter
    s->rgb_conv_roi_cl = CL_CHECK_ERR(clCreateBuffer(ctx, CL_MEM_READ_WRITE,
        width * height * 3 * sizeof(uint8_t), NULL, &err));
 
</s> remove   s->sm_front = new SubMaster({"driverState"});
 </s> add   s->sm = new SubMaster({"driverState"}); </s> remove       x_min = rhd_front ? 0 : b->rgb_width * 3 / 5;
      x_max = rhd_front ? b->rgb_width * 2 / 5 : b->rgb_width;
 </s> add       x_min = is_rhd ? 0 : b->rgb_width * 3 / 5;
      x_max = is_rhd ? b->rgb_width * 2 / 5 : b->rgb_width; </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 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;
 </s> add 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; </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) {
  const int width = s->road_cam.buf.rgb_width/NUM_SEGMENTS_X;
  const int height = s->road_cam.buf.rgb_height/NUM_SEGMENTS_Y;
      // TODO: make lengths correct
      s->focus_bufs[i].allocate(0xb80);
      s->stats_bufs[i].allocate(0xb80);
    }
  const int width = s->road_cam.buf.rgb_width/NUM_SEGMENTS_X;
  const int height = s->road_cam.buf.rgb_height/NUM_SEGMENTS_Y;
  const int width = s->road_cam.buf.rgb_width/NUM_SEGMENTS_X;
  const int height = s->road_cam.buf.rgb_height/NUM_SEGMENTS_Y;
    s->prg_rgb_laplacian = build_conv_program(device_id, ctx, width, height, 3);
    s->krnl_rgb_laplacian = CL_CHECK_ERR(clCreateKernel(s->prg_rgb_laplacian, "rgb2gray_conv2d", &err));
    // TODO: Removed CL_MEM_SVM_FINE_GRAIN_BUFFER, confirm it doesn't matter
    s->rgb_conv_roi_cl = CL_CHECK_ERR(clCreateBuffer(ctx, CL_MEM_READ_WRITE,
        width * height * 3 * sizeof(uint8_t), NULL, &err));
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