On Feb 15, 7:29 am, "drulz" <rue...@[EMAIL PROTECTED]
> wrote:
> hi
>
> Im looking for a formula on how to convert RGB to YUV422. All i can
> find on the internet is conversion from RGB to YUV but not 422.
>
> One more thing is im developing on an embedded device which doesnt
> have sup****t for 32 bit data type or even floating point, so im
> looking for a fixed-point formula that uses shorts or char (16bit/
> 8bit) types. I have found a formula that uses unsigned char but i dont
> have an idea on how to use it to convert RGB to YUV 422. The link is
> bellowhttp://msdn2.microsoft.com/en-us/library/ms893078.aspx
Only two ways come to mind, calculate Y, scale the bitmap down,
calculate UV, or convert to YUV444 then reduce size of the UV
planes. The first one is probably easier to do, there's lots
of web info on calculating colours when scaling rgb images.
Getting the Y right is the most im****tant, it's surprising
how far off the UV can get for a pixel and still look ok.
--
Geoff


|