2.7.4. V4L2_PIX_FMT_Y12 ('Y12 ')

Grey-scale image

2.7.4.1. Description

This is a grey-scale image with a depth of 12 bits per pixel. Pixels are stored in 16-bit words with unused high bits padded with 0. The least significant byte is stored at lower memory addresses (little-endian).

Byte Order. Each cell is one byte.

start + 0: Y'00low Y'00high Y'01low Y'01high Y'02low Y'02high Y'03low Y'03high
start + 8: Y'10low Y'10high Y'11low Y'11high Y'12low Y'12high Y'13low Y'13high
start + 16: Y'20low Y'20high Y'21low Y'21high Y'22low Y'22high Y'23low Y'23high
start + 24: Y'30low Y'30high Y'31low Y'31high Y'32low Y'32high Y'33low Y'33high