When multiple samples/pixels are carried by AXI4-Stream, pixels should be packed from least significant bit (LSB) to MSB, e.g., the least significant pixel should correspond to the left-most pixel in a scanline, or to the pixel captured earliest in time. For example, if 4 samples/pixels are sent per data beat, the first sample sits in the least significant, the 4th sample sits in the most significant bit positions.
When multiple pixels or samples are transferred using the video protocol over AXI4-Stream, color components pertinent to the individual pixels are arranged according to Table: Video Format Codes and Data Representation , presenting examples for transferring two pixels for video modes 0, 1, 2, 3, 12. Pixel data is packed continuously without any padding between pixels. When N*DW is not an integer multiple of 8, video data is zero padded on the MSBs, as presented on This Figure . If the line size is not divisible by the number pixels/samples per data beat, then the last beat of the line should use the LSBs. Then, the unused pixel in the MSBs of the last data beat of the line should be padded with zeros.