Hi Qingwei,

The correct way is to modify in your frame buffer display driver , just swap
between B and R
The frame buffer display driver is in your linux kernel driver
/linux-xxx/drivers/video

Regards,
Tung

On Thu, Sep 8, 2011 at 8:43 PM, <lqw1...@gmail.com> wrote:

> Hi,
>
> Now I have to use BGR565 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+unsubscribe@**googlegroups.com<android-porting%2bunsubscr...@googlegroups.com>
> website: 
> http://groups.google.com/**group/android-porting<http://groups.google.com/group/android-porting>
>

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

Reply via email to