Documentation/userspace-api/media/v4l/pixfmt-srggb16.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / V4L

16-bit Bayer 형식

16-bit raw Bayer 표본의 little-endian byte 순서를 설명합니다.

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

요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.

1. 요약·해설

원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.

요약·해설

pixfmt-srggb16.rst:1-71

16-bit raw Bayer 표본의 little-endian byte 순서를 설명합니다.

2. 영어 원문 전체

번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.

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

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.

16-bit Bayer의 little-endian byte 배치

1-71

`V4L2_PIX_FMT_SRGGB16` (`RG16`), `V4L2_PIX_FMT_SGRBG16` (`GR16`), `V4L2_PIX_FMT_SGBRG16` (`GB16`), `V4L2_PIX_FMT_SBGGR16` (`BYR2`)은 표본당 16 bit인 raw sRGB/Bayer 형식입니다. 각 표본은 16-bit word 하나에 저장됩니다.

각 n-pixel 행에는 green 표본 n/2개와 blue 또는 red 표본 n/2개가 있고 red 행과 blue 행이 번갈아 나옵니다. 관례적으로 `GRGR... BGBG...`, `RGRG... GBGB...`처럼 표현합니다. Byte는 little-endian 순서이며 아래 SBGGR16 예에서 각 cell은 1 byte입니다.

SBGGR16 4x4 예
OffsetB0B1B2B3B4B5B6B7
start + 0B00[7:0]B00[15:8]G01[7:0]G01[15:8]B02[7:0]B02[15:8]G03[7:0]G03[15:8]
start + 8G10[7:0]G10[15:8]R11[7:0]R11[15:8]G12[7:0]G12[15:8]R13[7:0]R13[15:8]
start + 16B20[7:0]B20[15:8]G21[7:0]G21[15:8]B22[7:0]B22[15:8]G23[7:0]G23[15:8]
start + 24G30[7:0]G30[15:8]R31[7:0]R31[15:8]G32[7:0]G32[15:8]R33[7:0]R33[15:8]

각 16-bit 표본의 low byte 뒤에 high byte가 옵니다.

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

.. _V4L2-PIX-FMT-SRGGB16:
.. _v4l2-pix-fmt-sbggr16:
.. _v4l2-pix-fmt-sgbrg16:
.. _v4l2-pix-fmt-sgrbg16:


***************************************************************************************************************************
V4L2_PIX_FMT_SRGGB16 ('RG16'), V4L2_PIX_FMT_SGRBG16 ('GR16'), V4L2_PIX_FMT_SGBRG16 ('GB16'), V4L2_PIX_FMT_SBGGR16 ('BYR2'),
***************************************************************************************************************************


====================
16-bit Bayer formats
====================


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

These four pixel formats are raw sRGB / Bayer formats with 16 bits per
sample. Each sample is stored in a 16-bit word. 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_SBGGR16 image:

**Byte Order.**
Each cell is one byte.

.. flat-table::
    :header-rows:  0
    :stub-columns: 0

    * - 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`