SNLS696A April 2021 – May 2021 TSER953
The color bar pattern should be programmed in units of a block or word size dependent on the datatype of the video being sent. The sizes are defined in the MIPI CSI-2 specification. For example, RGB888 requires a 3-byte block size which is the same as the pixel size. RAW10 requires a 5-byte block size which is equal to 4 pixels. RAW12 requires a 3-byte block size which is equal to 2 pixels.
When programming the Pattern Generator, software should compute the required bar size in bytes based on the line size and the number of bars. For the standard 8-color bar pattern, that would require the following algorithm:
As an alternative, the blocks/line can be computed by converting pixels/line to bytes/line and dividing by bytes/block.