camerad: cast ci->image_sensor to unsigned short (#32317)

fixes 24.04 build
old-commit-hash: 6a52507e3a
pull/32199/head
Andrei Radulescu 1 year ago committed by GitHub
parent a6faeb03ce
commit 1cbb26bcc7
  1. 2
      system/camerad/cameras/camera_common.cc

@ -29,7 +29,7 @@ public:
"-DSENSOR_ID=%hu -DHDR_OFFSET=%d -DVIGNETTING=%d ",
ci->frame_width, ci->frame_height, ci->hdr_offset > 0 ? ci->frame_stride * 2 : ci->frame_stride, ci->frame_offset,
b->rgb_width, b->rgb_height, buf_width, uv_offset,
ci->image_sensor, ci->hdr_offset, s->camera_num == 1);
static_cast<unsigned short>(ci->image_sensor), ci->hdr_offset, s->camera_num == 1);
const char *cl_file = "cameras/process_raw.cl";
cl_program prg_imgproc = cl_program_from_file(context, device_id, cl_file, args);
krnl_ = CL_CHECK_ERR(clCreateKernel(prg_imgproc, "process_raw", &err));

Loading…
Cancel
Save