RGB(565) is converted to RGB(666) by appending the MSBs R5[4] respectively B5[4] as the low order bit, while G6[5:0] remains untouched:
R6[5:0] = (R5[4:0] << 1) + (R5[4] >> 5)
G6[5:0] = (R6[5:0])
B6[5:0] = (B5[4:0] << 1) + (B5[4] >> 5)
标签:R5,convert,G6,R6,B5,RGB,RGB666,RGB565
From: https://www.cnblogs.com/dzdiy/p/17254706.html