38.6.9.1 Line Striding

When the end of line has been reached, the DMA address counter points to the next pixel address. The channel DMA current address value is added to the XSTRIDE field, and then updated. If XSTRIDE is set to zero, the DMA address register remains unchanged. The XSTRIDE field of the channel configuration register is aligned to the pixel size boundary. The XSTRIDE field is a two’s complement number. The following formula applies at the line boundary and indicates how the DMA controller computes the next pixel address. The function Sizeof() returns the number of bytes required to store a pixel.

NextPixelAddress = CurrentPixelAddress + Sizeof pixel + XSTRIDE