5.2.6.12 Color Space Conversion Unit

The color space conversion unit converts the Luma Chroma color space into the Red Green Blue (RGB) color space. The conversion matrix is defined below and is fully programmable through the User Interface.

R G B = RYGAIN RCBGAIN RCRGAIN GYGAIN GCBGAIN GCRGAIN BYGAIN BCBGAIN BCRGAIN Y Yoff Cb Cboff Cr Croff

Color space conversion coefficients are defined with 1 sign bit, 2 integer bits and 10 fractional bits. The range of the ijGAIN coefficients is -4<ijGAIN<+4 with a step of 1/1024.

Additionally, a set scaling offset {Yoff=16, Cboff=128, Croff=128} can be applied by configuring LCDC_HEOCFG22.