平台信息:
内核: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.

不改变图片的着色调整代码也行补丁如下:

 diff --git a/drivers/video/rk32_lcdc.c b/drivers/video/rk32_lcdc.c
index 1ab7a47..7b0ed62
--- a/drivers/video/rk32_lcdc.c
+++ b/drivers/video/rk32_lcdc.c
@@ -, +, @@ static int rk3288_win_0_1_reg_update(struct lcdc_device *lcdc_dev,
v_WIN0_DATA_FMT(win->area[].format) |
v_WIN0_FMT_10(win->fmt_10) |
v_WIN0_LB_MODE(win->win_lb_mode) |
- v_WIN0_RB_SWAP() |
+ v_WIN0_RB_SWAP(win->rb_swap) |
v_WIN0_UV_SWAP();
lcdc_msk_reg(lcdc_dev, WIN0_CTRL0+off, mask,val); @@ -, +, @@ static int win0_set_par(struct lcdc_device *lcdc_dev,
win.area[].y_vir_stride = v_ARGB888_VIRWIDTH(fb_info->xvir);
break;
case RGB888:
+ win.rb_swap = ;
win.area[].y_vir_stride = v_RGB888_VIRWIDTH(fb_info->xvir);
break;
case RGB565:
05-18 10:03