    },
  };
  
  void camera_init(VisionIpcServer * v, CameraState *s, int camera_id, unsigned int fps, cl_device_id device_id, cl_context ctx, VisionStreamType rgb_type, VisionStreamType yuv_type) {
    assert(camera_id < ARRAYSIZE(cameras_supported));
    s->ci = cameras_supported[camera_id];
    assert(s->ci.frame_width != 0);
  
    s->camera_num = camera_id;
    s->fps = fps;
 
</s> remove   assert(camera_id < ARRAYSIZE(cameras_supported));
 </s> add   assert(camera_id < std::size(cameras_supported)); </s> remove   assert(camera_id < ARRAYSIZE(cameras_supported));
 </s> add   assert(camera_id < std::size(cameras_supported)); </s> remove   assert(camera_id < ARRAYSIZE(cameras_supported));
 </s> add   assert(camera_id < std::size(cameras_supported)); </s> remove   return sensor_write_regs(s, reg_array, ARRAYSIZE(reg_array), MSM_CAMERA_I2C_BYTE_DATA);
 </s> add   return sensor_write_regs(s, reg_array, std::size(reg_array), MSM_CAMERA_I2C_BYTE_DATA); </s> remove   int err = sensor_write_regs(s, start_reg_array, ARRAYSIZE(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA);
 </s> add   int err = sensor_write_regs(s, start_reg_array, std::size(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA);
  assert(camera_id < std::size(cameras_supported));
    },
  };
  
  void camera_init(VisionIpcServer * v, CameraState *s, int camera_id, unsigned int fps, cl_device_id device_id, cl_context ctx, VisionStreamType rgb_type, VisionStreamType yuv_type) {
  assert(camera_id < std::size(cameras_supported));
    s->ci = cameras_supported[camera_id];
    assert(s->ci.frame_width != 0);
  
    s->camera_num = camera_id;
    s->fps = fps;
keep keep keep keep replace keep keep keep keep keep
 Use std::size for element counts (#20654) 
selfdrive/camerad/cameras/camera_frame_stream.cc