YUV
lastmod 2022-10-28created 2014-09-017 edits
A format that represents color with three pieces of information: the luminance signal (Y), the difference between the luminance signal and the blue component (U), and the difference between the luminance signal and the red component (V).
A color representation used in television. Because the Y component is sensitive to errors, it is coded with more bits than the chroma components U and V, and the Y:U:V ratio is usually 4:2:2.
It is also used in CD-I and DVI (Digital Video Interactive).
RGB to YUV
The formulas for converting RGB values to YUV are as follows:
-
Y=0.3R+0.59G+0.11B -
U=(B-Y)x0.493 -
V=(R-Y)x0.877
Conversely, the formulas for converting YUV values to RGB are
-
R=Y+0.956U+0.621V -
G=Y+0.272U+0.647V -
B=Y+1.1061U+1.703V
In other words, the color information is judged to be insensitive to light, so it is converted to YUV signals for use.
See also
Favorite site
- YUV format summary
- Video Rendering with 8-Bit YUV Formats
- YUV pixel formats
- Wikipedia (en) explanation of YUV
- Summary of problems encountered while converting YUV420 (NV21) to RGB
- YUV420P YUV420SP YUV420SemiPlanar NV12 NV21
- How YUV420 <-> RGB888 conversion works
- RGB24bit -> YUV444 -> YUV420 340397 [email protected] 338703 10 10
- Converting YUV420 -> RGB888
- Convert YUV420 to RGB8888
- Image processing: formulas and implementation for converting YUV420 to GRB888
- Explanation of YUV420, YUV411, YUV422, etc.
- Making an Android live filter 4: What is the YUV format? 1
- YUV format summary
- Explanation of YUV, YCbCr, and YPbPr
- Explanation of YUV, YCbCr, and RGB
- [Recommended] BMP YUV (YCbCr) encoding and decoding
- [Recommended] MSDN - Converting Between YUV and RGB
- Types of YUV
- RGB <-> YUV(YCbCr)
- YUV420 Format
- YUV420 <-> RGB decode algorithm
- YUV420 to RGB565 conversion in android
- [Recommended] RGB and YUV color format 2