psplash: Fix so the code honours whatever bit order the display reports with fast...
[profile/ivi/psplash.git] / psplash-fb.h
index 6c661f9..ef5b39e 100644 (file)
 #ifndef _HAVE_PSPLASH_FB_H
 #define _HAVE_PSPLASH_FB_H
 
+enum RGBMode {
+    RGB565,
+    BGR565,
+    RGB888,
+    BGR888,
+    GENERIC,
+};
+
 typedef struct PSplashFB
 {
   int            fd;                   
@@ -32,6 +40,14 @@ typedef struct PSplashFB
 
   int            angle;
   int            real_width, real_height;
+
+  enum RGBMode   rgbmode;
+  int            red_offset;
+  int            red_length;
+  int            green_offset;
+  int            green_length;
+  int            blue_offset;
+  int            blue_length;
 }
 PSplashFB;