Quantified Compensation
Http://lhtao31.blog.163.com/blog/static/2972647020103814044158/
24bit rgb888-> 16bit rgb565 Conversion
24ibt rgb888 {R7 R6 R5 R4 R3 R2 R1 R0} {G7 G6 G5 G4 G3 G2 G1 G0} {B7 B6 B5 B4 B3 B2 B1 B0}
16bit rgb656 {R7 R6 R5 R4 R3} {G7 G6 G5 G4 G3 G2} {B7 B6 B5 B4 B3}
Can be corrected, such as (of course, the human eye can not feel, but the RG888-RGB565-RGB888 better compensation)
R: 197 => 197> 3 = 24
R: 197 = 192 + 5 => 24 + 0.625 ≈ 25
So
R5 = R [2]? R [7: 3] + 1: R [7: 3];
G5 = G [1]? G [7:2] + 1: G [7:2];
B5 = B [2]? B [7: 3] + 1: B [7: 3];
16bit rgb565-> 24bit rgb888 Conversion
16bit rgb656 {R4 R3 R2 R1 R0} {G5 G4 G3 G1 G0} {B4 B3 B2 B1 B0}
24ibt rgb888 {R4 R3 R2 R1 R0 0 0 0} {G5 G4 G3 G2 G1 G0 0 0} {B4 B3 B2 B1 B0 0 0 0}
24ibt rgb888 {R4 R3 R2 R1 R0 R2 R1 R0} {G5 G4 G3 G2 G1 G0 G1 G0} {B4 B3 B2 B1 B0 B2 B1 B0}
8bit rgb332-> 24bit rgb888 Conversion
8bit rgb332 {R2 R1 R0} {G2 G1 G0} {B1 B0}
24bit rgb888 {R2 R1 R0 0 0 0 0} {G2 G1 G0 0 0 0 0 0} {B1 B0 0 0 0 0 0 0 0}
24bit rgb888 {R2 R1 R0 R2 R1 R0 0 0} {G2 G1 G0 G2 G1 G0 0 0} {B1 B0 B1 B0 0 0 0 0}
24bit rgb888 {R2 R1 R0 R2 R1 R0 R2 R1} {G2 G1 G0 G2 G1 G0 G2 G1} {B1 B0 B1 B0 B1 B0 0 0}
24bit rgb888 {R2 R1 R0 R2 R1 R0 R2 R1} {G2 G1 G0 G2 G1 G0 G2 G1} {B1 B0 B1 B0 B1 B0 B1 B0}
Summary:
Quantitative compression method: the three words take high positions
Quantitative compensation methods:
1. Fill in the original data to the highest level
2. For the low level, use the low level of the original data for compensation