AW00097603000 Pixel Data Formats
Basler aviator GigE 143
9.3.4 YUV 4:2:2 Packed Format
When a color camera is set for the YUV 422 Packed pixel data format, each pixel value in the
captured image goes through a conversion process as it exits the sensor and passes through the
camera’s electronics. This process yields Y, U, and V color information for each pixel value.
For more information about the conversion processes, see Section 8.1.2 on page 110.
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 Packed output.
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
The values for U and for V normally range from -128 to +127. Because the camera
transfers U values and V values with unsigned integers, 128 is added to each U
value and to each V value before the values are transferred from the camera. This
process allows the values to be transferred on a scale that ranges from 0 to 255.
Byte Data
B
0
U value for P
0
B
1
Y value for P
0
B
2
V Value for P
0
B
3
Y value for P
1
B
4
U value for P
2
B
5
Y value for P
2
B
6
V Value for P
2
B
7
Y value for P
3
B
8
U value for P
4
B
9
Y value for P
4
B
10
V Value for P
4
B
11
Y value for P
5
ï‚· ï‚·
ï‚· ï‚·
ï‚· ï‚·
B
m-7
U value for P
n-3
B
m-6
Y value for P
n-3
B
m-5
V Value for P
n-3