Rgb888-> rgb565-> rgb888

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.