← Documents Documentation/userspace-api/media/v4l/pixfmt-srggb14.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / V4L

16-bit word로 확장한 14-bit Bayer 형식

14-bit Bayer 표본을 little-endian 16-bit word에 넣고 상위 2 bit를 0으로 채웁니다.

Source pathDocumentation/userspace-api/media/v4l/pixfmt-srggb14.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

pixfmt-srggb14.rst:1-77

14-bit Bayer 표본을 little-endian 16-bit word에 넣고 상위 2 bit를 0으로 채웁니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2
3 .. _V4L2-PIX-FMT-SRGGB14:
4 .. _v4l2-pix-fmt-sbggr14:
5 .. _v4l2-pix-fmt-sgbrg14:
6 .. _v4l2-pix-fmt-sgrbg14:
7
8
9 ***************************************************************************************************************************
10 V4L2_PIX_FMT_SRGGB14 ('RG14'), V4L2_PIX_FMT_SGRBG14 ('GR14'), V4L2_PIX_FMT_SGBRG14 ('GB14'), V4L2_PIX_FMT_SBGGR14 ('BG14'),
11 ***************************************************************************************************************************
12
13
14 ========================================
15 14-bit Bayer formats expanded to 16 bits
16 ========================================
17
18
19 Description
20 ===========
21
22 These four pixel formats are raw sRGB / Bayer formats with 14 bits per
23 colour. Each sample is stored in a 16-bit word, with two unused high
24 bits filled with zeros. Each n-pixel row contains n/2 green samples
25 and n/2 blue or red samples, with alternating red and blue rows. Bytes
26 are stored in memory in little endian order. They are conventionally
27 described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an
28 example of a small V4L2_PIX_FMT_SBGGR14 image:
29
30 **Byte Order.**
31 Each cell is one byte, the two most significant bits in the high bytes are
32 zero.
33
34
35
36 .. flat-table::
37 :header-rows: 0
38 :stub-columns: 0
39 :widths: 2 1 1 1 1 1 1 1 1
40
41
42 * - start + 0:
43 - B\ :sub:`00low`
44 - B\ :sub:`00high`
45 - G\ :sub:`01low`
46 - G\ :sub:`01high`
47 - B\ :sub:`02low`
48 - B\ :sub:`02high`
49 - G\ :sub:`03low`
50 - G\ :sub:`03high`
51 * - start + 8:
52 - G\ :sub:`10low`
53 - G\ :sub:`10high`
54 - R\ :sub:`11low`
55 - R\ :sub:`11high`
56 - G\ :sub:`12low`
57 - G\ :sub:`12high`
58 - R\ :sub:`13low`
59 - R\ :sub:`13high`
60 * - start + 16:
61 - B\ :sub:`20low`
62 - B\ :sub:`20high`
63 - G\ :sub:`21low`
64 - G\ :sub:`21high`
65 - B\ :sub:`22low`
66 - B\ :sub:`22high`
67 - G\ :sub:`23low`
68 - G\ :sub:`23high`
69 * - start + 24:
70 - G\ :sub:`30low`
71 - G\ :sub:`30high`
72 - R\ :sub:`31low`
73 - R\ :sub:`31high`
74 - G\ :sub:`32low`
75 - G\ :sub:`32high`
76 - R\ :sub:`33low`
77 - R\ :sub:`33high`
78

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

14-bit Bayer의 16-bit little-endian 배치

1-77

`V4L2_PIX_FMT_SRGGB14` (`RG14`), `V4L2_PIX_FMT_SGRBG14` (`GR14`), `V4L2_PIX_FMT_SGBRG14` (`GB14`), `V4L2_PIX_FMT_SBGGR14` (`BG14`)은 color당 14 bit인 raw sRGB/Bayer 형식입니다. 각 표본은 16-bit word에 저장되고 사용하지 않는 상위 2 bit는 0입니다.

