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

fake_v4l2_device.h: fix narrowing warning #802

Closed saininav closed 2 years ago

saininav commented 2 years ago

Use uint32_t instead of int for IOCTLs commands.

Warning log: | ../../../git/xcore/fake_v4l2_device.h: In member function 'virtual int XCam::FakeV4l2Device::io_control(int, void*)': | ../../../git/xcore/fake_v4l2_device.h:42:14: error: narrowing conversion of '3225441794' from 'long unsigned int' to 'int' [-Wnarrowing] | 42 | case VIDIOC_ENUM_FMT: | | ^~~~~~~ | make[4]: *** [Makefile:685: libgstxcamsrc_la-gstxcamsrc.lo] Error 1

Signed-off-by: Naveen Saini naveen.kumar.saini@intel.com

saininav commented 2 years ago

https://github.com/intel/libxcam/issues/801

zongwave commented 2 years ago

thanks