Baidu Encyclopedia above the introduction
YUV is mainly used to optimize the transmission of color video signal, so that it is backward compatible with old black and white. Compared with the RGB video signal transmission, its greatest advantage is that it takes only a very small bandwidth (RGB requires three separate video signals to transmit simultaneously). where "Y" is the luminance (luminance or luma), which is the grayscale value, and "U" and "V" are the chroma (chrominance or Chroma), which describes the color and saturation of the image used to specify the color of the pixel. "Brightness" is established through the RGB input signal by overlaying specific portions of the RGB signal together. "Chroma" defines two aspects of color-hue and saturation, respectively, by CR and CB. Cr reflects the difference between the red part of the RGB input signal and the luminance value of the RGB signal. The CB reflects the difference between the blue part of the RGB input signal and the luminance value of the RGB signal. The importance of using YUV color space is that its luminance signal y and chroma signal u, v are separated. If only the Y signal component does not have a U, v component, then the image represented here is a black-and-white grayscale image. Color TV using YUV space is precisely to use brightness signal y to solve the compatibility problem between color TV and black and white TV, so that black and white machine can also receive color TV signal.
RGB "=" YUV:
Y = 0.299 R + 0.587 G + 0.114 B
U =-0.1687 R-0.3313 G + 0.5 B + 128
V = 0.5 R-0.4187 G-0.0813 B + 128
R = Y + 1.402 (V-128)
G = Y-0.34414 (U-128)-0.71414 (V-128)
B = Y + 1.772 (U-128)
Reference
YUV Data format
YUV parsing
iOS Development-YUV Video