I would like to capture a raw image from a OV24A1B sensor with the V4L2 Api.
Indeed, the OV24A1B sensor only support 10-bit grayscale and, from what I understood, there is no way to bypass the ISP with the Argus library to get a raw data (without debayering filter) ?
I managed to get a raw picture with the v4l2-ctl command:
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080, --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw
But I need to do it with the V4L2 Api to have a direct access to the buffer containing the raw data. Do you know how this could be done and what are the important steps ? For example, concerning the bypass_mode=0 ?
The sensor driver is based on the ov5693.c driver.
Thanks in advance,