Color Space Conversion

This module converts YCrCb or YUV pixels to RGB color space. Clipping is performed to ensure that the samples value do not exceed the allowable range. The conversion matrix is defined below and is fully programmable:

RGB =C00C1C0C2C3C0C40 ×YYoffCbCboffCrCroff 

Example of programmable value to convert YCrCb to RGB:

R=1.164Y16+1.596Cr128G=1.164Y160.813Cr1280.392Cb128B=1.164Y16+2.107Cb128

An example of programmable value to convert from YUV to RGB:

R=Y+1.596VG=Y0.394U0.436VB=Y+2.032U