Supported pixel formats on the CSI-2 interface
This section describes the pixel formats used in CSI-2 interface, pixel pipes, and dump pipe.
Table 5 Supported pixel formats on the CSI-2 interface lists the supported pixel formats in the input interfaces (parallel, CSI), as input to the pixel Pipe1 and Pipe2, and in the three output pipes.
| Pixel format | BPP | Parallel input (clk/pix)1 | CSI input | Pipe0 output (dump) | Pipe1 and Pipe2 input | Pipe1 output (main) | Pipe2 output (ancillary) |
|---|---|---|---|---|---|---|---|
|
Bytes (CSI: long packets and user) | 8 | - | Y | Y | - | - | - |
|
Byte stream (JPEG, compressed video) | 8 | Y, 1 | - | Y | - | - | - |
| Other data | 8 to 162 | Y, 1 | Y | - | - | - | |
| Raw6 | 6 | 3 | Y4 | Y4 | - | - | - |
| Raw7 | 7 | 3 | Y4 | 4 | Y | - | - |
| Raw8 | 8 | Y, 1 | Y | Y | To 8 bpc | Y | Y |
| Raw10 | 10 | Y, 1 | Y | To 16 bpc | To 8 bpc | - | - |
| Raw12 | 12 | Y, 1 | Y | To 16 bpc | To 8 bpc | - | - |
| Raw14 | 14 | Y,1 | Y | To 16 bpc | Y | - | - |
| Mono8 | 8 | Y, 1 | - | Y | To 8 bpc | Y | Y |
| Mono10 | 10 | Y,1 | - | To 16 bpc | To 8 bpc | - | - |
| Mono12 | 12 | Y, 1 | - | To 16 bpc | To 8 bpc | - | - |
| Mono14 | 14 | Y,1 | - | To 16 bpc | To 8 bpc | - | - |
| RGB444 | 12 | 3 | Y | 3 | To 8 bpc | - | - |
| RGB555 | 15 | 3 | Y | 3 | To 8 bpc | - | - |
| RGB565 | 16 | Y, 1, 2 | Y | Y | To 8 bpc | Y | Y |
| RGB666 | 18 | 3 | Y | 3 | To 8 bpc | - | - |
| RGB888 / YUV444 | 24 | Y, 2, 3 | Y | Y | Y | Y | Y |
| xRGB888 / xYUV444 | 32 | - | - | Y | - | Y | Y |
| RGBx888 / YUVx444 | 32 | - | - | Y | - | Y | Y |
| YUV422-1 (YUYV) | 16 | Y, 1, 2 | Y | Y | Y | Y | Y |
|
YUV422-2
| 16 | - | Y4 | Y4 | Y | Y | - |
| YUV420-2 (NV21/NV12) | 12 | - | Y4 | Y4 | Y | Y | - |
| YUV420-3 (YV12) | 12 | - | Y4 | Y4 | Y | Y | - |
| YUV422 10 bpc20 | 20 | - | Y4 | Y4 | - | - | - |
| YUV420 10 bpc | 15 | - | Y4 | Y4 | - | - | - |
| Any other CSI-2 | Any | - | Y4 | Y4 | - | - | - |
1 Index is used to link the input pixel format to the DCMIPP_PRCR register. The index has a meaning only for camera connected with the parallel interface .
2 Pixel formats on 16 bpp (like RGB565 or YUV422-1) can be received either on an 8-bit interface (using 2 cycles), or on a 16-bit input interface (using one cycle). Pixel formats on 24 bpp (like RGB888) can be received either on an 8-bit interface (using three cycles), or on a 12-bit input interface (using two cycles).
3 On the parallel interface input, some sensor pixel formats are supported by the DCMIPP, by selecting a wider pixel format in DCMIPP, by mapping the sensor wires onto the MSB of the DCMIPP interface. On the missing input pins, it is recommended to replicate the sensor MSB pins onto the missing input LSB pins. This helps achieving full dynamic on the extended pixel format.
The workaround can be applied on the following formats (sensor output on left, mapping on DCMIPP format on right):
- Raw6: Raw8 with 1-cycle input, processed as an 8 bpp
- Raw7: Raw8 with 1-cycle input, processed as an 8 bpp
- RGB444: RGB565 with 1-cycle input, processed as a 16 bpp
- RGB555: RGB565 with 1-cycle input, processed as a 16 bpp
- RGB666: RGB888 with 3-cycle input, processed as a 24 bpp
4 The same bit mapping is used for the input RGB888 and YUV444, the input xRGB and xYUV, and similarly for the outputs. The difference between RGB and YUV is the color reference, set in the color conversion that occurs after the input or before the output.