YUV


Example of U-V color plane, Y value = 0.5
YUV, also known as Y'CbCr and YPbPr, is a color space in which the Y stands for the luminance component (the brightness) and U and V are chrominance (color) components. It is commonly used in video applications, where it is also referred to as component video.

YUV signals are created from an original RGB (red, green and blue) source. The weighted values of R, G and B are added together to produce a single Y signal, representing the overall brightness, or luminance, of that spot. The U signal is then created by subtracting the Y from the blue signal of the original RGB, and V by subtracting the Y from the red. This can be accomplished easily with analog circuity.

The primary advantage of YUV is that it remains compatible with black and white analog television. The Y signal is essentially the same signal that would be broadcast from a normal black and white camera (with some subtle changes), and the U and V signals can simply be ignored. When used in a color setting the subtraction process is reversed, resulting in the original RGB color space.

Another advantage is that the signal in YUV can be easily manipulated to deliberately discard some information in order to reduce bandwidth. The human eye actually has fairly low color resolution, the high-resolution color images we see actually being processed by the visual system by combining the high-resolution black and white image with the low-resolution color image. Using this information to their advantage, standards such as NTSC reduce the amount of signal in the U and V considerably, leaving the eye to recombine them. For instance, NTSC saves only 11% of the original blue and 30% of the original red, throwing out the rest. Since the green is already encoded in the Y signal, the resulting U and V signals are substantially smaller than they would otherwise be if the original RGB or YUV signals were sent. This filtering out of the blue and red signals is trivial to accomplish once the signal is in YUV format.

However this process, obviously, reduces the quality of the image. In the 1950s when NTSC was being created this was not a real concern because common equipment couldn't display images any better than the quality of the signal they were already receiving. But today a modern television can display more information than is contained in these lossy signals. This has led to a number of attempts to record images with as much of the YUV signal as possible, including S-Video on VCRs. YUV was also used as the standard format for common video compression algorithms such as MPEG-2, which is used in digital television and for DVDs. The professional CCIR 601 uncompressed digital video format also uses the YUV colour space, for compatibility with previous analog video formats, which can then be easily mixed into any output format needed.

YUV is a versatile format which can be easily combined into other legacy video formats. For instance if you mix the U and V signals you end up with a single called C, for chroma, which can then make the YC signal that is S-Video. If you mix the Y and C signals, you end up with composite video, which almost any television can handle. All of this mixing can be accomplished easily in low-cost circuitry, while the unmixing is often very difficult indeed. Leaving the signal in the original YUV format thus made DVDs very simple to construct, as they could easily downmix to support either S-video or composite and thus guarantee compability with simple circuits, while still retaining all of the original information from the source RGB signal.

Types of Downsampling

YUV images can be sampled in several different ways, including (in order of decreasing quality):

The numbers reflect the relative importance given to each channel: for example, YUV 4:2:2 has an amount of information in the Y channel double each of the U and V channels.

The common high-end professional formats are YUV 4:2:2, used in CCIR 601 video, and the enhanced YUV 4:4:4 format, which has even higher quality. The use of YUV 4:2:2 is possible because the human eye is much better at seeing differences in brightness than in color.

See also