ArticleslgStudy

science

YCbCr

YCbCr is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand YCbCr rather than just read about it. In short: YCbCr, Y′CbCr, also written as YCBCR or Y′CBCR, is a family of color spaces used as a part of the color image pipeline in digital video and photography systems. Like YPBPR, it is based on RGB primaries; the two are generally equivalent, but YCBCR is intended for digital video, while YPBPR is designed for use in analog systems.

YCbCr — main illustration
YCbCr — illustration

Key takeaways

  • YCbCr belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect YCbCr to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of YCbCr from memory before moving on to harder problems.

Reference excerpt

YCbCr, Y′CbCr, also written as YCBCR or Y′CBCR, is a family of color spaces used as a part of the color image pipeline in digital video and photography systems. Like YPBPR, it is based on RGB primaries; the two are generally equivalent, but YCBCR is intended for digital video, while YPBPR is designed for use in analog systems. Y′ is the luma component, and CB and CR are the blue-difference and red-difference chroma components. Luma Y′ (with prime) is distinguished from luminance Y, meaning that light intensity is nonlinearly encoded based on gamma corrected RGB primaries. Y′CbCr color spaces are defined by a mathematical coordinate transformation from an associated RGB primaries and white point. If the underlying RGB color space is absolute, the Y′CbCr color space is an absolute color space as well; conversely, if the RGB space is ill-defined, so is Y′CbCr. The transformation is defined in equations 32, 33 in ITU-T H.273.

Rationale Black and white television was in wide use before color television. Due to the number of existing TV sets and cameras, some form of backward compatibility was desired for the new color broadcasts. French engineer Georges Valensi developed and patented a system for transmitting RGB color as luma and chroma signals in 1938. This would allow existing black and white televisions to process only the luma information and ignore the chroma, essentially packaging a black and white video within the color video. Because of this backward compatibility, the system based on Valensi's idea was called compatible color. In the same way, a black and white broadcast could be received by a color television without any additional processing circuitry. To preserve existing broadcast frequency allocations, the new chroma information was given lower bandwidth than the luma information. This is possible because humans are more sensitive to the black-and-white information (see image example to the right). This is called chroma subsampling. YCbCr and Y′CbCr are a practical approximation to color processing and perceptual uniformity, where the primary colors corresponding roughly to red, green, and blue are processed into perceptually meaningful information. By doing this, subsequent image/video processing, transmission and storage can do operations and introduce errors in perceptually meaningful ways. Y′CbCr is used to separate out a luma signal (Y′) that can be stored with high resolution or transmitted at high bandwidth and two chroma components (CB and CR) that can be bandwidth-reduced, subsampled, compressed, or otherwise treated separately for improved system efficiency.

Conversions YCbCr is sometimes abbreviated to YCC. Typically the terms Y′CbCr, YCbCr, YPbPr, and Y′UV are used interchangeably, leading to some confusion. The main difference is that YPbPr is used with analog images and YCbCr with digital images, leading to different scaling values for Umax and Vmax (in YCbCr both are 12) when converting to/from YUV. Y′CbCr and YCbCr differ due to the values being gamma corrected or not. The equations below give a better picture of the common principles and general differences between these formats.

RGB conversion

R'G'B' to Y′PbPr

Y′CbCr signals (prior to scaling and offsets to place the signals into digital form) are called YPbPr and are created from the corresponding gamma-adjusted RGB (red, green, and blue) source using three defined constants KR, KG, and KB as follows:

Y′=KR⋅R′+KG⋅G′+KB⋅B′PB=12⋅B′−Y′1−KBPR=12⋅R′−Y′1−KR where KR, KG, and KB are ordinarily derived from the definition of the corresponding RGB space and required to satisfy KR+KG+KB=1. The equivalent matrix manipulation is often referred to as the "color matrix":

