express red green and blue in yuv; anyone using hermes library?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Dear all,

I am trying to use a library called Hermes for conversting from a yuv buffer 
to an rgb one. 
I cannot get it to work correctly, I hope that some one can help.

The library requires the bitmasks for red, green and blue in the source and 
destionation spaces. 
For the destination they should be (I hope!):
 r=0xff0000;
 g=0x00ff00;
 b=0x0000ff;

To get the input ones, it seemed quite simple to me to get the conversion 
matrix (from Poynton's colorFAQ) and plug in the vectors (255 0 0), (0 255 0) 
and (0 0 255), obtaining the following values:
 r=0x515af0;
 g=0x913622;
 b=0x29f06e;

BUT this does not work at all, I get the conversion output wrong.

Can anyone explain me why?

I am quite sure that the input buffer is correctly formatted. 
I have also performed the conversion using the method in release 1.60 of 
ov511.c and it works.

The Hermes library performs some of its operatin using assembly routines, so 
it should be faster than the c code in the ov511 module. Is this correct?

Thank you very much in advance,
Enrico Costanza





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux