2.9.5. V4L2_PIX_FMT_SRGGB8 (‘RGGB’)

man V4L2_PIX_FMT_SRGGB8(2)

Bayer RGB format

2.9.5.1. 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 red and green value, the second row of a green and blue value. This scheme repeats to the right and down for every two columns and rows.

Byte Order. Each cell is one byte.

start + 0: R00 G01 R02 G03
start + 4: G10 B11 G12 B13
start + 8: R20 G21 R22 G23
start + 12: G30 B31 G32 B33