2 |
- |
1 |
/* Copyright (C) 1995 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: smtf.h,v 1.4 2002/02/21 22:24:54 giles Exp $ */
|
|
|
18 |
/* Definitions for MoveToFront filters */
|
|
|
19 |
/* Requires scommon.h; strimpl.h if any templates are referenced */
|
|
|
20 |
|
|
|
21 |
#ifndef smtf_INCLUDED
|
|
|
22 |
# define smtf_INCLUDED
|
|
|
23 |
|
|
|
24 |
/* MoveToFrontEncode/Decode */
|
|
|
25 |
typedef struct stream_MTF_state_s {
|
|
|
26 |
stream_state_common;
|
|
|
27 |
/* The following change dynamically. */
|
|
|
28 |
union _p {
|
|
|
29 |
ulong l[256 / sizeof(long)];
|
|
|
30 |
byte b[256];
|
|
|
31 |
} prev;
|
|
|
32 |
} stream_MTF_state;
|
|
|
33 |
typedef stream_MTF_state stream_MTFE_state;
|
|
|
34 |
typedef stream_MTF_state stream_MTFD_state;
|
|
|
35 |
|
|
|
36 |
#define private_st_MTF_state() /* in sbwbs.c */\
|
|
|
37 |
gs_private_st_simple(st_MTF_state, stream_MTF_state,\
|
|
|
38 |
"MoveToFrontEncode/Decode state")
|
|
|
39 |
extern const stream_template s_MTFE_template;
|
|
|
40 |
extern const stream_template s_MTFD_template;
|
|
|
41 |
|
|
|
42 |
#endif /* smtf_INCLUDED */
|