Hi, 

Now I have to use BRG564 instead of RGB565, so I modified following codes, but 
they have no effect.
  file:
  mxc_ipuv3_fb.c, function: mxcfb_check_var
  ......
  switch
  (var->bits_per_pixel) {
  case 8: 
      ......
      break;
  case 16:
     var->red.length = 5;
     var->red.offset = 11;   ----> 0
     var->red.msb_right = 0; 
     var->green.length = 6;
     var->green.offset = 5;
     var->green.msb_right = 0; 
     var->blue.length = 5;
     var->blue.offset = 0;   ---->11
     var->blue.msb_right = 0;
     ......
     break;
  case 24:
  ......
And then, I modified _ipu_ch_params_set_packing in 
drivers/mxc/ipu3/ipu_param_mem.h, and found the color of UI is correct, but 
camera preview/taking photo/recording, video playing are not correct (R and B 
color are reversed).

I think the best way is to modify framebuffer, but I don’t know how to do.

Does anyone have some ideas?

BR,
Qingwei

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to