nanogui: Thread: FONT COLOR CONVERSION FROM RGB TO YUV


[<<] [<] Page 1 of 1 [>] [>>]
Subject: FONT COLOR CONVERSION FROM RGB TO YUV
From: "Prashanth Dwarakanath" ####@####.####
Date: 22 May 2008 04:50:46 -0000
Message-Id: <20080522045151.30936.qmail@f4mail-235-142.rediffmail.com>

  
Hi All,

We have implemented a font application in microwindows and the same is functioning to our requirements. However, there has been a change in the hardware used by us recently. We were earlier using a RGB based Video decoder chip and now due to some unavoidable circumstances we have changed the video decoder chip to a YUV based one. 

When I run the font application now, the font is definitely displayed but  in some weird color. I understand that Microwindows uses RGB values and calculates the pixel values for colors to be displayed. 

Since my H/W is Analog Devices Blackfin-561 processor, I enquired with them and they helped us with a RGB2YUV converter API. 

I wanted to know as to where this API needs to be inserted in the Microwindows source? We are using freetype 1 libraries for Japanese language display. 

I was thinking of passing the RGB values to the RGB2YUV API which outputs the YUV data for color. This could be used just before drawing  the font on the Frame buffer. 

I went through the code in /drivers/scr_fb.c but am not able to make out where this RGB2YUV conversion could be used.


Kindly guide us on the above. Also please let us know if any further details are required by you.


Thank You,
Prashanth.D
Subject: Re: [nanogui] FONT COLOR CONVERSION FROM RGB TO YUV
From: "Greg Haerr" ####@####.####
Date: 22 May 2008 15:52:45 -0000
Message-Id: <114301c8bc23$6dc47d10$6401a8c0@winXP>

> I went through the code in /drivers/scr_fb.c but am not able to make out 
> where this RGB2YUV conversion could be used.

You didn't indicate your framebuffer hardware pixel size.  If its 32 bits,
the code is in drivers/fblin32.c.  The MWPIXELVAL color variable
passed to the draw functions will need to be converted.

Regards,

Greg 

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.