1 <refentry id="V4L2-PIX-FMT-Y12I">
3 <refentrytitle>V4L2_PIX_FMT_Y12I ('Y12I')</refentrytitle>
7 <refname><constant>V4L2_PIX_FMT_Y12I</constant></refname>
8 <refpurpose>Interleaved grey-scale image, e.g. from a stereo-pair</refpurpose>
11 <title>Description</title>
13 <para>This is a grey-scale image with a depth of 12 bits per pixel, but with
14 pixels from 2 sources interleaved and bit-packed. Each pixel is stored in a
15 24-bit word in the little-endian order. On a little-endian machine these pixels
16 can be deinterlaced using</para>
21 left0 = 0xfff & *(__u16 *)buf;
22 right0 = *(__u16 *)(buf + 1) >> 4;
27 <title><constant>V4L2_PIX_FMT_Y12I</constant> 2 pixel data stream taking 3 bytes</title>
30 <title>Bit-packed representation</title>
31 <para>pixels cross the byte boundary and have a ratio of 3 bytes for each
33 <informaltable frame="all">
34 <tgroup cols="3" align="center">
35 <colspec align="left" colwidth="2*" />
38 <entry>Y'<subscript>0left[7:0]</subscript></entry>
39 <entry>Y'<subscript>0right[3:0]</subscript>Y'<subscript>0left[11:8]</subscript></entry>
40 <entry>Y'<subscript>0right[11:4]</subscript></entry>