Documentation/userspace-api/media/v4l/colorspaces-details.rst
Source file repositories/reference/linux-study-clean/Documentation/userspace-api/media/v4l/colorspaces-details.rst
File Facts
- System
- Linux kernel
- Corpus path
Documentation/userspace-api/media/v4l/colorspaces-details.rst- Extension
.rst- Size
- 20762 bytes
- Lines
- 777
- Domain
- Support Tooling And Documentation
- Bucket
- Documentation
- Inferred role
- Support Tooling And Documentation: documentation
- Status
- atlas-only
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. c:namespace:: V4L
********************************
Detailed Colorspace Descriptions
********************************
.. _col-smpte-170m:
Colorspace SMPTE 170M (V4L2_COLORSPACE_SMPTE170M)
=================================================
The :ref:`smpte170m` standard defines the colorspace used by NTSC and
PAL and by SDTV in general. The default transfer function is
``V4L2_XFER_FUNC_709``. The default Y'CbCr encoding is
``V4L2_YCBCR_ENC_601``. The default Y'CbCr quantization is limited
range. The chromaticities of the primary colors and the white reference
are:
.. flat-table:: SMPTE 170M Chromaticities
:header-rows: 1
:stub-columns: 0
:widths: 1 1 2
* - Color
- x
- y
* - Red
- 0.630
- 0.340
* - Green
- 0.310
- 0.595
* - Blue
- 0.155
- 0.070
* - White Reference (D65)
- 0.3127
- 0.3290
The red, green and blue chromaticities are also often referred to as the
SMPTE C set, so this colorspace is sometimes called SMPTE C as well.
The transfer function defined for SMPTE 170M is the same as the one
defined in Rec. 709.
.. math::
L' = -1.099(-L)^{0.45} + 0.099 \text{, for } L \le-0.018
L' = 4.5L \text{, for } -0.018 < L < 0.018
L' = 1.099L^{0.45} - 0.099 \text{, for } L \ge 0.018
Inverse Transfer function:
.. math::
L = -\left( \frac{L' - 0.099}{-1.099} \right) ^{\frac{1}{0.45}} \text{, for } L' \le -0.081
L = \frac{L'}{4.5} \text{, for } -0.081 < L' < 0.081
L = \left(\frac{L' + 0.099}{1.099}\right)^{\frac{1}{0.45} } \text{, for } L' \ge 0.081
The luminance (Y') and color difference (Cb and Cr) are obtained with
the following ``V4L2_YCBCR_ENC_601`` encoding:
.. math::
Annotation
- Atlas domain: Support Tooling And Documentation / Documentation.
- Implementation status: atlas-only.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.