각 행에는 green 표본 n/2개와 blue 또는 red 표본 n/2개가 있으며 red 행과 blue 행이 번갈아 나옵니다. Byte는 little-endian 순서이고 아래 SBGGR14 예에서 각 cell은 1 byte입니다.

SBGGR14 16-bit 확장 예
OffsetB0B1B2B3B4B5B6B7
start + 0B00[7:0]B00[13:8]+bits7:6=0G01[7:0]G01[13:8]+bits7:6=0B02[7:0]B02[13:8]+bits7:6=0G03[7:0]G03[13:8]+bits7:6=0
start + 8G10[7:0]G10[13:8]+bits7:6=0R11[7:0]R11[13:8]+bits7:6=0G12[7:0]G12[13:8]+bits7:6=0R13[7:0]R13[13:8]+bits7:6=0
start + 16B20[7:0]B20[13:8]+bits7:6=0G21[7:0]G21[13:8]+bits7:6=0B22[7:0]B22[13:8]+bits7:6=0G23[7:0]G23[13:8]+bits7:6=0
start + 24G30[7:0]G30[13:8]+bits7:6=0R31[7:0]R31[13:8]+bits7:6=0G32[7:0]G32[13:8]+bits7:6=0R33[7:0]R33[13:8]+bits7:6=0

표본마다 low byte 뒤에 유효 6 bit와 상위 2-bit 0 padding을 담은 high byte가 옵니다.

.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later

.. _V4L2-PIX-FMT-SRGGB14:
.. _v4l2-pix-fmt-sbggr14:
.. _v4l2-pix-fmt-sgbrg14:
.. _v4l2-pix-fmt-sgrbg14:


***************************************************************************************************************************
V4L2_PIX_FMT_SRGGB14 ('RG14'), V4L2_PIX_FMT_SGRBG14 ('GR14'), V4L2_PIX_FMT_SGBRG14 ('GB14'), V4L2_PIX_FMT_SBGGR14 ('BG14'),
***************************************************************************************************************************


========================================
14-bit Bayer formats expanded to 16 bits
========================================


Description
===========

These four pixel formats are raw sRGB / Bayer formats with 14 bits per
colour. Each sample is stored in a 16-bit word, with two unused high
bits filled with zeros. Each n-pixel row contains n/2 green samples
and n/2 blue or red samples, with alternating red and blue rows. Bytes
are stored in memory in little endian order. They are conventionally
described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an
example of a small V4L2_PIX_FMT_SBGGR14 image:

**Byte Order.**
Each cell is one byte, the two most significant bits in the high bytes are
zero.



.. flat-table::
    :header-rows:  0
    :stub-columns: 0
    :widths:       2 1 1 1 1 1 1 1 1


    * - start + 0:
      - B\ :sub:`00low`
      - B\ :sub:`00high`
      - G\ :sub:`01low`
      - G\ :sub:`01high`
      - B\ :sub:`02low`
      - B\ :sub:`02high`
      - G\ :sub:`03low`
      - G\ :sub:`03high`
    * - start + 8:
      - G\ :sub:`10low`
      - G\ :sub:`10high`
      - R\ :sub:`11low`
      - R\ :sub:`11high`
      - G\ :sub:`12low`
      - G\ :sub:`12high`
      - R\ :sub:`13low`
      - R\ :sub:`13high`
    * - start + 16:
      - B\ :sub:`20low`
      - B\ :sub:`20high`
      - G\ :sub:`21low`
      - G\ :sub:`21high`
      - B\ :sub:`22low`
      - B\ :sub:`22high`
      - G\ :sub:`23low`
      - G\ :sub:`23high`
    * - start + 24:
      - G\ :sub:`30low`
      - G\ :sub:`30high`
      - R\ :sub:`31low`
      - R\ :sub:`31high`
      - G\ :sub:`32low`
      - G\ :sub:`32high`
      - R\ :sub:`33low`
      - R\ :sub:`33high`