1 /* Copyright (C) 1996, 2000 Aladdin Enterprises. All rights reserved. 2 3 This software is provided AS-IS with no warranty, either express or 4 implied. 5 6 This software is distributed under license and may not be copied, 7 modified or distributed except as expressly authorized under the terms 8 of the license contained in the file LICENSE in this distribution. 9 10 For more information about licensing, please refer to 11 http://www.ghostscript.com/licensing/. For information on 12 commercial licensing, go to http://www.artifex.com/licensing/ or 13 contact Artifex Software, Inc., 101 Lucas Valley Road #110, 14 San Rafael, CA 94903, U.S.A., +1(415)492-9861. 15 */ 16 17 /* $Id: sa85x.h,v 1.6 2002/11/13 08:23:13 raph Exp $ */ 18 /* ASCII85 filter interface */ 19 /* Requires scommon.h; strimpl.h if any templates are referenced */ 20 21 #ifndef sa85x_INCLUDED 22 # define sa85x_INCLUDED 23 24 #include "sa85d.h" 25 26 /* ASCII85Encode */ 27 typedef struct stream_A85E_state_s { 28 stream_state_common; 29 /* The following change dynamically. */ 30 int count; /* # of digits since last EOL */ 31 int last_char; /* last character written */ 32 } stream_A85E_state; 33 34 #define private_st_A85E_state() /* in sfilter2.c */\ 35 gs_private_st_simple(st_A85E_state, stream_A85E_state,\ 36 "ASCII85Encode state") 37 #define s_A85E_init_inline(ss)\ 38 ((ss)->count = 0, (ss)->last_char = '\n', 0) 39 extern const stream_template s_A85E_template; 40 41 #endif /* sa85x_INCLUDED */ 42