AN6211 ยท Application noteIntroduction to digital camera interface pixel pipeline for STM32 MCUs
Download .pdfOpen in the full document

Supported pixel formats on the CSI-2 interface

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.

Table 5. Supported pixel formats on the CSI-2 interface
Pixel format BPPParallel input (clk/pix)1CSI inputPipe0 output (dump)Pipe1 and Pipe2 inputPipe1 output (main)Pipe2 output (ancillary)

Bytes

(CSI: long packets and user)

8-YY---

Byte stream

(JPEG, compressed video)

8Y, 1-Y---
Other data8 to 162Y, 1 Y---
Raw663Y4Y4---
Raw773Y44Y--
Raw88Y, 1YYTo 8 bpcYY
Raw1010Y, 1YTo 16 bpcTo 8 bpc--
Raw1212Y, 1YTo 16 bpcTo 8 bpc--
Raw1414Y,1YTo 16 bpcY--
Mono88Y, 1- YTo 8 bpcYY
Mono1010Y,1-To 16 bpcTo 8 bpc--
Mono1212Y, 1-To 16 bpcTo 8 bpc--
Mono1414Y,1-To 16 bpcTo 8 bpc--
RGB444123Y3To 8 bpc--
RGB555153Y3To 8 bpc--
RGB56516Y, 1, 2YYTo 8 bpcYY
RGB666183Y3To 8 bpc--
RGB888 / YUV44424Y, 2, 3YYYYY
xRGB888 / xYUV44432--Y-YY
RGBx888 / YUVx44432--Y-YY
YUV422-1 (YUYV)16Y, 1, 2YYYYY

YUV422-2

16-Y4Y4YY-
YUV420-2 (NV21/NV12)12-Y4Y4YY-
YUV420-3 (YV12)12-Y4Y4YY-
YUV422 10 bpc2020-Y4Y4---
YUV420 10 bpc15-Y4Y4---
Any other CSI-2Any-Y4Y4---
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.