1 /* Copyright (C) 2001-2012 Artifex Software, Inc.
2 All Rights Reserved.
3
4 This software is provided AS-IS with no warranty, either express or
5 implied.
6
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.
10
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.
14 */
15
16
17 /* zlib filter initialization for RAM-based band lists */
18 /* Must be compiled with -I$(ZSRCDIR) */
19 #include "std.h"
20 #include "gstypes.h"
21 #include "gsmemory.h"
22 #include "gxclmem.h"
23 #include "szlibx.h"
24
25 /* Return the prototypes for compressing/decompressing the band list. */
26 const stream_template *
clist_compressor_template(void)27 clist_compressor_template(void)
28 {
29 return &s_zlibE_template;
30 }
31 const stream_template *
clist_decompressor_template(void)32 clist_decompressor_template(void)
33 {
34 return &s_zlibD_template;
35 }
36 void
clist_compressor_init(stream_state * state)37 clist_compressor_init(stream_state *state)
38 {
39 s_zlib_set_defaults(state);
40 ((stream_zlib_state *)state)->no_wrapper = true;
41 state->templat = &s_zlibE_template;
42 }
43 void
clist_decompressor_init(stream_state * state)44 clist_decompressor_init(stream_state *state)
45 {
46 s_zlib_set_defaults(state);
47 ((stream_zlib_state *)state)->no_wrapper = true;
48 state->templat = &s_zlibD_template;
49 }
50