1 /* Copyright (C) 2001-2012 Artifex Software, Inc.
4 This software is provided AS-IS with no warranty, either express or
7 This software is distributed under license and may not be copied,
8 modified or distributed except as expressly authorized under the terms
9 of the license contained in the file LICENSE in this distribution.
11 Refer to licensing information at http://www.artifex.com or contact
12 Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael,
13 CA 94903, U.S.A., +1(415)492-9861, for further information.
21 /* symbol dictionary header */
23 /* the results of decoding a symbol dictionary */
29 /* decode a symbol dictionary segment and store the results */
31 jbig2_symbol_dictionary(Jbig2Ctx *ctx, Jbig2Segment *segment,
32 const byte *segment_data);
34 /* get a particular glyph by index */
36 jbig2_sd_glyph(Jbig2SymbolDict *dict, unsigned int id);
38 /* return a new empty symbol dict */
40 jbig2_sd_new(Jbig2Ctx *ctx, int n_symbols);
42 /* release the memory associated with a symbol dict */
44 jbig2_sd_release(Jbig2Ctx *ctx, Jbig2SymbolDict *dict);
46 /* generate a new symbol dictionary by concatenating a list of
47 existing dictionaries */
49 jbig2_sd_cat(Jbig2Ctx *ctx, int n_dicts,
50 Jbig2SymbolDict **dicts);
52 /* count the number of dictionary segments referred
53 to by the given segment */
55 jbig2_sd_count_referred(Jbig2Ctx *ctx, Jbig2Segment *segment);
57 /* return an array of pointers to symbol dictionaries referred
60 jbig2_sd_list_referred(Jbig2Ctx *ctx, Jbig2Segment *segment);