chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Rename yppsc-* helpers
[ypp-sc-tools.web-live.git]
/
pctb
/
structure.h
diff --git
a/pctb/structure.h
b/pctb/structure.h
index e8ea9f9804a654f66e26e8c2aec3b97dc220b3c0..0ad92a618e62386844f2ac50ebf652ac981ce754 100644
(file)
--- a/
pctb/structure.h
+++ b/
pctb/structure.h
@@
-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*/