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:

YCrCb =C0C1C2C3C4C5C6C7C8 ×RGB +YoffCroffCboff 

An example of coefficients is given below:

Y=0.257R+0.504G+0.098B+16Cr=0.439R0.368G0.071B+128Cb=0.148R0.291G+0.439B+128