SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
This section quantizes all the coefficients of color space conversion based on a 10-bit system for SDTV application. These coefficients can be input to the registers of programmable color space converter. Refer to register section for the corresponding register setting.
Conversion from RGB to YCbCr | Conversion from YCbCr to RGB | |||||||
---|---|---|---|---|---|---|---|---|
Coefficient Names | Registers | Real Number Format | Quantized Format | Hex Format | Coefficient Names | Real Number Format | Quantized Format | Hex Format |
A0(13-bit) | VIP_CSC00[12:0] A0 | 0.299 | 306 | 0x0132 | A0(13-bit) | 1 | 1024 | 0x0400 |
B0(13-bit) | VIP_CSC00[28:16] B0 | 0.587 | 601 | 0x0259 | B0(13-bit) | -0.0003 | 0 | 0x0000 |
C0(13-bit) | VIP_CSC01[28:16] C0 | 0.114 | 117 | 0x0075 | C0(13-bit) | 1.3717 | 1405 | 0x057D |
A1(13-bit) | VIP_CSC01[28:16] A1 | -0.172 | -176 | 0x1F50 | A1(13-bit) | 1 | 1024 | 0x0400 |
B1(13-bit) | VIP_CSC02[12:0] B1 | -0.339 | -347 | 0x1EA5 | B1(13-bit) | -0.3365 | -345 | 0x1EA7 |
C1(13-bit) | VIP_CSC02[27:16] C1 | 0.511 | 523 | 0x020B | C1(13-bit) | -0.6984 | -715 | 0x1D35 |
A2(13-bit) | VIP_CSC03[12:0] A2 | 0.511 | 523 | 0x020B | A2(13-bit) | 1 | 1024 | 0x0400 |
B2(13-bit) | VIP_CSC03[27:16] B2 | -0.428 | -438 | 0x1E4A | B2(13-bit) | 1.7336 | 1775 | 0x06EF |
C2(13-bit) | VIP_CSC04[12:0] C2 | -0.083 | -85 | 0x1FAB | C2(13-bit) | -0.0016 | -2 | 0x1FFE |
D0(12-bit) | VIP_CSC04[27:16] D0 | 0 | 0 | 0x000 | D0(12-bit) | -176 | -704 | 0xD40 |
D1(12-bit) | VIP_CSC05[11:0] D1 | 128 | 512 | 0x200 | D1(12-bit) | 132 | 528 | 0x210 |
D2(12-bit) | VIP_CSC05[27:16] D2 | 128 | 512 | 0x200 | D2(12-bit) | -222 | -888 | 0xC88 |
Conversion from RGB to YCbCr | Conversion from YCbCr to RGB | |||||||
---|---|---|---|---|---|---|---|---|
Coefficient Names | Registers | Real Number Format | Quantized Format | Hex Format | Coefficient Names | Real Number Format | Quantized Format | Hex Format |
A0(13-bit) | VIP_CSC00[12:0] A0 | 0.257 | 263 | 0x0107 | A0(13-bit) | 1.1641 | 1192 | 0x04A8 |
B0(13-bit) | VIP_CSC00[28:16] B0 | 0.504 | 516 | 0x0204 | B0(13-bit) | -0.0018 | -2 | 0x1FFE |
C0(13-bit) | VIP_CSC01[28:16] C0 | 0.098 | 100 | 0x0064 | C0(13-bit) | 1.5958 | 1634 | 0x0662 |
A1(13-bit) | VIP_CSC01[28:16] A1 | -0.148 | -152 | 0x1F68 | A1(13-bit) | 1.1641 | 1192 | 0x04A8 |
B1(13-bit) | VIP_CSC02[12:0] B1 | -0.291 | -298 | 0x1ED6 | B1(13-bit) | -0.3914 | -401 | 0x1E6F |
C1(13-bit) | VIP_CSC02[27:16] C1 | 0.439 | 450 | 0x01C2 | C1(13-bit) | -0.8135 | -833 | 0x1CBF |
A2(13-bit) | VIP_CSC03[12:0] A2 | 0.439 | 450 | 0x01C2 | A2(13-bit) | 1.1641 | 1192 | 0x04A8 |
B2(13-bit) | VIP_CSC03[27:16] B2 | -0.368 | -377 | 0x1E87 | B2(13-bit) | 2.0178 | 2066 | 0x0812 |
C2(13-bit) | VIP_CSC04[12:0] C2 | -0.071 | -73 | 0x1FB7 | C2(13-bit) | -0.0012 | -1 | 0x1FFF |
D0(12-bit) | VIP_CSC04[27:16] D0 | 16 | 64 | 0x040 | D0(12-bit) | -223 | -892 | 0xC84 |
D1(12-bit) | VIP_CSC05[11:0] D1 | 128 | 512 | 0x200 | D1(12-bit) | 136 | 544 | 0x220 |
D2(12-bit) | VIP_CSC05[27:16] D2 | 128 | 512 | 0x200 | D2(12-bit) | -277 | -1108 | 0xBAC |