chiark / gitweb /
WIP update receiver script
[ypp-sc-tools.db-live.git] / pctb / structure.h
index e8ea9f9804a654f66e26e8c2aec3b97dc220b3c0..0ad92a618e62386844f2ac50ebf652ac981ce754 100644 (file)
@@ -77,4 +77,13 @@ CanonImage *alloc_canon_image(int w, int h);
   }while(0)
 
 
+#define CANONIMG_ALSO_STORERGB(ri)             \
+  do{                                          \
+    unsigned char *rip= RI_PIXEL((ri),x,y);    \
+    rip[0]= rgb >> 16;                         \
+    rip[1]= rgb >> 8;                          \
+    rip[2]= rgb;                               \
+  }while(0)
+
+
 #endif /*STRUCTURE_H*/