[android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565)

2011-09-08 Thread lqw1001
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;

Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565)

2011-09-08 Thread Tung Dang
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, wrote: > Hi, > > Now I have to use BGR565 instead of RG

Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565)

2011-09-08 Thread lqw1001
Sent: Friday, September 09, 2011 8:42 AM To: lqw1...@gmail.com Cc: android-porting Subject: Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565) Hi Qingwei, The correct way is to modify in your frame buffer display driver , just swap between B and R

Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565)

2011-09-08 Thread Tung Dang
dify check_var to re-define > fb_bitfield, right? > > Or I should modify other file? Could you please give a example or further > tips? > > Thanks a lot! > > BR, > Qingwei > > *From:* Tung Dang > *Sent:* Friday, September 09, 2011 8:42 AM > *To:* lqw1...@gmail.

Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565)

2011-09-08 Thread lqw1001
regards, Qingwei From: Tung Dang Sent: Friday, September 09, 2011 1:19 PM To: lqw1...@gmail.com Cc: android-porting Subject: Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565) Hi QingWei, Last time I tried to swap the color on Android VNC Ser

Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565)

2011-09-08 Thread Tung Dang
*From:* Tung Dang > *Sent:* Friday, September 09, 2011 1:19 PM > *To:* lqw1...@gmail.com > *Cc:* android-porting > *Subject:* Re: [android-porting] i.MX51 BBG: How to swap red color with > blue on DISP2 (RGB565 -> BGR565) > > Hi QingWei, > > Last time I tried to swap

Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565)

2011-09-12 Thread lqw1001
: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565) Hi Tung, Thank you! I have ever done the similar thing with our FB driver, but it did not take effect. Maybe our platform made some special changes, or driver has bugs. I’ll check them carefully.

Re: [android-porting] i.MX51 BBG: How to swap red color with blue on DISP2 (RGB565 -> BGR565)

2011-09-12 Thread Tung Dang
anges, or driver has bugs. > I’ll check them carefully. > > BTW, I wonder if there is another way to implement, e.g. modify fbmem.c or > other files. > > Best regards, > Qingwei > > *From:* Tung Dang > *Sent:* Friday, September 09, 2011 1:19 PM > *To:* lqw1...@gmail.