User`s manual
AW00049313000 Pixel Data Formats
Basler runner 159
10.3.3 RGB 12 Packed Format
When a color camera is set for the RGB 12 Packed pixel data format, it outputs the following for
each pixel in an acquired frame:
16 bits of red data per pixel with 12 bits effective
16 bits of green data per pixel with 12 bits effective
16 bits of blue data per pixel with 12 bits effective
The 12 bits of effective data fill from the least significant bit. The four unused most significant bits
are filled with zeros.
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 RGB 12 Packed output. Note that the data is placed in the
image buffer in little endian format.
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
x = unused bit, zero filled
Byte Pixel - Data Bits Byte Pixel - Data Bits
B
0
R P
0
7 ... 0
B
1
R P
0
x x x x 11 ... 8
B
2
G P
0
7 ... 0 B
m-7
R P
n-1
7 ... 0
B
3
G P
0
x x x x 11 ... 8 B
m-6
R P
n-1
x x x x 11 ... 8
B
4
B P
0
7 ... 0 B
m-5
G P
n-1
7 ... 0
B
5
B P
0
x x x x 11 ... 8 B
m-4
G P
n-1
x x x x 11 ... 8
B
6
R P
1
7 ... 0 B
m-7
B P
n-1
7 ... 0
B
7
R P
1
x x x x 11 ... 8 B
m-6
B P
n-1
x x x x 11 ... 8
B
8
G P
1
7 ... 0 B
m-5
R P
n
7 ... 0
B
9
G P
1
x x x x 11 ... 8 B
m-4
R P
n
x x x x 11 ... 8
B
10
B P
1
7 ... 0 B
m-3
G P
n
7 ... 0
B
11
B P
1
x x x x 11 ... 8 B
m-2
G P
n
x x x x 11 ... 8
B
m-1
B P
n
7 ... 0
B
m
B P
n
x x x x 11 ... 8










