[vorbis-dev] Integer wavelet video codec (source and test program)

Holger Waechtler hwaechtler at yahoo.com
Wed Feb 7 08:20:33 PST 2001



--- Lourens Veen <jsr at dds.nl> wrote:
> Hi,
> 
> I have a question about the yuv->rgb and rgb->yuv formulas. They work
> out to:
> 
> u = r - g;
> v = g - b;
> y = g + 1/4*r + 1/4*b;
> 
> I understand that green is generally more important than blue and red
> but isn't this a bit radical?

You are right, it should be 

u = r - g
v = g - b
y = g + 1/4 * (u-v)
  = g + 1/4 * (r-g-g+b)
  = g + 1/4 * r - 1/2 * g + 1/4 * b
  = r/4 + g/2 + b/4                                                    
        

I'll fix this tonight.

- Holger

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list