SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
Table 11-117 describes the settings for the CPR unit (see Table 11-117).
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| For Color Phase Rotation Processing | ||
| Set the Red coefficients. | DISPC_CPRo_COEF_R [31:22][20:11][9:0] RR, RG, RB | 0x– |
| Set the Green coefficients | DISPC_CPRo_COEF_G [31:22][20:11][9:0] GR, GG, GB | 0x– |
| Set the Blue coefficients. | DISPC_CPRo_COEF_B [31:22][20:11][9:0] BR, BG, BB | 0x– |
| Disable the CPR unit in RGB to YUV conversion. | DISPC_CONFIGo[24] COLORCONVENABLE | 0x0 |
| Enable the CPR unit. | DISPC_CONFIGo[15] CPR | 0x1 |
| For Color Space Conversion Processing | ||
| Set the Y coefficients. | DISPC_CPRo_COEF_R [31:22][20:11][9:0] RR, RG, RB | 0x– |
| Set the Cb coefficients. | DISPC_CPRo_COEF_G [31:22][20:11][9:0] GR, GG, GB | 0x– |
| Set the Cr coefficients. | DISPC_CPRo_COEF_B [31:22][20:11][9:0] BR, BG, BB | 0x– |
| Set the CSC range. | DISPC_CONFIGo[25] FULLRANGE | 0x– |
| Enable the CPR unit in RGB to YUV conversion. | DISPC_CONFIGo[24] COLORCONVENABLE | 0x1 |
| Disable the CPR unit. | DISPC_CONFIGo[15] CPR | 0x0 |