Looking at the Image sensor specification, the output format that is streamed is RAW12.
So, each pixel data would be of 12 bits.
When Bayer filter is used in the image sensor, each pixel will capture only only color either red, green or blue.
Debayering is performed on this data to obtain red, green and blue components for each pixel.
To know more about how to reconstruct your image from the raw data, you would have to contact Image Sensor manufacturer.
Thank you for the information