# xvYCC

Sony's x.v.Color logo

xvYCC or extended-gamut YCbCr is a color space that can be used in the video electronics of television sets to support a gamut 1.8 times as large as that of the sRGB color space.[1][2][3] xvYCC was proposed by Sony,[4] specified by the IEC in October 2005 and published in January 2006 as IEC 61966-2-4. xvYCC extends the ITU-R BT.709 tone curve by defining over-ranged values. xvYCC-encoded video retains the same color primaries and white point as BT.709, and uses either a BT.601 or BT.709 RGB-to-YCC conversion matrix and encoding.[4] This allows it to travel through existing digital limited range YCC data paths, and any colors within the normal gamut will be compatible.[4] It works by allowing negative RGB inputs and expanding the output chroma. These are used to encode more saturated colors by using a greater part of the RGB values that can be encoded in the YCbCr signal compared with those used in Broadcast Safe Level.[4] The extra-gamut colors can then be displayed by a device whose underlying technology is not limited by the standard primaries.[4]

In a paper published by Society for Information Display in 2006, the authors mapped the 769 colors in the Munsell Color Cascade (so called Michael Pointer's gamut) to the BT.709 space and to the xvYCC space. About 55% of the Munsell colors could be mapped to the sRGB gamut, but 100% of those colors map to within the xvYCC gamut.[5] Deeper hues can be created – for example a deeper cyan by giving the opposing primary (red) a negative coefficient. The quantization range of the xvYCC601 and xvYCC709 colorimetries is always Limited Range.[6]

## Background

Camera and display technology is evolving with more distinct primaries, spaced farther apart per the CIE chromaticity diagram. Displays with more separated primaries permit a larger gamut of displayable colors, however, color data needs to be available to make use of the larger gamut color space. xvYCC is an extended gamut color space that is backwards compatible with the existing BT.709 YCbCr broadcast signal by making use of otherwise unused data portions of the signal.

The BT.709 YCbCr signal has unused code space, a limitation imposed for broadcasting purposes. In particular only 16-240 is used for the color Cb/Cr channels out of the 0-255 digital values available for 8 bit data encoding. xvYCC makes use of this portion of the signal to store extended gamut color data by using code values 1-15 and 241-254 in the Cb/Cr channels for gamut-extension. [7]

## Definition

xvYCC expands the chroma values to 1-254 while keeping the luma (Y) value range at 16-235 (though Superwhite may be supported), the same as Rec. 709. First the OETF (TransferCharacteristics 11 per H.273[8] as originally specified by the first amendment to H.264) is expanded to allow negative R'G'B' inputs such that:[5]

${\displaystyle V={\begin{cases}-1.099(-L)^{0.45}+0.099&L\leq -0.018\\4.500L&-0.018

Here 1.099 number has the value 1 + 5.5 * β = 1.099296826809442... and β has the value 0.018053968510807..., while 0.099 is 1.099 - 1.[8]

The YCC encoding matrix is unchanged, and can follow either Rec. 709 or Rec. 601 (MatrixCoefficients 1 and 5).[5]

The possible range for non-linear R’G’B’601 is between -1.0732 and 2.0835 and for R’G’B’709 is between -1.1206 and 2.1305.[9] That is achieved when YCC values are "1, 1, any" and "254, 254, any" in B' component.

xvYCC709 covers 37.19% of CIE 1976 u'v', while BT.709 only 33.24%.[10]

The last step encodes the values to a binary number (quantization). It is basically unchanged, except that a bit-depth n of more than 8 bits can be selected:[5]

{\displaystyle {\begin{aligned}Y_{{\rm {xv}}\ n}&=\left\lfloor 2^{n-8}(219\times Y+16)\right\rceil \\Cb_{{\rm {xv}}\ n}&=\left\lfloor 2^{n-8}(224\times Cb+128)\right\rceil \\Cr_{{\rm {xv}}\ n}&=\left\lfloor 2^{n-8}(224\times Cr+128)\right\rceil \\\end{aligned}}}

### Example

With negative primary amounts allowed, a cyan that lies outside the basic gamut of the primaries can be encoded as "green plus blue minus red".[4] Since the 16-255 Y range is used (255 value is reserved in HDMI standard for synchronization but may be in files) and since the values of Cb and Cr are only little restricted, a lot of high saturated colors outside the 0–255 RGB space can be encoded. For example, if YCbCr is 255, 128, 128, in the case of a full level YCbCr encoding (0–255), then the corresponding R'G'B' is 255, 255, 255 which is the maximum encodable luminance value in this color space. But if Y=255 and Cr and/or Cb are not 128, this codes for the maximum luminance but with an added color: one primary must necessarily be above 255 and cannot be converted to R'G'B'. Adapted software and hardware must be used during production to not clip the video data levels that are above the sRGB space. This is almost never the case for software working with an RGB core.

The more complex example is YCbCr BT.709 values 139, 151, 24 (that is RGB -21, 182, 181). That is out-of-gamut for BT.709, but is not for sYCC and xvYCC709, and to convert those values to display gamut you would convert to XYZ (0.27018, 0.40327, 0.54109) and then to display gamut.[11]

The XYZ matrix is as specified in Nvidia docs.[12]

A mechanism for signaling xvYCC support and transmitting the gamut boundary definition for xvYCC has been defined in the HDMI 1.3 Specification. No new mechanism is required for transmitting the xvYCC data itself, as it is compatible with HDMI's existing YCbCr formats, but the display needs to signal its readiness to accept the extra-gamut xvYCC values (in Colorimetry block of EDID, flags xvYCC709 and xvYCC601), and the source needs to signal the actual gamut in use in AVI InfoFrame and use gamut metadata packets to help the display to intelligently adapt extreme colors to its own gamut limitations.

This should not be confused with HDMI 1.3's other new color feature, deep color. This is a separate feature that increases the precision of brightness and color information, and is independent of xvYCC.

xvYCC is not supported by DVD-Video but is supported by the high-definition recording format AVCHD and PlayStation 3 and Blu-ray. It is also supported by some cameras, like Sony HDR-CX405, that does actually tag the video as xvYCC with BT.709 inside Sony's XAVC.[13]

## History

On January 7, 2013, Sony announced that it would release "Mastered in 4K" Blu-ray Disc titles which are sourced at 4K and encoded at 1080p.[14] "Mastered in 4K" 1080p Blu-ray Disc titles can be played on existing Blu-ray Disc players and will support a larger color space using xvYCC.[14][15][16]

On May 30, 2013, Eye IO announced that their encoding technology was licensed by Sony Pictures Entertainment to deliver 4K Ultra HD video with their "Sony 4K Video Unlimited Service".[17][18] Eye IO encodes their video assets at 3840 x 2160 and includes support for the xvYCC color space.[17][18]

## Hardware support

The following graphics hardware support xvYCC color space when connected to a display device supporting xvYCC:

• AMD 785G, 880G and 890GX chipsets with integrated graphics
• Intel HD Graphics integrated on some CPUs (except Pentium G6950 and Celeron G1101)
• nVidia GeForce 200 series and newer models

## References

1. ^ "HDMI 1.3 Update" (PDF). HDMI Licensing. 2006. Retrieved 2006-08-30.
2. ^
3. ^ "Color gamuts of Rec709 and xvYCC". res18h39.netlify.app. Retrieved 2021-01-29.
4. "xvYCC". Sony Global. Archived from the original on August 29, 2009. Retrieved 2009-08-13.
5. ^ a b c d Tatsuhiko Matsumoto; Yoshihide Shimpuku; Takehiro Nakatsue; Shuichi Haga; Hiroaki Eto; Yoshiyuki Akiyama & Naoya Katoh (2006). 19.2: xvYCC: A New Standard for Video Systems using Extended-Gamut YCC Color Space. SID INTERNATIONAL SYMPOSIUM. Society for Information Display. pp. 1130–1133. doi:10.1889/1.2433175.
6. ^ "A DTV Profile for Uncompressed High Speed Digital Interfaces (ANSI/CTA-861-H)". Consumer Technology Association®. p. 44. Retrieved 2021-03-11.{{cite web}}: CS1 maint: url-status (link)
7. ^ Naoya Katoh (2007). "New" Extended-gamut Color Space for Video Applications; xvYCC (IEC61966-2-4) (PDF). Retrieved 2009-08-13.
8. ^ a b "H.273: Coding-independent code points for video signal type identification". www.itu.int. Retrieved 2020-12-25.
9. ^ "IEC 61966-2-4:2006 | IEC Webstore". webstore.iec.ch. Retrieved 2021-01-29.
10. ^ Xu Yan; Li Yan; Li Guiling (May 2009). "A kind of nonlinear quantization method to extend the color gamut of DTV system". 2009 IEEE 13th International Symposium on Consumer Electronics: 141–143. doi:10.1109/ISCE.2009.5156953.
11. ^ "Color Calculator". res18h39.netlify.app. Retrieved 25 January 2021.
12. ^ "NVIDIA 2D Image And Signal Performance Primitives (NPP): RGBToXYZ". docs.nvidia.com. Retrieved 2021-01-29.
13. ^ "XAVC-S: How to export time/date metadata to subtitles (srt)?". www.videohelp.com.
14. ^ a b Richard Lawler (2013-01-07). "Sony to launch 4K digital distribution network this summer, 'mastered in 4K' Blu-ray discs". Engadget. Retrieved 2013-05-30.
15. ^ Seamus Byrne (2013-05-01). "Sony 'mastered in 4K' Blu-rays a mixed blessing". CNET. Retrieved 2013-05-30.
16. ^ "What is Mastered in 4K and does it make a difference?". Trusted Reviews. 2014-03-10. Retrieved 2020-12-24.
17. ^ a b "eyeIO Delivers Unprecedented Viewing Experience for Sony Pictures Content on Sony 4K UltraHD TVs". Eye IO, LLC. 2013-05-30. Retrieved 2013-06-05.
18. ^ a b Todd Sprangler (2013-05-30). "Sony Gears Up for 4K Ultra HD Internet Movie Service". Variety. Retrieved 2013-06-05.