Encoding - 1.0 English

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

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

The DATA bits are represented using the [ N-1:0 ] bit numbering convention (N-1 through 0). The components of implicit subfields of DATA should be packed tightly together; for example, a DW=10 bit RGB data packed together to 30 bits. If necessary, the packed data word should be zero padded with most significant bits (MSBs) so the width of the resulting word is an integer that is a multiple of eight as shown in This Figure .

Figure 1-4: Video Data Padding for TDATA for Multiple Pixels

X-Ref Target - Figure 1-4

fig_1-7.png

The detailed representation of different formats is listed in Table: Video Format Codes and Data Representation for C_tk_MAX_SAMPLES_PER_CLOCK =1 , with DW = C_DATA_WIDTH and VF = C_VIDEO_FORMAT .

Table 1-4: Video Format Codes and Data Representation for C_ tk _MAX_SAMPLES_PER_CLOCK =1

VF Code

Video Format

[4DW-1: 3DW]

[3DW-1: 2DW]

[2DW-1: DW]

[DW-1:0]

0

YUV 4:2:2

V/U, Cr/Cb

Y

1

YUV 4:4:4

V, Cr

U, Cb

Y

2

RGB

R

B

G

3

YUV 4:2:0

V/U, Cr/Cb

Y

4

YUVA 4:2:2

a

V/U, Cr/Cb

Y

5

YUVA 4:4:4

a

V, Cr

U, Cb

Y

6

RGBA

a

R

B

G

7

YUVA 4:2:0

a , V/U, Cr/Cb

Y

8

YUVD 4:2:2

D

V/U, Cr/Cb

Y

9

YUVD 4:4:4

D

V, Cr

U, Cb

Y

10

RGBD

D

R

B

G

11

YUV 4:2:0

D

V/U, Cr/Cb

Y

12

Mono/Bayer Sensor (RAW)

Y, RGB, CMY

13

Custom2

2 Components – No DRC

14

Custom3

3 Components – No DRC

15

Custom4

4 Components – No DRC

Note: For any of the 4:2:2 and 4:2:0 formats, Cb (or U) and Cr (or V) samples are split over two data beats but only in a one sample per clock mode. The first data beat holds Cb (or U); the second data beat holds Cr (or V). In other words, the first active pixel of the frame contains [Cb0:Y0] and the next pixel contains [Cr0:Y1]. The 4:2:0 format adds vertical subsampling to the 4:2:2 format, which is implemented in Video over AXI4-Stream by omitting the chroma data on every other line.

Note: Bayer Sensor data is also referred to as RAW data, which is generally in RAW8/RAW10/RAW12/RAW14/RAW16, etc. formats.