35 #define LZW_MAXBITS 12
36 #define LZW_SIZTABLE (1<<LZW_MAXBITS)
38 static const uint16_t
mask[17] =
40 0x0000, 0x0001, 0x0003, 0x0007,
41 0x000F, 0x001F, 0x003F, 0x007F,
42 0x00FF, 0x01FF, 0x03FF, 0x07FF,
43 0x0FFF, 0x1FFF, 0x3FFF, 0x7FFF, 0xFFFF
77 s->
bs = bytestream2_get_byte(&s->
gb);
79 s->
bbuf |= bytestream2_get_byte(&s->
gb) << s->
bbits;
87 s->
bbuf = (s->
bbuf << 8) | bytestream2_get_byte(&s->
gb);
109 s->
bs = bytestream2_get_byte(&s->
gb);
172 int l, c, code,
oc,
fc;
185 while (sp > s->
stack) {
201 if (code == s->
slot && fc>=0) {
204 }
else if(code >= s->
slot)