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

Linux 6.18.37 · Userspace API / Media / V4L

인덱스 이미지 형식

PAL8의 8-bit ARGB palette index와 framebuffer palette 제어를 설명합니다.

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

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

1. 요약·해설

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

요약·해설

pixfmt-indexed.rst:1-47

PAL8 pixel byte는 256-entry ARGB palette의 index이며 palette는 V4L2가 아니라 Linux framebuffer API로 관리합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2
3 .. _pixfmt-indexed:
4
5 **************
6 Indexed Format
7 **************
8
9 In this format each pixel is represented by an 8 bit index into a 256
10 entry ARGB palette. It is intended for
11 :ref:`Video Output Overlays <osd>` only. There are no ioctls to access
12 the palette, this must be done with ioctls of the Linux framebuffer API.
13
14
15
16 .. flat-table:: Indexed Image Format
17 :header-rows: 2
18 :stub-columns: 0
19
20 * - Identifier
21 - Code
22 -
23 - :cspan:`7` Byte 0
24 * -
25 -
26 - Bit
27 - 7
28 - 6
29 - 5
30 - 4
31 - 3
32 - 2
33 - 1
34 - 0
35 * .. _V4L2-PIX-FMT-PAL8:
36
37 - ``V4L2_PIX_FMT_PAL8``
38 - 'PAL8'
39 -
40 - i\ :sub:`7`
41 - i\ :sub:`6`
42 - i\ :sub:`5`
43 - i\ :sub:`4`
44 - i\ :sub:`3`
45 - i\ :sub:`2`
46 - i\ :sub:`1`
47 - i\ :sub:`0`
48

3. 한국어 전문 번역

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

PAL8 palette index

1-47

이 형식은 pixel 하나를 256-entry ARGB palette를 가리키는 8-bit index 하나로 표현합니다. 용도는 Video Output Overlay로 한정됩니다. V4L2에는 palette 자체에 접근하는 ioctl이 없으므로 Linux framebuffer API의 ioctl로 palette를 설정하거나 읽어야 합니다.

`V4L2_PIX_FMT_PAL8` byte 배치
항목설명
Byte 0 bit 7..0`i7 i6 i5 i4 i3 i2 i1 i0`
index 범위0부터 255까지의 ARGB palette entry
palette 제어Linux framebuffer API ioctl 사용

FourCC는 `PAL8`이며 byte 하나의 모든 bit가 palette index를 이룹니다.

Overlay pixel 해석
8-bit `PAL8` 값 읽기값을 palette index로 사용해당 ARGB entry 조회Video Output Overlay에 표시

Pixel byte에서 화면 색으로 이어지는 관계입니다.

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

.. _pixfmt-indexed:

**************
Indexed Format
**************

In this format each pixel is represented by an 8 bit index into a 256
entry ARGB palette. It is intended for
:ref:`Video Output Overlays <osd>` only. There are no ioctls to access
the palette, this must be done with ioctls of the Linux framebuffer API.



.. flat-table:: Indexed Image Format
    :header-rows:  2
    :stub-columns: 0

    * - Identifier
      - Code
      -
      - :cspan:`7` Byte 0
    * -
      -
      - Bit
      - 7
      - 6
      - 5
      - 4
      - 3
      - 2
      - 1
      - 0
    * .. _V4L2-PIX-FMT-PAL8:

      - ``V4L2_PIX_FMT_PAL8``
      - 'PAL8'
      -
      - i\ :sub:`7`
      - i\ :sub:`6`
      - i\ :sub:`5`
      - i\ :sub:`4`
      - i\ :sub:`3`
      - i\ :sub:`2`
      - i\ :sub:`1`
      - i\ :sub:`0`