if ((RrRedOffset(inst) != RrDefaultRedOffset) ||
(RrBlueOffset(inst) != RrDefaultBlueOffset) ||
(RrGreenOffset(inst) != RrDefaultGreenOffset)) {
+ g_message("CONVERSION %d->%d %d->%d %d->%d",
+ RrDefaultRedOffset, RrRedOffset(inst),
+ RrDefaultBlueOffset, RrGreenOffset(inst),
+ RrDefaultGreenOffset, RrBlueOffset(inst));
for (y = 0; y < im->height; y++) {
for (x = 0; x < im->width; x++) {
r = (data[x] >> RrDefaultRedOffset) & 0xFF;
};
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
-#define RrDefaultRedOffset 0
-#define RrDefaultGreenOffset 8
-#define RrDefaultBlueOffset 16
-#define RrDefaultAlphaOffset 24
+#define RrDefaultAlphaOffset 0
+#define RrDefaultRedOffset 8
+#define RrDefaultGreenOffset 16
+#define RrDefaultBlueOffset 24
#define RrEndian MSBFirst
#else
#define RrDefaultAlphaOffset 24