Introduction
Understanding pixel formats allow you to understand how images are put together. More specifically, understanding these pixel formats will help you if you need to extract specific information from the pixels in the image that you receive from the camera.
Jump to:
Bayer RG formats
BayerRG8
BayerRG12p
BayerRG16
BayerRG24
3D pixel formats
Coord3D_ABCY16
Coord3D_ABC16
Coord3D_C16Y8
Coord3D_CY16
Confidence16
Basic mono pixel formats
Mono8
Mono10
Mono10p
Mono10Packed
Mono12
Mono12p
Mono12Packed
Mono16
Linescan pixel formats
Linescan ROI
YCbCr pixel formats: basic and subsampled
YCbCr – Basic
YCbCr- Subsampled
Color-processed pixel formats
FOR YCbCr and YUV, see the separate sections for these formats.
RGB8
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
RGB12p
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
3 | 2 | 1 | 0 | 3 | 2 | 1 | 0 |
7 | 0 |
3 | 2 | 1 | 0 | 7 | 6 | 5 | 4 |
7 | 0 |
3 | 2 | 1 | 0 | 7 | 6 | 5 | 4 |
7 | 0 |
3 | 2 | 1 | 0 | 3 | 2 | 1 | 0 |
7 | 0 |
3 | 2 | 1 | 0 | 7 | 6 | 5 | 4 |
7 | 0 |
RGB16
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 6 | 2 | 1 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7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6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
BGR24
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
Bayer RG formats
The BayerRG pixel formats are repetitions of a a 2×2 grid comprising a top row containing one red (R) and one green (G) filter, and a bottom row containing one green (G) and one blue (B) filter.
BayerRG8
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
BayerRG12p
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 |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 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
Polarized pixel formats
These pixel formats are for LUCID’s polarized-light cameras.
PolarizedAngles_0d_45d_90d_135d_RGB8
32 bits per pixel
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 | 0 |
45 | 45 | 45 | 45 | 45 | 45 | 45 | 45 |
7 | 0 |
90 | 90 | 90 | 90 | 90 | 90 | 90 | 90 |
7 | 0 |
135 | 135 | 135 | 135 | 135 | 135 | 135 | 135 | (0,0) pixel |
7 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 | 0 |
45 | 45 | 45 | 45 | 45 | 45 | 45 | 45 |
7 | 0 |
90 | 90 | 90 | 90 | 90 | 90 | 90 | 90 |
7 | 0 |
135 | 135 | 135 | 135 | 135 | 135 | 135 | 135 | (1,0) pixel |
7 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 | 0 |
45 | 45 | 45 | 45 | 45 | 45 | 45 | 45 |
7 | 0 |
90 | 90 | 90 | 90 | 90 | 90 | 90 | 90 |
7 | 0 |
135 | 135 | 135 | 135 | 135 | 135 | 135 | 135 | (0,1) pixel |
7 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 | 0 |
45 | 45 | 45 | 45 | 45 | 45 | 45 | 45 |
7 | 0 |
90 | 90 | 90 | 90 | 90 | 90 | 90 | 90 |
7 | 0 |
135 | 135 | 135 | 135 | 135 | 135 | 135 | 135 | (1,1) pixel |
7 | 0 |
PolarizedAngles_0d_45d_90d_135d_Mono8
32 bits per pixel
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 | 0 |
45 | 45 | 45 | 45 | 45 | 45 | 45 | 45 |
7 | 0 |
90 | 90 | 90 | 90 | 90 | 90 | 90 | 90 |
7 | 0 |
135 | 135 | 135 | 135 | 135 | 135 | 135 | 135 |
7 | 0 |
PolarizedStokes_S0_S2_S1_S3_Mono8
32 bits per pixel
S0 | S0 | S0 | S0 | S0 | S0 | S0 | S0 |
7 | 0 |
S1 | S1 | S1 | S1 | S1 | S1 | S1 | S1 |
7 | 0 |
S2 | S2 | S2 | S2 | S2 | S2 | S2 | S2 |
7 | 0 |
S3 | S3 | S3 | S3 | S3 | S3 | S3 | S3 |
7 | 0 |
PolarizedDolpAolp_Mono8
16 bits per pixel
D | D | D | D | D | D | D | D |
7 | 0 |
A | A | A | A | A | A | A | A |
7 | 0 |
PolarizedDolpAolp_Mono12p
24 bits per pixel
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | AoLP Pixel |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | DoLP Pixel |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
3 | 2 | 1 | 0 | 11 | 10 | 9 | 8 |
7 | 0 |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 |
7 | 0 |
PolarizedDolP_Mono8
8 bits per pixel
D | D | D | D | D | D | D | D |
7 | 0 |
PolarizedDolP_Mono12p
12 bits per pixel
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | DoLP Pixel 1 |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | DoLP Pixel 2 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
3 | 2 | 1 | 0 | 11 | 10 | 9 | 8 |
7 | 0 |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 |
7 | 0 |
PolarizedAoLP_Mono8
8 bits per pixel
A | A | A | A | A | A | A | A |
7 | 0 |
PolarizedAoLP_Mono12p
12 bits per pixel
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | AoLP Pixel 1 |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | AoLP Pixel 2 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
3 | 2 | 1 | 0 | 11 | 10 | 9 | 8 |
7 | 0 |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 |
7 | 0 |
3D pixel formats
These pixels formats are for LUCID’s 3D time-of-flight cameras. There are two types of pixel formats: coordinate data and confidence data.
Coord3D_ABCY16
64 bits per pixel
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | A Data (X-Coordinate) | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | B Data (Y-Coordinate) | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | C Data (Z-Coordinate) | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Data (Intensity) |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
7 | 0 |
Coord3D_ABC16
48 bits per pixel
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | A Data (X-Coordinate) | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | B Data (Y-Coordinate) | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | C Data (Z-Coordinate) |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
7 | 0 |
Coord3D_C16Y8
16-bit depth map Z plane + 8-bit intensity, unsigned
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | C Data (Z-Coordinate) | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Data (Intensity) |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Coord3D_CY16
16-bit depth map Z plane + 16-bit intensity, unsigned
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | C Data (Z-Coordinate) | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Data (Intensity) |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Confidence16
16 bits per pixel
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
7 | 0 |
Mono pixel formats
Mono pixel formats supported by LUCID cameras are shown below.
Mono8
8 bits per pixel
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
Mono10
16 bits per pixel
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 1 |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 2 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
pad | pad | pad | pad | pad | pad | 9 | 8 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
pad | pad | pad | pad | pad | pad | 9 | 8 |
7 | 0 |
Mono10p
10 bits per pixel
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 1 | |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 2 | |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 3 | |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 4 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
5 | 4 | 3 | 2 | 1 | 0 | 9 | 8 |
7 | 0 |
3 | 2 | 1 | 0 | 9 | 8 | 7 | 6 |
7 | 0 |
1 | 0 | 9 | 8 | 7 | 6 | 5 | 4 |
7 | 0 |
9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 |
7 | 0 |
Mono10Packed
12 bits per pixel
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 1 | |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 2 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
pad | pad | 9 | 8 | pad | pad | 9 | 8 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
Mono12
16 bits per pixel
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 1 | |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 2 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
pad | pad | pad | pad | 11 | 10 | 9 | 8 |
7 | 0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
pad | pad | pad | pad | 11 | 10 | 9 | 8 |
7 | 0 |
Mono12p
12 bits per pixel
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 1 | |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 2 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
3 | 2 | 1 | 0 | 11 | 10 | 9 | 8 |
7 | 0 |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 |
7 | 0 |
Mono12Packed
12 bits per pixel
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 1 | |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Pixel 2 |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 |
7 | 0 |
3 | 2 | 1 | 0 | 3 | 2 | 1 | 0 |
7 | 0 |
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 |
7 | 0 |
Mono16
16 bits per pixel
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
7 | 0 |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
7 | 0 |
Linescan pixel formats
Linescan ROI
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | ... |
... | 2032 | 2033 | 2034 | 2035 | 2036 | 2037 | 2038 | 2039 | 2040 | 2041 | 2042 | 2043 | 2044 | 2045 | 2046 | 2047 |
YCbCr Pixel Formats: Basic and subsampled
YCbCr Pixel Formats – Basic
All basic (non-subsampled) YCbCr pixel formats capture one luma (Y) component and two chroma components (Cr and Cb). These basic pixel formats are also known as YCbCr444 formats. Note: For YUV8, YUV16, and YUV24, substitute U for Cb (and V for Cr) in the diagrams below.
YCbCr8
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 1 | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
Byte 0 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 1 | |
Byte 1 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
Byte 2 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
YCbCr16
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 1 | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
Byte 0 | Byte 1 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y Pixel 1 | |
Byte 2 | Byte 3 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cb | |
Byte 4 | Byte 5 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cr Pixel 1 |
YCbCr24
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 1 | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
Byte 0 | Byte 1 | Byte 2 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Y Pixel 1 | |
Byte 3 | Byte 4 | Byte 5 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cb | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Cb | |
Byte 6 | Byte 7 | Byte 8 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cb | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Cr Pixel 1 |
YCbCr Pixel Formats – Subsampled
In subsampled pixel formats, the luma value in each pixel is sampled (read), but the chroma values are not. The purpose of subsampling is to reduce the amount of data. “422” subsampling means that that two samples each of Cb and Cr is recorded for every four samples of luma. Similarly, “411” subsampling means that that one sample each of Cb and Cr is recorded for every four samples of luma. In each subsampling scheme, Y1, Y2, Y3, and Y4 are luma values from pixels 1 to 4 respectively. Cb and Cr are averages calculated from the available pixels. YCbCr422_8_CbYCrY means that “422” subsampling is being used with 8 bits per channel, and the order of bytes is Y, Cb, Y, Cr. Note: The patterns shown below applies to YCbCr formats. To see the equivalent YUV formats, substitute U for Cb (and V for Cr).
YCbCr422_8_CbYCrY
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 1 | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 2 | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
Byte 0 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb Pixel 1 | |
Byte 1 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y | |
Byte 2 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr | |
Byte 3 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y |
YCbCr422_16_CbYCrY
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 1 | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 2 | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
Byte 0 | Byte 1 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cb Pixel 1 | |
Byte 2 | Byte 3 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y | |
Byte 4 | Byte 5 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cr Pixel 1 | |
Byte 6 | Byte 7 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y Pixel 1 |
YCbCr422_24_CbYCrY
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 1 | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 2 | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
Byte 0 | Byte 1 | Byte 2 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cb | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Cb Pixel 1 | |
Byte 3 | Byte 4 | Byte 5 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Y | |
Byte 6 | Byte 7 | Byte 8 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cr | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Cr Pixel 1 | |
Byte 9 | Byte 10 | Byte 11 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Y Pixel 1 |
YCbCr411_8_CbYYCrYY
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 1 | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 2 | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 3 | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 4 | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
Byte 0 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb Pixel 1 | |
Byte 1 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y1 | |
Byte 2 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y2 | |
Byte 3 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr | |
Byte 4 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y3 | |
Byte 5 | |||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y4 |
YCbCr411_16_CbYYCrYY
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 1 | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 2 | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 3 | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 4 | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
Byte 0 | Byte 1 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cb Pixel 1 | |
Byte 2 | Byte 3 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y1 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y1 | |
Byte 4 | Byte 5 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y2 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y2 Pixel 1 | |
Byte 6 | Byte 7 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cr Pixel 1 | |
Byte 8 | Byte 9 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y3 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y3 Pixel 1 | |
Byte 10 | Byte 11 | |||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y4 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y4 Pixel 1 |
YCbCr411_24_CbYYCrYY
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 1 | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 2 | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 3 | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y Pixel 4 | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | |
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr |
Byte 0 | Byte 1 | Byte 2 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cb | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cb | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Cb Pixel 1 | |
Byte 3 | Byte 4 | Byte 5 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y1 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y1 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Y1 | |
Byte 6 | Byte 7 | Byte 8 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y2 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y2 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Y2 Pixel 1 | |
Byte 9 | Byte 10 | Byte 11 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Cr | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Cr | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Cr Pixel 1 | |
Byte 12 | Byte 13 | Byte 14 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y3 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y3 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Y3 Pixel 1 | |
Byte 15 | Byte 16 | Byte 17 | |||||||||||||||||||||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Y4 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | Y4 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | Y4 Pixel 1 |