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

fixes 24.04 build
old-commit-hash: 6a52507e3a
This commit is contained in:
Andrei Radulescu 2024-05-02 01:00:25 +03:00 committed by GitHub
parent a6faeb03ce
commit 1cbb26bcc7
1 changed files with 1 additions and 1 deletions

View File

@ -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));