36.5.5.1 Color Space Conversion

Depending on user selection, this module can be bypassed so that input YCrCb stream is directly connected to the format converter module. If the RGB input stream is selected, this module converts RGB to YCrCb color space with the formulas given below:

Y C r C b   = C 0 C 1 C 2 C 3 C 4 C 5 C 6 C 7 C 8   × R G B   + Y off Cr off Cb off  

An example of coefficients is given below:

Y = 0.257 R + 0.504 G + 0.098 B + 16 C r = 0.439 R 0.368 G 0.071 B + 128 C b = 0.148 R 0.291 G + 0.439 B + 128