Back to home page

OSCL-LXR

 
 

    


0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002 
0003 .. _V4L2-PIX-FMT-Y12I:
0004 
0005 **************************
0006 V4L2_PIX_FMT_Y12I ('Y12I')
0007 **************************
0008 
0009 Interleaved grey-scale image, e.g. from a stereo-pair
0010 
0011 
0012 Description
0013 ===========
0014 
0015 This is a grey-scale image with a depth of 12 bits per pixel, but with
0016 pixels from 2 sources interleaved and bit-packed. Each pixel is stored
0017 in a 24-bit word in the little-endian order. On a little-endian machine
0018 these pixels can be deinterlaced using
0019 
0020 .. code-block:: c
0021 
0022     __u8 *buf;
0023     left0 = 0xfff & *(__u16 *)buf;
0024     right0 = *(__u16 *)(buf + 1) >> 4;
0025 
0026 **Bit-packed representation.**
0027 pixels cross the byte boundary and have a ratio of 3 bytes for each
0028 interleaved pixel.
0029 
0030 .. flat-table::
0031     :header-rows:  0
0032     :stub-columns: 0
0033 
0034     * - Y'\ :sub:`0left[7:0]`
0035       - Y'\ :sub:`0right[3:0]`\ Y'\ :sub:`0left[11:8]`
0036       - Y'\ :sub:`0right[11:4]`