V4L2_PIX_FMT_SGRBG8 ('GRBG')
Prev | RGB Formats | Next

## Name

`V4L2_PIX_FMT_SGRBG8` — Bayer RGB format

## Description

This is commonly the native format of digital cameras, reflecting the arrangement of sensors on the CCD device. Only one red, green or blue value is given for each pixel. Missing components must be interpolated from neighbouring pixels. From left to right the first row consists of a green and blue value, the second row of a red and green value. This scheme repeats to the right and down for every two columns and rows.

Example 2.5. `V4L2_PIX_FMT_SGRBG8` 4 × 4 pixel image

Byte Order. Each cell is one byte.

start + 0: | G00 | R01 | G02 | R03
start + 4: | R10 | B11 | R12 | B13
start + 8: | G20 | R21 | G22 | R23
start + 12: | R30 | B31 | R32 | B33

Prev | Up | Next
V4L2_PIX_FMT_SGBRG8 ('GBRG') | Home | V4L2_PIX_FMT_SRGGB8 ('RGGB')