summaryrefslogtreecommitdiff
path: root/Documentation/media/uapi/v4l/pixfmt-sbggr8.rst
blob: db4c523f49a99d1ff2c4ee11c592e41e06eda755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.. -*- coding: utf-8; mode: rst -*-

.. _V4L2-PIX-FMT-SBGGR8:

****************************
V4L2_PIX_FMT_SBGGR8 ('BA81')
****************************

*man V4L2_PIX_FMT_SBGGR8(2)*

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

**Byte Order.**
Each cell is one byte.



.. flat-table::
    :header-rows:  0
    :stub-columns: 0
    :widths:       2 1 1 1 1


    -  .. row 1

       -  start + 0:

       -  B\ :sub:`00`

       -  G\ :sub:`01`

       -  B\ :sub:`02`

       -  G\ :sub:`03`

    -  .. row 2

       -  start + 4:

       -  G\ :sub:`10`

       -  R\ :sub:`11`

       -  G\ :sub:`12`

       -  R\ :sub:`13`

    -  .. row 3

       -  start + 8:

       -  B\ :sub:`20`

       -  G\ :sub:`21`

       -  B\ :sub:`22`

       -  G\ :sub:`23`

    -  .. row 4

       -  start + 12:

       -  G\ :sub:`30`

       -  R\ :sub:`31`

       -  G\ :sub:`32`

       -  R\ :sub:`33`