[Y′PBPR]=[KRKGKB−12⋅KR1−KB−12⋅KG1−KB1212−12⋅KG1−KR−12⋅KB1−KR][R′G′B′] Here, the prime (′) symbols mean gamma correction is being used; thus R′, G′, and B′ nominally range from 0 to 1, with 0 representing the minimum intensity (e.g., for display of the color black) and 1 the maximum (e.g., for display of the color white). The resulting luma (Y) value will then have a nominal range from 0 to 1, and the chroma (PB and PR) values will have a nominal range from -0.5 to +0.5. The reverse conversion process can be derived by inverting the above equations.

[R′G′B′]=[102−2⋅KR1−KBKG⋅(2−2⋅KB)−KRKG⋅(2−2⋅KR)12−2⋅KB0][Y′PBPR]

Y′PbPr to Y′CbCr When representing the signals in digital form, the results are scaled and rounded and offsets are typically added. For example, the scaling and offset applied to the Y′ component per specification (e.g. MPEG-2) results in the value of 16 for black and the value of 235 for white when using an 8-bit representation. The standard has 8-bit digitized versions of CB and CR scaled to a different range of 16 to 240. Consequently, rescaling by the fraction (235-16)/(240-16) = 219/224 is sometimes required when doing color matrixing or processing in YCbCr space, resulting in quantization distortions when the subsequent processing is not performed using higher bit depths. The scaling that results in the use of a smaller range of digital values than what might appear to be desirable for representation of the nominal range of the input data allows for some "overshoot" and "undershoot" during processing without necessitating undesirable clipping. This "headroom" and "toeroom" (or "footroom") can also be used for extension of the nominal color gamut as specified by xvYCC. The value 235 accommodates a maximum overshoot of (255 - 235) / (235 - 16) = 9.1%, which is slightly larger than the theoretical maximum overshoot (Gibbs' Phenomenon) of about 8.9% of the maximum (black-to-white) step. The toeroom is smaller, allowing only 16 / 219 = 7.3% overshoot (here in opposite direction), which is less than the theoretical maximum overshoot of 8.9%. In addition, because values 0 and 255 are reserved in HDMI, the room is actually slightly less.

Y′CbCr to xvYCC

Since the equations defining Y′CbCr are formed in a way that rotates the entire nominal RGB color cube and scales it to fit within a (larger) YCbCr color cube, there are some points within the Y′CbCr color cube that cannot be represented in the corresponding RGB domain (at least not within the nominal RGB range). This causes some difficulty in determining how to correctly interpret and display some Y′CbCr signals. These out-of-range Y′CbCr values are used by xvYCC to encode colors outside the BT.709 gamut.

ITU-R BT.601 conversion

… excerpt ends here. Continue reading the full article.

Illustrations

YCbCr: The Y′CbCr color space
The Y′CbCr color space
YCbCr: The CbCr plane at constant luma Y′=0.5 (colors outside of the RGB gamut are also displayed, in an approximate way)
The CbCr plane at constant luma Y′=0.5 (colors outside of the RGB gamut are also displayed, in an approximate way)
YCbCr: A color image and its Y′, CB and CR components. The Y′ image is essentially a grayscale copy of the main image.
A color image and its Y′, CB and CR components. The Y′ image is essentially a grayscale copy of the main image.
YCbCr: RGB to YCbCr conversion
RGB to YCbCr conversion
YCbCr: Rec. 709 compared with Rec. 2020
Rec. 709 compared with Rec. 2020

Worked examples

Example 1 — a first encounter with YCbCr

Start with the simplest possible case. Write down what YCbCr claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to YCbCr before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about YCbCr ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of YCbCr

In research
YCbCr appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses YCbCr in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
YCbCr is common in secondary-school and first-year university syllabi. It links to neighbouring topics Color space, so understanding it makes those chapters shorter.
In everyday life
Look for YCbCr outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “YCbCr” →

How to study YCbCr in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what YCbCr means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain YCbCr out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is YCbCr in simple terms?

YCbCr, Y′CbCr, also written as YCBCR or Y′CBCR, is a family of color spaces used as a part of the color image pipeline in digital video and photography systems. Like YPBPR, it is based on RGB primaries; the two are generally equivalent, but YCBCR is intended for digital video, while YPBPR is design…

Why does YCbCr matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study YCbCr?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on YCbCr.

Tags

  • Color space

Keep exploring