home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
- */
-
- /* sdiffx.h */
- /* Differencing filter state definition */
- /* Requires strimpl.h */
-
- /* DiffDecode / DiffEncode */
- typedef struct stream_Diff_state_s {
- stream_state_common;
- /* The client sets the following before initialization. */
- int Colors; /* # of colors, 1..4 */
- int BitsPerComponent; /* 1, 2, 4, 8 */
- int Columns;
- /* The init procedure computes the following. */
- uint row_count; /* # of bytes per row */
- byte end_mask; /* mask for left-over bits in last byte */
- int case_index; /* switch index for case dispatch */
- /* The following are updated dynamically. */
- uint row_left; /* # of bytes left in row */
- byte s0, s1, s2, s3; /* previous sample */
- } stream_Diff_state;
- #define private_st_Diff_state() /* in sdiff.c */\
- gs_private_st_simple(st_Diff_state, stream_Diff_state,\
- "DiffDecode state")
- extern const stream_template s_DiffD_template;
- extern const stream_template s_DiffE_template;
-