YUV420Planar
Format |
FourCC |
Storage type |
Storage requirement |
YUV420 Planar |
I420, IYUV, YV12 |
PLANAR |
1.5 Bytes/pixel |
Spatial sampling periods
Component |
Horizontal |
Vertical |
Y |
1 |
1 |
U (Cb) |
2 |
2 |
V (Cr) |
2 |
2 |
Spatial map
- The sampling pattern of the YUV420 format is as specified by the MPEG-2 and the MPEG-4 Part 2 standards.
- The sampling is orthogonal for both the luminance and chrominance samples.
- The chrominance spatial frequency is one half of the luminance spatial frequency in both the horizontal and vertical directions.
- There is one chrominance sample for every quadruplet of luminance samples.
- The position of the chrominance sample is exactly in the center of the rectangle defined by the 4 nearest luminance sampling positions.
Plane assignment
Plane # |
Plane name |
Storage requirement |
0 |
Y |
1 Byte/pixel |
1 |
U |
0.25 Byte/pixel |
2 |
V |
0.25 Byte/pixel |
3 |
- |
- |
Plane 0 |
Memory layout |
|||||||||||||||||||||||||||||||
Word 0 |
Pixel 3: Y |
Pixel 2: Y |
Pixel 1: Y |
Pixel 0: Y |
||||||||||||||||||||||||||||
Byte# |
3 |
2 |
1 |
0 |
||||||||||||||||||||||||||||
Bit# |
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
Plane 1 |
Memory layout |
|||||||||||||||||||||||||||||||
Word 0 |
Pixel 6: U (Cb) |
Pixel 4: U (Cb) |
Pixel 2: U (Cb) |
Pixel 0: U (Cb) |
||||||||||||||||||||||||||||
Byte# |
3 |
2 |
1 |
0 |
||||||||||||||||||||||||||||
Bit# |
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
Plane 2 |
Memory layout |
|||||||||||||||||||||||||||||||
Word 0 |
Pixel 6: V (Cr) |
Pixel 4: V (Cr) |
Pixel 2: V (Cr) |
Pixel 0: V (Cr) |
||||||||||||||||||||||||||||
Byte# |
3 |
2 |
1 |
0 |
||||||||||||||||||||||||||||
Bit# |
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |