Advertisement
4_2005-2006 Graphics #164761

RGB -> YUV -> RGB Conversion

The application converts a RGB bitmap into YUV format. Both conversion and deconversions are illustrated. The YUV (also know as YCbCr) colorspace is just another method of representing pixel information. Instead of using Red, Green and Blue percentages, YUV uses a Y (luminance, luma) plane that transmits the light information and two chrominance planes U,V (Cb,Cr) that transmit the color information. This is useful when compressing images and videos, because the human eye is more sensitive to the Y (luminance) information and less sensitive to the U,V (Cb, Cr) chroma information. For example, some video codecs take two pixels and store them in the following format : Y1 U Y2 V , which means instead of using 48 bits , only 32 bits are used. Y1 and Y2 are the Y of each pixel and U and V are the chroma information (average for both pixels). It's a little bit more complex than this but I will show how it's done in another source code.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine