← Documents Documentation/userspace-api/media/v4l/ext-ctrls-colorimetry.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / V4L

Colorimetry Control Reference

HDR10 content light level과 mastering display color-volume metadata 제어를 설명합니다.

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

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

1. 요약·해설

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

요약·해설

ext-ctrls-colorimetry.rst:1-93

HDR10 metadata는 콘텐츠의 최대 밝기와 mastering display의 원색·white point·luminance 범위를 전달합니다. 0이 '상한 없음'인 CLL 값과 chromaticity·luminance 정수 배율, G/B/R 배열 순서를 정확히 지켜야 합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2
3 .. _colorimetry-controls:
4
5 *****************************
6 Colorimetry Control Reference
7 *****************************
8
9 The Colorimetry class includes controls for High Dynamic Range
10 imaging for representing colors in digital images and video. The
11 controls should be used for video and image encoding and decoding
12 as well as in HDMI receivers and transmitters.
13
14 Colorimetry Control IDs
15 -----------------------
16
17 .. _colorimetry-control-id:
18
19 ``V4L2_CID_COLORIMETRY_CLASS (class)``
20 The Colorimetry class descriptor. Calling
21 :ref:`VIDIOC_QUERYCTRL` for this control will
22 return a description of this control class.
23
24 ``V4L2_CID_COLORIMETRY_HDR10_CLL_INFO (struct)``
25 The Content Light Level defines upper bounds for the nominal target
26 brightness light level of the pictures.
27
28 .. c:type:: v4l2_ctrl_hdr10_cll_info
29
30 .. cssclass:: longtable
31
32 .. flat-table:: struct v4l2_ctrl_hdr10_cll_info
33 :header-rows: 0
34 :stub-columns: 0
35 :widths: 1 1 2
36
37 * - __u16
38 - ``max_content_light_level``
39 - The upper bound for the maximum light level among all individual
40 samples for the pictures of a video sequence, cd/m\ :sup:`2`.
41 When equal to 0 no such upper bound is present.
42 * - __u16
43 - ``max_pic_average_light_level``
44 - The upper bound for the maximum average light level among the
45 samples for any individual picture of a video sequence,
46 cd/m\ :sup:`2`. When equal to 0 no such upper bound is present.
47
48 ``V4L2_CID_COLORIMETRY_HDR10_MASTERING_DISPLAY (struct)``
49 The mastering display defines the color volume (the color primaries,
50 white point and luminance range) of a display considered to be the
51 mastering display for the current video content.
52
53 .. c:type:: v4l2_ctrl_hdr10_mastering_display
54
55 .. cssclass:: longtable
56
57 .. flat-table:: struct v4l2_ctrl_hdr10_mastering_display
58 :header-rows: 0
59 :stub-columns: 0
60 :widths: 1 1 2
61
62 * - __u16
63 - ``display_primaries_x[3]``
64 - Specifies the normalized x chromaticity coordinate of the color
65 primary component c of the mastering display in increments of 0.00002.
66 For describing the mastering display that uses Red, Green and Blue
67 color primaries, index value c equal to 0 corresponds to the Green
68 primary, c equal to 1 corresponds to Blue primary and c equal to 2
69 corresponds to the Red color primary.
70 * - __u16
71 - ``display_primaries_y[3]``
72 - Specifies the normalized y chromaticity coordinate of the color
73 primary component c of the mastering display in increments of 0.00002.
74 For describing the mastering display that uses Red, Green and Blue
75 color primaries, index value c equal to 0 corresponds to the Green
76 primary, c equal to 1 corresponds to Blue primary and c equal to 2
77 corresponds to Red color primary.
78 * - __u16
79 - ``white_point_x``
80 - Specifies the normalized x chromaticity coordinate of the white
81 point of the mastering display in increments of 0.00002.
82 * - __u16
83 - ``white_point_y``
84 - Specifies the normalized y chromaticity coordinate of the white
85 point of the mastering display in increments of 0.00002.
86 * - __u32
87 - ``max_luminance``
88 - Specifies the nominal maximum display luminance of the mastering
89 display in units of 0.0001 cd/m\ :sup:`2`.
90 * - __u32
91 - ``min_luminance``
92 - specifies the nominal minimum display luminance of the mastering
93 display in units of 0.0001 cd/m\ :sup:`2`.
94

3. 한국어 전문 번역

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

Colorimetry와 HDR10 metadata

1-23

Colorimetry 제어 클래스는 디지털 image와 video에서 색을 표현하기 위한 High Dynamic Range metadata를 제공합니다. Video·image encoder와 decoder뿐 아니라 HDMI receiver와 transmitter도 이 제어를 사용할 수 있습니다.

`V4L2_CID_COLORIMETRY_CLASS`는 Colorimetry class descriptor입니다. 이 control에 `VIDIOC_QUERYCTRL`을 호출하면 class 설명을 얻습니다.

HDR metadata 전달
Mastering 단계에서 색 원색·white point·luminance 기록Content light-level 상한 계산Encoder가 HDR10 metadata control 설정HDMI transmitter가 metadata 전송Receiver·decoder·display가 tone mapping에 활용

콘텐츠가 밝기와 mastering display 정보를 signal chain 전체에 전달합니다.

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

.. _colorimetry-controls:

*****************************
Colorimetry Control Reference
*****************************

