misc/libfreetype/src/gzip/inftrees.h
author Xeli
Fri, 24 Jun 2011 13:13:31 +0200
branchhedgeroid
changeset 5347 a34995ecf90e
parent 5172 88f2e05288ba
permissions -rw-r--r--
Added test parameter which end up at hwengine::Game(PChar)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     1
/* inftrees.h -- header to use inftrees.c
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     2
 * Copyright (C) 1995-2002 Mark Adler
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     3
 * For conditions of distribution and use, see copyright notice in zlib.h
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     4
 */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     5
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     6
/* WARNING: this file should *not* be used by applications. It is
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     7
   part of the implementation of the compression library and is
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
   subject to change. Applications should only use zlib.h.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
 */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
/* Huffman code lookup table entry--this entry is four bytes for machines
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
   that have 16-bit pointers (e.g. PC's in the small or medium model). */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
#ifndef _INFTREES_H
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
#define _INFTREES_H
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
typedef struct inflate_huft_s FAR inflate_huft;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
struct inflate_huft_s {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
  union {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
    struct {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
      Byte Exop;        /* number of extra bits or operation */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    23
      Byte Bits;        /* number of bits in this code or subcode */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    24
    } what;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
    uInt pad;           /* pad structure to a power of 2 (4 bytes for */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
  } word;               /*  16-bit, 8 bytes for 32-bit int's) */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
  uInt base;            /* literal, length base, distance base,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
                           or table offset */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
};
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
/* Maximum size of dynamic tree.  The maximum found in a long but non-
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
   exhaustive search was 1004 huft structures (850 for length/literals
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    33
   and 154 for distances, the latter actually the result of an
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    34
   exhaustive search).  The actual maximum is not known, but the
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    35
   value below is more than safe. */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    36
#define MANY 1440
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    37
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    38
local  int inflate_trees_bits OF((
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    39
    uIntf *,                    /* 19 code lengths */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    40
    uIntf *,                    /* bits tree desired/actual depth */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    41
    inflate_huft * FAR *,       /* bits tree result */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    42
    inflate_huft *,             /* space for trees */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    43
    z_streamp));                /* for messages */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    44
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    45
local  int inflate_trees_dynamic OF((
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    46
    uInt,                       /* number of literal/length codes */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    47
    uInt,                       /* number of distance codes */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    48
    uIntf *,                    /* that many (total) code lengths */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    49
    uIntf *,                    /* literal desired/actual bit depth */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    50
    uIntf *,                    /* distance desired/actual bit depth */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    51
    inflate_huft * FAR *,       /* literal/length tree result */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    52
    inflate_huft * FAR *,       /* distance tree result */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    53
    inflate_huft *,             /* space for trees */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    54
    z_streamp));                /* for messages */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    55
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    56
local  int inflate_trees_fixed OF((
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    57
    uIntf *,                    /* literal desired/actual bit depth */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    58
    uIntf *,                    /* distance desired/actual bit depth */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    59
    const inflate_huft * FAR *, /* literal/length tree result */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    60
    const inflate_huft * FAR *, /* distance tree result */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    61
    z_streamp));                /* for memory allocation */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    62
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    63
#endif /* _INFTREES_H */