Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Imaging/libImaging/Bit.h
diff options
context:
space:
mode:
Diffstat (limited to 'Imaging/libImaging/Bit.h')
-rw-r--r--Imaging/libImaging/Bit.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Imaging/libImaging/Bit.h b/Imaging/libImaging/Bit.h
new file mode 100644
index 0000000..56e3a17
--- /dev/null
+++ b/Imaging/libImaging/Bit.h
@@ -0,0 +1,30 @@
+/* Bit.h */
+
+typedef struct {
+
+ /* CONFIGURATION */
+
+ /* Number of bits per pixel */
+ int bits;
+
+ /* Line padding (0 or 8) */
+ int pad;
+
+ /* Fill order */
+ /* 0=msb/msb, 1=msbfill/lsbshift, 2=lsbfill/msbshift, 3=lsb/lsb */
+ int fill;
+
+ /* Signed integers (0=unsigned, 1=signed) */
+ int sign;
+
+ /* Lookup table (not implemented) */
+ unsigned long lutsize;
+ FLOAT32* lut;
+
+ /* INTERNAL */
+ unsigned long mask;
+ unsigned long signmask;
+ unsigned long bitbuffer;
+ int bitcount;
+
+} BITSTATE;