/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2003-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#ifndef _VCHUFF_H
/* Types and functions to construct a static Huffman codes.
**
** Written By Kiem-Phong Vo
*/
/* A Huffman decoding trie is stored in Vchtrie_t.node and Vchtrie_t.size.
** size[p] > 0: a data byte has been decoded. In this case, size[p]
** is the number of bits that should be consumed to finish
** the bits corresponding to this byte. node[p] is the byte.
** size[p] < 0: need to recurse to the next level of the trie. In this
** case, -size[p] is the number of bits needed to index the
** next level. node[p] is the base of the next level.
** size[p] == 0: an undecipherable bit string. Data is likely corrupted.
*/
typedef struct _vchtrie_s
short next;
} Vchtrie_t;
#if _BLD_vcodex && defined(__EXPORT__)
#define extern extern __EXPORT__
#endif
#if !_BLD_vcodex && defined(__IMPORT__)
#define extern extern __IMPORT__
#endif
#undef extern
#if _BLD_vcodex && defined(__EXPORT__)
#define extern __EXPORT__
#endif
#undef extern
#endif /*_VCHUFF_H*/