iOS Development-YUV Video

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.