home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / sharewar / dos / program / gs300sr1 / gs300sr1.exe / SBHC.H < prev    next >
C/C++ Source or Header  |  1994-07-27  |  2KB  |  53 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. /* sbhc.h */
  20. /* Ghostscript BoundedHuffman filter state definition */
  21. /* Requires strimpl.h */
  22. #include "shc.h"
  23.  
  24. /* Common state */
  25. #define stream_BHC_state_common\
  26.     stream_hc_state_common;\
  27.     hc_definition definition
  28. typedef struct stream_BHC_state_s {
  29.     stream_BHC_state_common;
  30. } stream_BHC_state;
  31.  
  32. /* BoundedHuffmanEncode */
  33. typedef struct stream_BHCE_state_s {
  34.     stream_BHC_state_common;
  35.     hce_table encode;
  36. } stream_BHCE_state;
  37. #define private_st_BHCE_state()    /* in sbhc.c */\
  38.   gs_private_st_ptrs3(st_BHCE_state, stream_BHCE_state,\
  39.     "BoundedHuffmanEncode state", bhce_enum_ptrs, bhce_reloc_ptrs,\
  40.     definition.counts, definition.values, encode.codes)
  41. extern const stream_template s_BHCE_template;
  42.  
  43. /* BoundedHuffmanEncode */
  44. typedef struct stream_BHCD_state_s {
  45.     stream_BHC_state_common;
  46.     hcd_table decode;
  47. } stream_BHCD_state;
  48. #define private_st_BHCD_state()    /* in sbhc.c */\
  49.   gs_private_st_ptrs3(st_BHCD_state, stream_BHCD_state,\
  50.     "BoundedHuffmanDecode state", bhcd_enum_ptrs, bhcd_reloc_ptrs,\
  51.     definition.counts, definition.values, decode.codes)
  52. extern const stream_template s_BHCD_template;
  53.