Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8619 maxcodehac 1
/*
2
    jbig2dec
3
 
4
    Copyright (C) 2001 Artifex Software, Inc.
5
 
6
    This software is distributed under license and may not
7
    be copied, modified or distributed except as expressly
8
    authorized under the terms of the license contained in
9
    the file LICENSE in this distribution.
10
 
11
    For further licensing information refer to http://artifex.com/ or
12
    contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134,
13
    San Rafael, CA  94903, U.S.A., +1(415)492-9861.
14
*/
15
 
16
typedef struct _Jbig2ArithState Jbig2ArithState;
17
 
18
/* An arithmetic coding context is stored as a single byte, with the
19
   index in the low order 7 bits (actually only 6 are used), and the
20
   MPS in the top bit. */
21
typedef unsigned char Jbig2ArithCx;
22
 
23
/* allocate and initialize a new arithmetic coding state */
24
Jbig2ArithState *
25
jbig2_arith_new (Jbig2Ctx *ctx, Jbig2WordStream *ws);
26
 
27
/* decode a bit */
28
bool
29
jbig2_arith_decode (Jbig2ArithState *as, Jbig2ArithCx *pcx);
30