pixfmt-sgrbg8.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <refentry id="V4L2-PIX-FMT-SGRBG8">
  2. <refmeta>
  3. <refentrytitle>V4L2_PIX_FMT_SGRBG8 ('GRBG')</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname><constant>V4L2_PIX_FMT_SGRBG8</constant></refname>
  8. <refpurpose>Bayer RGB format</refpurpose>
  9. </refnamediv>
  10. <refsect1>
  11. <title>Description</title>
  12. <para>This is commonly the native format of digital cameras,
  13. reflecting the arrangement of sensors on the CCD device. Only one red,
  14. green or blue value is given for each pixel. Missing components must
  15. be interpolated from neighbouring pixels. From left to right the first
  16. row consists of a green and blue value, the second row of a red and
  17. green value. This scheme repeats to the right and down for every two
  18. columns and rows.</para>
  19. <example>
  20. <title><constant>V4L2_PIX_FMT_SGRBG8</constant> 4 &times;
  21. 4 pixel image</title>
  22. <formalpara>
  23. <title>Byte Order.</title>
  24. <para>Each cell is one byte.
  25. <informaltable frame="none">
  26. <tgroup cols="5" align="center">
  27. <colspec align="left" colwidth="2*" />
  28. <tbody valign="top">
  29. <row>
  30. <entry>start&nbsp;+&nbsp;0:</entry>
  31. <entry>G<subscript>00</subscript></entry>
  32. <entry>R<subscript>01</subscript></entry>
  33. <entry>G<subscript>02</subscript></entry>
  34. <entry>R<subscript>03</subscript></entry>
  35. </row>
  36. <row>
  37. <entry>start&nbsp;+&nbsp;4:</entry>
  38. <entry>B<subscript>10</subscript></entry>
  39. <entry>G<subscript>11</subscript></entry>
  40. <entry>B<subscript>12</subscript></entry>
  41. <entry>G<subscript>13</subscript></entry>
  42. </row>
  43. <row>
  44. <entry>start&nbsp;+&nbsp;8:</entry>
  45. <entry>G<subscript>20</subscript></entry>
  46. <entry>R<subscript>21</subscript></entry>
  47. <entry>G<subscript>22</subscript></entry>
  48. <entry>R<subscript>23</subscript></entry>
  49. </row>
  50. <row>
  51. <entry>start&nbsp;+&nbsp;12:</entry>
  52. <entry>B<subscript>30</subscript></entry>
  53. <entry>G<subscript>31</subscript></entry>
  54. <entry>B<subscript>32</subscript></entry>
  55. <entry>G<subscript>33</subscript></entry>
  56. </row>
  57. </tbody>
  58. </tgroup>
  59. </informaltable>
  60. </para>
  61. </formalpara>
  62. </example>
  63. </refsect1>
  64. </refentry>