ref: 04d17fa29806f730e03290b7ab4ee415600ba9e7
dir: /jbig2dec.h/
/* jbig2dec Copyright (c) 2002 artofcode LLC. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. $Id: jbig2dec.h,v 1.6 2002/02/19 07:09:16 giles Exp $ */ #ifndef JBIG2DEC_H #define JBIG2DEC_H #ifdef __cplusplus extern "C" { #endif typedef unsigned char byte; typedef int bool; typedef unsigned int uint32; typedef int int32; typedef short int16; typedef signed char int8; #define TRUE 1 #define FALSE 0 typedef struct _Jbig2Ctx_foo Jbig2Ctx_foo; int32 get_bytes (Jbig2Ctx_foo *ctx, byte *buf, int size, int off); int16 get_int16 (Jbig2Ctx_foo *ctx, int off); int32 get_int32 (Jbig2Ctx_foo *ctx, int off); /* The word stream design is a compromise between simplicity and trying to amortize the number of method calls. Each ::get_next_word invocation pulls 4 bytes from the stream, packed big-endian into a 32 bit word. The offset argument is provided as a convenience. It begins at 0 and increments by 4 for each successive invocation. */ typedef struct _Jbig2WordStream Jbig2WordStream; struct _Jbig2WordStream { uint32 (*get_next_word) (Jbig2WordStream *self, int offset); }; #ifdef __cplusplus } #endif #endif /* JBIG2DEC_H */