    camera_state = s;
    frame_buf_count = frame_cnt;
  
    // RAW frame
    frame_size = ci->frame_height * ci->frame_stride;
    camera_bufs = std::make_unique<VisionBuf[]>(frame_buf_count);
    camera_bufs_metadata = std::make_unique<FrameMetadata[]>(frame_buf_count);
  
    for (int i = 0; i < frame_buf_count; i++) {
      camera_bufs[i].allocate(frame_size);
 
</s> remove   cur_rgb_idx = cur_rgb_buf->idx;
 </s> add  </s> remove   cur_yuv_idx = cur_yuv_buf->idx;
  yuv_metas[cur_yuv_idx] = frame_data;
 </s> add   yuv_metas[cur_yuv_buf->idx] = frame_data; </s> remove     assert(cur_rgb_buf->len >= frame_size);
 </s> add  </s> remove   int cur_yuv_idx, cur_rgb_idx;
 </s> add  </s> remove   size_t yuv_buf_size;
 </s> add 
  const int frame_size = ci->frame_height * ci->frame_stride;
    camera_state = s;
    frame_buf_count = frame_cnt;
  
    // RAW frame
  const int frame_size = ci->frame_height * ci->frame_stride;
    camera_bufs = std::make_unique<VisionBuf[]>(frame_buf_count);
    camera_bufs_metadata = std::make_unique<FrameMetadata[]>(frame_buf_count);
  
    for (int i = 0; i < frame_buf_count; i++) {
      camera_bufs[i].allocate(frame_size);
keep keep keep keep replace keep keep keep keep keep
 CameraBuf: removed unused variables (#19735) 
selfdrive/camerad/cameras/camera_common.cc