I am going to receive a new camera, the FSM-IMX304M (https://www.framos.com/media/pdf/c4/bf/05/FSM-IMX304_Datasheet_v1-0g_BriefDPJ6pgNMQObQQ.pdf) The bit depth is 12, the chromacity is mono.
I need to access at each pixel one by one.
From my reading and discussions, when we call :
the buffer is filled like that :
| 16 bits | D5-D4-D3-D2-D1-D0-D11-D10-0-0-D11-D10-D9-D8-D7-D6
To obtain the value of each pixel, I have to change the bitmap like that :
D5-D4-D3-D2-D1-D0-D11-D10-0-0-D11-D10-D9-D8-D7-D6 -> D0-D1-D2-D3-D4-D5-D6-D7-D8-D9-D10-D11
Is it right ?
Notice that I use a streamlined V4L2.
Thank you for your help