[Pixman] [PATCH 3/4] Introduce pixel_float_t data type

Dmitri Vorobiev dmitri.vorobiev at movial.com
Tue Sep 21 05:17:47 PDT 2010


Our FPU-based implementation will use the pixel_float_t type
extensively, and the purpose of this patch is to introduce this
data type.
---
 pixman/pixman-private.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
index e622866..c220652 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -202,6 +202,15 @@ union pixman_image
     solid_fill_t       solid;
 };
 
+typedef struct
+{
+#ifdef WORDS_BIGENDIAN
+    float a,r,g,b;
+#else
+    float b,g,r,a;
+#endif
+} pixel_float_t;
+
 void
 _pixman_bits_image_setup_accessors (bits_image_t *image);
 
-- 
1.6.3.3



More information about the Pixman mailing list