User`s manual

Pixel Data Formats AW00049313000
166 Basler runner
10.3.6 YUV 4:2:2 (YUYV) Packed Format
On color cameras, the YUV 4:2:2 (YUYV) packed pixel data format is similar to the YUV 4:2:2 pixel
format described in the previous section. The only difference is the order of the bytes transmitted
to the host PC. With the YUV 4:2:2 format, the bytes are ordered as specified in the DCAM standard
issued by the 1394 Trade Association. With the YUV 4:2:2 (YUYV) format, the bytes are ordered to
emulate the ordering normally associated with analog frame grabbers and Windows
®
frame buffers.
The table below describes how the pixel data for a received frame will be ordered in the image buffer
in your PC when the camera is set for YUV 4:2:2 (YUYV) output.
With this format, the Y component is transmitted for each pixel, but the U and V components are
only transmitted for every second pixel.
The following standards are used in the table:
P
0
= the first pixel transmitted by the camera
P
n
= the last pixel transmitted by the camera
B
0
= the first byte in the buffer
B
m
= the last byte in the buffer
Byte Pixel - Data Bits
B
0
Y P
0
7 ... 0
B
1
U P
0
7 ... 0
B
2
Y P
1
7 ... 0
B
3
V P
0
7 ... 0
B
4
Y P
2
7 ... 0
B
5
U P
2
7 ... 0
B
6
Y P
3
7 ... 0
B
7
V P
2
7 ... 0
B
8
Y P
4
7 ... 0
B
9
U P
4
7 ... 0
B
10
Y P
5
7 ... 0
B
11
V P
4
7 ... 0
B
m-7
Y P
n-3
7 ... 0
B
m-6
U P
n-3
7 ... 0
B
m-5
Y P
n-2
7 ... 0
B
m-4
V P
n-3
7 ... 0
B
m-3
Y P
n-1
7 ... 0
B
m-2
U P
n-1
7 ... 0
B
m-1
Y P
n
7 ... 0
B
m
V P
n-1
7 ... 0