|
|
|
@ -27,14 +27,14 @@ public: |
|
|
|
|
"-cl-fast-relaxed-math -cl-denorms-are-zero -Isensors " |
|
|
|
|
"-DFRAME_WIDTH=%d -DFRAME_HEIGHT=%d -DFRAME_STRIDE=%d -DFRAME_OFFSET=%d " |
|
|
|
|
"-DRGB_WIDTH=%d -DRGB_HEIGHT=%d -DYUV_STRIDE=%d -DUV_OFFSET=%d " |
|
|
|
|
"-DIS_AR=%d -DIS_OX=%d -DIS_OS=%d -DIS_10BIT=%d -DIS_HDR=%d -DHDR_OFFSET=%d -DIS_BGGR=%d -DVIGNETTING=%d ", |
|
|
|
|
"-DIS_AR=%d -DIS_OX=%d -DIS_OS=%d -DIS_10BIT=%d -DIS_HDR=%d -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 == cereal::FrameData::ImageSensor::AR0231, |
|
|
|
|
ci->image_sensor == cereal::FrameData::ImageSensor::OX03C10, |
|
|
|
|
ci->image_sensor == cereal::FrameData::ImageSensor::OS04C10, |
|
|
|
|
ci->mipi_format == CAM_FORMAT_MIPI_RAW_10, |
|
|
|
|
ci->hdr_offset > 0, ci->hdr_offset, ci->bggr, |
|
|
|
|
ci->hdr_offset > 0, 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); |
|
|
|
|