  const bool env_send_wide_road = getenv("SEND_WIDE_ROAD") != NULL;
  
  typedef void (*release_cb)(void *cookie, int buf_idx);
  
  typedef struct CameraInfo {
    int frame_width, frame_height;
    int frame_stride;
 
</s> remove   sensors_i2c(&s->road_cam, start_reg_array, start_reg_len, CAM_SENSOR_PACKET_OPCODE_SENSOR_CONFIG);
  sensors_i2c(&s->wide_road_cam, start_reg_array, start_reg_len, CAM_SENSOR_PACKET_OPCODE_SENSOR_CONFIG);
 </s> add  </s> remove   memcpy(buf2, tmp, sizeof(tmp));
 </s> add   memcpy(buf2, &tmp, sizeof(tmp)); </s> remove   LOGD("opened sensor");

  s->csiphy_fd = open_v4l_by_name_and_index("cam-csiphy-driver", s->camera_num);
  assert(s->csiphy_fd >= 0);
  LOGD("opened csiphy");
 </s> add   LOGD("opened sensor for %d", s->camera_num);
// for debugging
// note: ONLY_ROAD doesn't work, likely due to a mixup with wideRoad cam in the kernel
const bool env_only_driver = getenv("ONLY_DRIVER") != NULL;
const bool env_debug_frames = getenv("DEBUG_FRAMES") != NULL;

  const bool env_send_wide_road = getenv("SEND_WIDE_ROAD") != NULL;
  
// for debugging
// note: ONLY_ROAD doesn't work, likely due to a mixup with wideRoad cam in the kernel
const bool env_only_driver = getenv("ONLY_DRIVER") != NULL;
const bool env_debug_frames = getenv("DEBUG_FRAMES") != NULL;

  typedef void (*release_cb)(void *cookie, int buf_idx);
  
  typedef struct CameraInfo {
    int frame_width, frame_height;
    int frame_stride;
keep add keep keep keep keep keep
 Prepare for using the ISP (#23621)

* parse out isp packet with structs

* dsp mode

* support only driver / comments for yuv

* minor touchups

* DEBUG_FRAMES

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/camerad/cameras/camera_common.h