And of course I managed to mess up the packed pixel macros... The bytes
were in the wrong order. Here's an incremental fix.

-- 
Ville Syrj�l�
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/
--- DirectFB/src/gfx/convert.h.old      Tue Aug 13 14:59:19 2002
+++ DirectFB/src/gfx/convert.h  Tue Aug 13 14:49:14 2002
@@ -46,15 +46,15 @@
                               0.0813 * b) * \
                             112 / 127 + 128)
 
-#define PIXEL_YUY2(y,u,v) ( ((y) << 24) | \
-                            ((u) << 16) | \
-                            ((y) << 8)  | \
-                             (v) )
-
-#define PIXEL_UYVY(y,u,v) ( ((u) << 24) | \
+#define PIXEL_YUY2(y,u,v) ( ((v) << 24) | \
                             ((y) << 16) | \
-                            ((v) << 8)  | \
+                            ((u) << 8)  | \
                              (y) )
+
+#define PIXEL_UYVY(y,u,v) ( ((y) << 24) | \
+                            ((v) << 16) | \
+                            ((y) << 8)  | \
+                             (u) )
 
 #define PIXEL_RGB332(r,g,b)    ( (((r)&0xE0)     ) | \
                                  (((g)&0xE0) >> 3) | \

Reply via email to