[MPlayer-dev-eng] [PATCH] Support RGB framebuffer

Alexander Stein alexander.stein at systec-electronic.com
Thu Apr 7 17:56:22 CEST 2011


Am Mittwoch, 6. April 2011, 19:43:03 schrieb Reimar Döffinger:
> On Wed, Apr 06, 2011 at 08:42:11AM +0200, Alexander Stein wrote:
> > On Tuesday 05 April 2011, 18:31:03 Reimar Döffinger wrote:
> > > On Tue, Apr 05, 2011 at 05:52:52PM +0200, Alexander Stein wrote:
> > > > using this patch vo_fbdev uses the proper coloring on my RGB15
> > > > display used by a ARM AT91SAM9263. Otherwise I only get BGR output.
> > > > Best seen with a webcam showing my blue ethernet cable which is
> > > > displayed in orange.
> > > 
> > > This seems _hugely_ too complex, have you tested the patch I sent back
> > > then? (attached)
> > 
> > I tried your patch and it didn't work.
> 
> It detects your display as bgr, not rgb.
> What are the values for fb_vinfo.red.offset and fb_vinfo.blue.offset?

fb_vinfo.red.offset: 0
fb_vinfo.blue.offset: 10

> You could try changing
> 
> > fb_rgb = !fb_vinfo.red.offset;
> 
> to
> 
> > fb_rgb = fb_vinfo.red.offset < fb_vinfo.blue.offset;
> 
> but I can't imagine how that would happen.

No, this doesn't work either.

Best regards,
Alexander


More information about the MPlayer-dev-eng mailing list