The Colorimetry class includes controls for High Dynamic Range
imaging for representing colors in digital images and video. The
controls should be used for video and image encoding and decoding
as well as in HDMI receivers and transmitters.

Colorimetry Control IDs
-----------------------

.. _colorimetry-control-id:

``V4L2_CID_COLORIMETRY_CLASS (class)``
    The Colorimetry class descriptor. Calling
    :ref:`VIDIOC_QUERYCTRL` for this control will
    return a description of this control class.

HDR10 Content Light Level

24-47

`V4L2_CID_COLORIMETRY_HDR10_CLL_INFO`는 영상 sequence의 nominal target brightness 상한을 `v4l2_ctrl_hdr10_cll_info` 구조체로 전달합니다.

HDR10 CLL 구조체
필드의미
`max_content_light_level`Sequence의 모든 개별 sample 가운데 최대 light level의 상한입니다. 단위는 cd/m²입니다.
`max_pic_average_light_level`Sequence의 각 picture별 평균 light level 가운데 최대값의 상한입니다. 단위는 cd/m²입니다.

두 값 모두 cd/m² 단위이며 0은 해당 상한이 제공되지 않았음을 뜻합니다.

CLL metadata는 실제 display peak luminance를 강제하지 않고 콘텐츠가 의도한 밝기 범위를 알려 줍니다. Display 또는 tone mapper는 자체 능력과 이 상한을 함께 사용합니다.

``V4L2_CID_COLORIMETRY_HDR10_CLL_INFO (struct)``
    The Content Light Level defines upper bounds for the nominal target
    brightness light level of the pictures.

.. c:type:: v4l2_ctrl_hdr10_cll_info

.. cssclass:: longtable

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

    * - __u16
      - ``max_content_light_level``
      - The upper bound for the maximum light level among all individual
        samples for the pictures of a video sequence, cd/m\ :sup:`2`.
        When equal to 0 no such upper bound is present.
    * - __u16
      - ``max_pic_average_light_level``
      - The upper bound for the maximum average light level among the
        samples for any individual picture of a video sequence,
        cd/m\ :sup:`2`. When equal to 0 no such upper bound is present.

HDR10 mastering display 색 부피

48-93

`V4L2_CID_COLORIMETRY_HDR10_MASTERING_DISPLAY`는 현재 콘텐츠를 제작할 때 기준으로 삼은 mastering display의 color volume을 `v4l2_ctrl_hdr10_mastering_display`로 전달합니다. Color primaries, white point와 luminance range가 포함됩니다.

Mastering display 구조체
필드의미
`display_primaries_x[3]`원색의 normalized x chromaticity 좌표입니다. 단위 증분은 0.00002이며 index 0=Green, 1=Blue, 2=Red입니다.
`display_primaries_y[3]`원색의 normalized y chromaticity 좌표입니다. 단위 증분과 G/B/R index 순서는 x 배열과 같습니다.
`white_point_x`Mastering display white point의 normalized x 좌표이며 0.00002 단위입니다.
`white_point_y`Mastering display white point의 normalized y 좌표이며 0.00002 단위입니다.
`max_luminance`Mastering display의 nominal 최대 luminance이며 0.0001 cd/m² 단위입니다.
`min_luminance`Mastering display의 nominal 최소 luminance이며 0.0001 cd/m² 단위입니다.

좌표와 luminance의 정수 배율을 그대로 보존합니다.

RGB 원색 배열의 순서가 일반적인 R/G/B가 아니라 G/B/R이므로 index를 바꾸어 전달하면 색 부피가 잘못 해석됩니다. Integer 값을 실제 좌표와 휘도로 바꿀 때는 명시된 증분을 곱합니다.

``V4L2_CID_COLORIMETRY_HDR10_MASTERING_DISPLAY (struct)``
    The mastering display defines the color volume (the color primaries,
    white point and luminance range) of a display considered to be the
    mastering display for the current video content.

.. c:type:: v4l2_ctrl_hdr10_mastering_display

.. cssclass:: longtable

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

    * - __u16
      - ``display_primaries_x[3]``
      - Specifies the normalized x chromaticity coordinate of the color
        primary component c of the mastering display in increments of 0.00002.
        For describing the mastering display that uses Red, Green and Blue
        color primaries, index value c equal to 0 corresponds to the Green
        primary, c equal to 1 corresponds to Blue primary and c equal to 2
        corresponds to the Red color primary.
    * - __u16
      - ``display_primaries_y[3]``
      - Specifies the normalized y chromaticity coordinate of the color
        primary component c of the mastering display in increments of 0.00002.
        For describing the mastering display that uses Red, Green and Blue
        color primaries, index value c equal to 0 corresponds to the Green
        primary, c equal to 1 corresponds to Blue primary and c equal to 2
        corresponds to Red color primary.
    * - __u16
      - ``white_point_x``
      - Specifies the normalized x chromaticity coordinate of the white
        point of the mastering display in increments of 0.00002.
    * - __u16
      - ``white_point_y``
      - Specifies the normalized y chromaticity coordinate of the white
        point of the mastering display in increments of 0.00002.
    * - __u32
      - ``max_luminance``
      - Specifies the nominal maximum display luminance of the mastering
        display in units of 0.0001 cd/m\ :sup:`2`.
    * - __u32
      - ``min_luminance``
      - specifies the nominal minimum display luminance of the mastering
        display in units of 0.0001 cd/m\ :sup:`2`.