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

Linux 6.18.37 · Userspace API / Media / V4L

8-bit Bayer 형식

8-bit raw Bayer 표본을 pixel당 한 byte에 저장하는 형식입니다.

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

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

1. 요약·해설

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

요약·해설

pixfmt-srggb8.rst:1-55

8-bit raw Bayer 표본을 pixel당 한 byte에 저장하는 형식입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2
3 .. _V4L2-PIX-FMT-SRGGB8:
4 .. _v4l2-pix-fmt-sbggr8:
5 .. _v4l2-pix-fmt-sgbrg8:
6 .. _v4l2-pix-fmt-sgrbg8:
7
8 ***************************************************************************************************************************
9 V4L2_PIX_FMT_SRGGB8 ('RGGB'), V4L2_PIX_FMT_SGRBG8 ('GRBG'), V4L2_PIX_FMT_SGBRG8 ('GBRG'), V4L2_PIX_FMT_SBGGR8 ('BA81'),
10 ***************************************************************************************************************************
11
12
13 ===================
14 8-bit Bayer formats
15 ===================
16
17 Description
18 ===========
19
20 These four pixel formats are raw sRGB / Bayer formats with 8 bits per
21 sample. Each sample is stored in a byte. Each n-pixel row contains n/2
22 green samples and n/2 blue or red samples, with alternating red and
23 blue rows. They are conventionally described as GRGR... BGBG...,
24 RGRG... GBGB..., etc. Below is an example of a small V4L2_PIX_FMT_SBGGR8 image:
25
26 **Byte Order.**
27 Each cell is one byte.
28
29
30
31
32 .. flat-table::
33 :header-rows: 0
34 :stub-columns: 0
35
36 * - start + 0:
37 - B\ :sub:`00`
38 - G\ :sub:`01`
39 - B\ :sub:`02`
40 - G\ :sub:`03`
41 * - start + 4:
42 - G\ :sub:`10`
43 - R\ :sub:`11`
44 - G\ :sub:`12`
45 - R\ :sub:`13`
46 * - start + 8:
47 - B\ :sub:`20`
48 - G\ :sub:`21`
49 - B\ :sub:`22`
50 - G\ :sub:`23`
51 * - start + 12:
52 - G\ :sub:`30`
53 - R\ :sub:`31`
54 - G\ :sub:`32`
55 - R\ :sub:`33`
56

3. 한국어 전문 번역

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

8-bit Bayer의 byte 배치

1-55

`V4L2_PIX_FMT_SRGGB8` (`RGGB`), `V4L2_PIX_FMT_SGRBG8` (`GRBG`), `V4L2_PIX_FMT_SGBRG8` (`GBRG`), `V4L2_PIX_FMT_SBGGR8` (`BA81`)은 표본당 8 bit인 raw sRGB/Bayer 형식입니다. 각 표본은 byte 하나에 저장됩니다.

각 n-pixel 행은 green 표본 n/2개와 blue 또는 red 표본 n/2개로 구성되며 red 행과 blue 행이 번갈아 나옵니다. 아래 작은 SBGGR8 예에서 각 cell은 1 byte입니다.

SBGGR8 4x4 예
OffsetB0B1B2B3
start + 0B00G01B02G03
start + 4G10R11G12R13
start + 8B20G21B22G23
start + 12G30R31G32R33

한 pixel이 한 byte를 차지합니다.

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

.. _V4L2-PIX-FMT-SRGGB8:
.. _v4l2-pix-fmt-sbggr8:
.. _v4l2-pix-fmt-sgbrg8:
.. _v4l2-pix-fmt-sgrbg8:

***************************************************************************************************************************
V4L2_PIX_FMT_SRGGB8 ('RGGB'), V4L2_PIX_FMT_SGRBG8 ('GRBG'), V4L2_PIX_FMT_SGBRG8 ('GBRG'), V4L2_PIX_FMT_SBGGR8 ('BA81'),
***************************************************************************************************************************


===================
8-bit Bayer formats
===================

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

These four pixel formats are raw sRGB / Bayer formats with 8 bits per
sample. Each sample is stored in a byte. Each n-pixel row contains n/2
green samples and n/2 blue or red samples, with alternating red and
blue rows. They are conventionally described as GRGR... BGBG...,
RGRG... GBGB..., etc. Below is an example of a small V4L2_PIX_FMT_SBGGR8 image:

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




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

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