平台信息:
内核:linux3.0.68
系统:android6.0
平台:rk3288
将一张图片烧录进logo分区,发现在uboot读取这张图片并显示的时候发现颜色偏黄,解决办法,在烧录bmp图片的时候调整logo的着色convert logo.bmp -recolor "0 0 1,0 1 0,1 0 0" logo-re.bmp.
不改变图片的着色调整代码也行补丁如下:
1 diff --git a/drivers/video/rk32_lcdc.c b/drivers/video/rk32_lcdc.c 2 index 1ab7a47..7b0ed62 100755 3 --- a/drivers/video/rk32_lcdc.c 4 +++ b/drivers/video/rk32_lcdc.c 5 @@ -586,7 +586,7 @@ static int rk3288_win_0_1_reg_update(struct lcdc_device *lcdc_dev, 6 v_WIN0_DATA_FMT(win->area[0].format) | 7 v_WIN0_FMT_10(win->fmt_10) | 8 v_WIN0_LB_MODE(win->win_lb_mode) | 9 - v_WIN0_RB_SWAP(0) | 10 + v_WIN0_RB_SWAP(win->rb_swap) | 11 v_WIN0_UV_SWAP(0); 12 lcdc_msk_reg(lcdc_dev, WIN0_CTRL0+off, mask,val); 13 14 @@ -718,6 +718,7 @@ static int win0_set_par(struct lcdc_device *lcdc_dev, 15 win.area[0].y_vir_stride = v_ARGB888_VIRWIDTH(fb_info->xvir); 16 break; 17 case RGB888: 18 + win.rb_swap = 1; 19 win.area[0].y_vir_stride = v_RGB888_VIRWIDTH(fb_info->xvir); 20 break; 21 case RGB565: