aboutsummaryrefslogtreecommitdiff
path: root/Documentation/DocBook/media/v4l/pixfmt-y10b.xml
blob: adb0ad808c9352d3d0c315fde6caecfeeb9a9bc5 (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
<refentry id="V4L2-PIX-FMT-Y10BPACK">
  <refmeta>
    <refentrytitle>V4L2_PIX_FMT_Y10BPACK ('Y10B')</refentrytitle>
    &manvol;
  </refmeta>
  <refnamediv>
    <refname><constant>V4L2_PIX_FMT_Y10BPACK</constant></refname>
    <refpurpose>Grey-scale image as a bit-packed array</refpurpose>
  </refnamediv>
  <refsect1>
    <title>Description</title>

    <para>This is a packed grey-scale image format with a depth of 10 bits per
      pixel. Pixels are stored in a bit-packed array of 10bit bits per pixel,
      with no padding between them and with the most significant bits coming
      first from the left.</para>

    <example>
      <title><constant>V4L2_PIX_FMT_Y10BPACK</constant> 4 pixel data stream taking 5 bytes</title>

      <formalpara>
	<title>Bit-packed representation</title>
	<para>pixels cross the byte boundary and have a ratio of 5 bytes for each 4
          pixels.
	  <informaltable frame="all">
	    <tgroup cols="5" align="center">
	      <colspec align="left" colwidth="2*" />
	      <tbody valign="top">
		<row>
		  <entry>Y'<subscript>00[9:2]</subscript></entry>
		  <entry>Y'<subscript>00[1:0]</subscript>Y'<subscript>01[9:4]</subscript></entry>
		  <entry>Y'<subscript>01[3:0]</subscript>Y'<subscript>02[9:6]</subscript></entry>
		  <entry>Y'<subscript>02[5:0]</subscript>Y'<subscript>03[9:8]</subscript></entry>
		  <entry>Y'<subscript>03[7:0]</subscript></entry>
		</row>
	      </tbody>
	    </tgroup>
	  </informaltable>
	</para>
      </formalpara>
    </example>
  </refsect1>
</refentry>