Encoding Multiple Pixels - Static TDATA Configuration - 1.0 English

AXI4-Stream Video IP and System Design Guide (UG934)

Document ID
UG934
Release Date
2022-11-16
Version
1.0 English

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.

Figure 1-5: Video Data Padding for TDATA

X-Ref Target - Figure 1-5

fig1-6.jpg
Table 1-5: Video Format Codes and Data Representation

VF Code

Video Format

[6DW-1: 5DW]

[5DW-1: 4DW]

[4DW-1: 3DW]

[3DW-1: 2DW]

[2DW-1: DW]

[DW-1:0]

0

YUV 4:2:2

V0, Cr0

Y1

U0, Cb0

Y0

1

YUV 4:4:4

V1, Cr1

U1, Cb1

Y1

V0, Cr0

U0, Cb0

Y0

2

RGB

R1

B1

G1

R0

B0

G0

3

YUV 4:2:0

V0, Cr0

Y1

U0, Cb0

Y0

12

Mono/Bayer Sensor (RAW)

RGB1, CMY1

RBGB0, CMY0