]> git.karo-electronics.de Git - karo-tx-linux.git/blob - Documentation/media/uapi/v4l/pixfmt-srggb16.rst
[media] v4l: Add 16-bit raw bayer pixel formats
[karo-tx-linux.git] / Documentation / media / uapi / v4l / pixfmt-srggb16.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _V4L2-PIX-FMT-SRGGB16:
4 .. _v4l2-pix-fmt-sbggr16:
5 .. _v4l2-pix-fmt-sgbrg16:
6 .. _v4l2-pix-fmt-sgrbg16:
7
8
9 ***************************************************************************************************************************
10 V4L2_PIX_FMT_SRGGB16 ('RG16'), V4L2_PIX_FMT_SGRBG16 ('GR16'), V4L2_PIX_FMT_SGBRG16 ('GB16'), V4L2_PIX_FMT_SBGGR16 ('BYR2'),
11 ***************************************************************************************************************************
12
13
14 16-bit Bayer formats
15
16
17 Description
18 ===========
19
20 These four pixel formats are raw sRGB / Bayer formats with 16 bits per
21 sample. Each sample is stored in a 16-bit word. Each n-pixel row contains
22 n/2 green samples and n/2 blue or red samples, with alternating red and blue
23 rows. Bytes are stored in memory in little endian order. They are
24 conventionally described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is
25 an example of one of these formats:
26
27 **Byte Order.**
28 Each cell is one byte.
29
30 .. flat-table::
31     :header-rows:  0
32     :stub-columns: 0
33
34     * - start + 0:
35       - B\ :sub:`00low`
36       - B\ :sub:`00high`
37       - G\ :sub:`01low`
38       - G\ :sub:`01high`
39       - B\ :sub:`02low`
40       - B\ :sub:`02high`
41       - G\ :sub:`03low`
42       - G\ :sub:`03high`
43     * - start + 8:
44       - G\ :sub:`10low`
45       - G\ :sub:`10high`
46       - R\ :sub:`11low`
47       - R\ :sub:`11high`
48       - G\ :sub:`12low`
49       - G\ :sub:`12high`
50       - R\ :sub:`13low`
51       - R\ :sub:`13high`
52     * - start + 16:
53       - B\ :sub:`20low`
54       - B\ :sub:`20high`
55       - G\ :sub:`21low`
56       - G\ :sub:`21high`
57       - B\ :sub:`22low`
58       - B\ :sub:`22high`
59       - G\ :sub:`23low`
60       - G\ :sub:`23high`
61     * - start + 24:
62       - G\ :sub:`30low`
63       - G\ :sub:`30high`
64       - R\ :sub:`31low`
65       - R\ :sub:`31high`
66       - G\ :sub:`32low`
67       - G\ :sub:`32high`
68       - R\ :sub:`33low`
69       - R\ :sub:`33high`