Re: Fwd: wrong colors with Xv extension and image format id: 0x59565955 (UYVY) from an rgb mapping

2009-01-23 Thread Tomas Carnecky
On 01/23/2009 02:59 AM, Amos Tibaldi wrote: #define GUID_UYVY_PLANAR 0x59565955 Just a sidenote: This is misleading, that format is packed and not planar. void RGBToUV(unsigned short int r, unsigned short int g, unsigned short int b, unsigned short int * u, unsigned short int * v) { *u

Fwd: wrong colors with Xv extension and image format id: 0x59565955 (UYVY) from an rgb mapping

2009-01-22 Thread Amos Tibaldi
2009/1/22 Tomas Carnecky t...@dbservice.com On 01/22/2009 07:35 PM, Amos Tibaldi wrote: You both are right, but for now I obtain only solid color that doesn't correspond to the desired one; here is the code: void RGBToUV(unsigned short int r, unsigned short int g, unsigned short int b,