43.5.9 CSI-2 Demux RAW Data Decompression Support

The CSI-2 implementation allows RAW data compression on the interface between the host processor and the camera module. Data compression schemes use an X-Y-Z naming convention where X is the number of bits per pixel in the original image, Y is the number of encoded (compressed) bits per pixel in the transmitted bit stream, and Z the number of decoded (uncompressed) bits per pixels.

Table 43-51. Decompression Mode Field Mapping to X-Y-Z Naming Convention
CSI2DC_VPCFG.DM X-Y-Z CSI-2 Naming Rule
DECODER8TO12 12-8-12
DECODER7TO12 12-7-12
DECODER6TO12 12-6-12
DECODER8TO10 10-8-10
DECODER7TO10 10-7-10
DECODER6TO10 10-6-10

The data compression schemes specified in CSI-2 Annex E are lossy and are designed to encode each line independently.

Table 43-52. Decoder Output Formatting
CSI2DC_VPCFG.DM RAW_DECODER[11:0]
DECODER8TO12 XDECO[11:0]
DECODER7TO12 XDECO[11:0]
DECODER6TO12 XDECO[11:0]
DECODER8TO10 XDECO[9:0]
DECODER7TO10 XDECO[9:0]
DECODER6TO10 XDECO[9:0]
Figure 43-9. RAW Decompression Decoder