Demosaicing RGB-IR I.MX7 is possible?

Im starting a new project and I'm thinking in using an I.MX 7 processor option.In my project i want to use a cmos image sensor with RGB-IR color filter or RGBW.Is the I.MX7 capable of do the Demosaicing using this kind of pattern.If yes, where can I find a good document about the pixel processing and a code example.

Reading the Application Processor Reference Manual i found the following explanation.

"13.3.6.1.1 Bayer DataBayer data is a type of raw data from the image sensor. This byte-wide data must beconverted to the RGB space or YUV space by software."

In the RGB-IR or RGBW sensor the raw data is a little different from the tradictional RGB Bayer raw.

So, like in the usual demosaicing process of the raw RGB Bayer, the new RGB-IR demosaicing need to be done by software.

So it is possible, depending only from the resolution and the processor load.

"13.3.6.2 STAT FIFO PathStatistics only works for Bayer data in 8-bit per pixel format. It generates 16-bit statisticaloutput from the 8-bit Bayer input (CSI_DATA[13:6]). The outputs are Sum of Green (G),Sum of Red (R), Sum of Blue (B), and Auto Focus (F). Each output is 16-bits wide."

To complement the question.

The statistic hardware to control the sensor Exposure, and White Balance will not work for RGB-IR sensor because pixel pattern changed.

So, I will need to reimplement the statistical control by software for this kind of sensor.