intel / libxcam

libXCam is a project for extended camera(not limited in camera) features and focus on image quality improvement and video analysis. There are lots features supported in image pre-processing, image post-processing and smart analysis. This library makes GPU/CPU/ISP working together to improve image quality. OpenCL is used to improve performance in different platforms.
Other
589 stars 229 forks source link

FisheyeInfo doesn't match to OpenCL program. #831

Open eliao opened 11 months ago

eliao commented 11 months ago

Hi,

I am trying to use libxcam to perform image stitching. While running the test-image-stitching program, I get an error:

XCAM ERROR cl_kernel.cpp:381: kernel(kernel_fisheye_2_gps) set arg_index(3) failed with -51:CL_INVALID_ARG_SIZE

When I look at this argument, it appears to be the FisheyeInfo argument.

In the shader, it looks like typedef struct { IntrinsicParameter intrinsic; ExtrinsicParameter extrinsic; float radius; float distort_coeff[4]; float c_coeff[4]; } FisheyeInfo;

But in data_types.h it doesn't look the same. Notably, there's an extra camera_id field.