File: Bit.h

package info (click to toggle)
python-imaging 1.1.7-2%2Bdeb6u2
  • links: PTS
  • area: main
  • in suites: squeeze-lts
  • size: 2,424 kB
  • ctags: 3,401
  • sloc: ansic: 19,470; python: 11,002; makefile: 111
file content (30 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;