home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / sharewar / dos / program / gs300sr1 / gs300sr1.exe / SDIFFX.H < prev    next >
C/C++ Source or Header  |  1994-07-27  |  2KB  |  43 lines

  1. /* Copyright (C) 1994 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17. */
  18.  
  19. /* sdiffx.h */
  20. /* Differencing filter state definition */
  21. /* Requires strimpl.h */
  22.  
  23. /* DiffDecode / DiffEncode */
  24. typedef struct stream_Diff_state_s {
  25.     stream_state_common;
  26.         /* The client sets the following before initialization. */
  27.     int Colors;        /* # of colors, 1..4 */
  28.     int BitsPerComponent;    /* 1, 2, 4, 8 */
  29.     int Columns;
  30.         /* The init procedure computes the following. */
  31.     uint row_count;        /* # of bytes per row */
  32.     byte end_mask;        /* mask for left-over bits in last byte */
  33.     int case_index;        /* switch index for case dispatch */
  34.         /* The following are updated dynamically. */
  35.     uint row_left;        /* # of bytes left in row */
  36.     byte s0, s1, s2, s3;    /* previous sample */
  37. } stream_Diff_state;
  38. #define private_st_Diff_state()    /* in sdiff.c */\
  39.   gs_private_st_simple(st_Diff_state, stream_Diff_state,\
  40.     "DiffDecode state")
  41. extern const stream_template s_DiffD_template;
  42. extern const stream_template s_DiffE_template;
  43.