18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci.. _V4L2-PIX-FMT-Y10BPACK:
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci******************************
68c2ecf20Sopenharmony_ciV4L2_PIX_FMT_Y10BPACK ('Y10B')
78c2ecf20Sopenharmony_ci******************************
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciGrey-scale image as a bit-packed array
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciDescription
138c2ecf20Sopenharmony_ci===========
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciThis is a packed grey-scale image format with a depth of 10 bits per
168c2ecf20Sopenharmony_cipixel. Pixels are stored in a bit-packed array of 10bit bits per pixel,
178c2ecf20Sopenharmony_ciwith no padding between them and with the most significant bits coming
188c2ecf20Sopenharmony_cifirst from the left.
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci**Bit-packed representation.**
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_cipixels cross the byte boundary and have a ratio of 5 bytes for each 4
238c2ecf20Sopenharmony_cipixels.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci.. flat-table::
268c2ecf20Sopenharmony_ci    :header-rows:  0
278c2ecf20Sopenharmony_ci    :stub-columns: 0
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci    * - Y'\ :sub:`00[9:2]`
308c2ecf20Sopenharmony_ci      - Y'\ :sub:`00[1:0]`\ Y'\ :sub:`01[9:4]`
318c2ecf20Sopenharmony_ci      - Y'\ :sub:`01[3:0]`\ Y'\ :sub:`02[9:6]`
328c2ecf20Sopenharmony_ci      - Y'\ :sub:`02[5:0]`\ Y'\ :sub:`03[9:8]`
338c2ecf20Sopenharmony_ci      - Y'\ :sub:`03[7:0]`
34