亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? deflate.h

?? 一個delphi下壓縮成zip文件的例子
?? H
字號:
/* deflate.h -- internal compression state
 * Copyright (C) 1995-1996 Jean-loup Gailly
 * For conditions of distribution and use, see copyright notice in zlib.h 
 */

/* WARNING: this file should *not* be used by applications. It is
   part of the implementation of the compression library and is
   subject to change. Applications should only use zlib.h.
 */

/* $Id: deflate.h,v 1.10 1996/07/02 12:41:00 me Exp $ */

#ifndef _DEFLATE_H
#define _DEFLATE_H

#include "zutil.h"

/* ===========================================================================
 * Internal compression state.
 */

#define LENGTH_CODES 29
/* number of length codes, not counting the special END_BLOCK code */

#define LITERALS  256
/* number of literal bytes 0..255 */

#define L_CODES (LITERALS+1+LENGTH_CODES)
/* number of Literal or Length codes, including the END_BLOCK code */

#define D_CODES   30
/* number of distance codes */

#define BL_CODES  19
/* number of codes used to transfer the bit lengths */

#define HEAP_SIZE (2*L_CODES+1)
/* maximum heap size */

#define MAX_BITS 15
/* All codes must not exceed MAX_BITS bits */

#define INIT_STATE    42
#define BUSY_STATE   113
#define FINISH_STATE 666
/* Stream status */


/* Data structure describing a single value and its code string. */
typedef struct ct_data_s {
    union {
        ush  freq;       /* frequency count */
        ush  code;       /* bit string */
    } fc;
    union {
        ush  dad;        /* father node in Huffman tree */
        ush  len;        /* length of bit string */
    } dl;
} FAR ct_data;

#define Freq fc.freq
#define Code fc.code
#define Dad  dl.dad
#define Len  dl.len

typedef struct static_tree_desc_s  static_tree_desc;

typedef struct tree_desc_s {
    ct_data *dyn_tree;           /* the dynamic tree */
    int     max_code;            /* largest code with non zero frequency */
    static_tree_desc *stat_desc; /* the corresponding static tree */
} FAR tree_desc;

typedef ush Pos;
typedef Pos FAR Posf;
typedef unsigned IPos;

/* A Pos is an index in the character window. We use short instead of int to
 * save space in the various tables. IPos is used only for parameter passing.
 */

typedef struct internal_state {
    z_streamp strm;      /* pointer back to this zlib stream */
    int   status;        /* as the name implies */
    Bytef *pending_buf;  /* output still pending */
    Bytef *pending_out;  /* next pending byte to output to the stream */
    int   pending;       /* nb of bytes in the pending buffer */
    int   noheader;      /* suppress zlib header and adler32 */
    Byte  data_type;     /* UNKNOWN, BINARY or ASCII */
    Byte  method;        /* STORED (for zip only) or DEFLATED */
    int   last_flush;    /* value of flush param for previous deflate call */

                /* used by deflate.c: */

    uInt  w_size;        /* LZ77 window size (32K by default) */
    uInt  w_bits;        /* log2(w_size)  (8..16) */
    uInt  w_mask;        /* w_size - 1 */

    Bytef *window;
    /* Sliding window. Input bytes are read into the second half of the window,
     * and move to the first half later to keep a dictionary of at least wSize
     * bytes. With this organization, matches are limited to a distance of
     * wSize-MAX_MATCH bytes, but this ensures that IO is always
     * performed with a length multiple of the block size. Also, it limits
     * the window size to 64K, which is quite useful on MSDOS.
     * To do: use the user input buffer as sliding window.
     */

    ulg window_size;
    /* Actual size of window: 2*wSize, except when the user input buffer
     * is directly used as sliding window.
     */

    Posf *prev;
    /* Link to older string with same hash index. To limit the size of this
     * array to 64K, this link is maintained only for the last 32K strings.
     * An index in this array is thus a window index modulo 32K.
     */

    Posf *head; /* Heads of the hash chains or NIL. */

    uInt  ins_h;          /* hash index of string to be inserted */
    uInt  hash_size;      /* number of elements in hash table */
    uInt  hash_bits;      /* log2(hash_size) */
    uInt  hash_mask;      /* hash_size-1 */

    uInt  hash_shift;
    /* Number of bits by which ins_h must be shifted at each input
     * step. It must be such that after MIN_MATCH steps, the oldest
     * byte no longer takes part in the hash key, that is:
     *   hash_shift * MIN_MATCH >= hash_bits
     */

    long block_start;
    /* Window position at the beginning of the current output block. Gets
     * negative when the window is moved backwards.
     */

    uInt match_length;           /* length of best match */
    IPos prev_match;             /* previous match */
    int match_available;         /* set if previous match exists */
    uInt strstart;               /* start of string to insert */
    uInt match_start;            /* start of matching string */
    uInt lookahead;              /* number of valid bytes ahead in window */

    uInt prev_length;
    /* Length of the best match at previous step. Matches not greater than this
     * are discarded. This is used in the lazy match evaluation.
     */

    uInt max_chain_length;
    /* To speed up deflation, hash chains are never searched beyond this
     * length.  A higher limit improves compression ratio but degrades the
     * speed.
     */

    uInt max_lazy_match;
    /* Attempt to find a better match only when the current match is strictly
     * smaller than this value. This mechanism is used only for compression
     * levels >= 4.
     */
#   define max_insert_length  max_lazy_match
    /* Insert new strings in the hash table only if the match length is not
     * greater than this length. This saves time but degrades compression.
     * max_insert_length is used only for compression levels <= 3.
     */

    int level;    /* compression level (1..9) */
    int strategy; /* favor or force Huffman coding*/

    uInt good_match;
    /* Use a faster search when the previous match is longer than this */

    int nice_match; /* Stop searching when current match exceeds this */

                /* used by trees.c: */
    /* Didn't use ct_data typedef below to supress compiler warning */
    struct ct_data_s dyn_ltree[HEAP_SIZE];   /* literal and length tree */
    struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */
    struct ct_data_s bl_tree[2*BL_CODES+1];  /* Huffman tree for bit lengths */

    struct tree_desc_s l_desc;               /* desc. for literal tree */
    struct tree_desc_s d_desc;               /* desc. for distance tree */
    struct tree_desc_s bl_desc;              /* desc. for bit length tree */

    ush bl_count[MAX_BITS+1];
    /* number of codes at each bit length for an optimal tree */

    int heap[2*L_CODES+1];      /* heap used to build the Huffman trees */
    int heap_len;               /* number of elements in the heap */
    int heap_max;               /* element of largest frequency */
    /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.
     * The same heap array is used to build all trees.
     */

    uch depth[2*L_CODES+1];
    /* Depth of each subtree used as tie breaker for trees of equal frequency
     */

    uchf *l_buf;          /* buffer for literals or lengths */

    uInt  lit_bufsize;
    /* Size of match buffer for literals/lengths.  There are 4 reasons for
     * limiting lit_bufsize to 64K:
     *   - frequencies can be kept in 16 bit counters
     *   - if compression is not successful for the first block, all input
     *     data is still in the window so we can still emit a stored block even
     *     when input comes from standard input.  (This can also be done for
     *     all blocks if lit_bufsize is not greater than 32K.)
     *   - if compression is not successful for a file smaller than 64K, we can
     *     even emit a stored file instead of a stored block (saving 5 bytes).
     *     This is applicable only for zip (not gzip or zlib).
     *   - creating new Huffman trees less frequently may not provide fast
     *     adaptation to changes in the input data statistics. (Take for
     *     example a binary file with poorly compressible code followed by
     *     a highly compressible string table.) Smaller buffer sizes give
     *     fast adaptation but have of course the overhead of transmitting
     *     trees more frequently.
     *   - I can't count above 4
     */

    uInt last_lit;      /* running index in l_buf */

    ushf *d_buf;
    /* Buffer for distances. To simplify the code, d_buf and l_buf have
     * the same number of elements. To use different lengths, an extra flag
     * array would be necessary.
     */

    ulg opt_len;        /* bit length of current block with optimal trees */
    ulg static_len;     /* bit length of current block with static trees */
    ulg compressed_len; /* total bit length of compressed file */
    uInt matches;       /* number of string matches in current block */
    int last_eob_len;   /* bit length of EOB code for last block */

#ifdef DEBUG
    ulg bits_sent;      /* bit length of the compressed data */
#endif

    ush bi_buf;
    /* Output buffer. bits are inserted starting at the bottom (least
     * significant bits).
     */
    int bi_valid;
    /* Number of valid bits in bi_buf.  All bits above the last valid bit
     * are always zero.
     */

} FAR deflate_state;

/* Output a byte on the stream.
 * IN assertion: there is enough room in pending_buf.
 */
#define put_byte(s, c) {s->pending_buf[s->pending++] = (c);}


#define MIN_LOOKAHEAD (MAX_MATCH+MIN_MATCH+1)
/* Minimum amount of lookahead, except at the end of the input file.
 * See deflate.c for comments about the MIN_MATCH+1.
 */

#define MAX_DIST(s)  ((s)->w_size-MIN_LOOKAHEAD)
/* In order to simplify the code, particularly on 16 bit machines, match
 * distances are limited to MAX_DIST instead of WSIZE.
 */

        /* in trees.c */
void _tr_init         OF((deflate_state *s));
int  _tr_tally        OF((deflate_state *s, unsigned dist, unsigned lc));
ulg  _tr_flush_block  OF((deflate_state *s, charf *buf, ulg stored_len,
			  int eof));
void _tr_align        OF((deflate_state *s));
void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len,
                          int eof));
#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
夫妻av一区二区| 经典一区二区三区| 91女人视频在线观看| 亚洲视频狠狠干| 欧美视频自拍偷拍| 狂野欧美性猛交blacked| 26uuu色噜噜精品一区二区| 国产精品自拍av| 亚洲欧美偷拍三级| 91精品国产综合久久久久久久| 欧美aaaaa成人免费观看视频| 日韩女优av电影| 国产成a人无v码亚洲福利| 国产精品青草久久| 欧美性大战久久久久久久| 日韩影院精彩在线| 国产人久久人人人人爽| 99v久久综合狠狠综合久久| 亚洲一区二区三区三| 精品日本一线二线三线不卡| www..com久久爱| 日本不卡不码高清免费观看| 久久午夜免费电影| 在线观看视频91| 国产一区二区三区免费| 亚洲最新在线观看| 精品国产髙清在线看国产毛片| 国产成人精品一区二| 夜夜精品浪潮av一区二区三区| 精品国产一区二区精华| 91福利视频久久久久| 国产真实精品久久二三区| 一区二区三区精密机械公司| 欧美精品一区二区三区高清aⅴ| 波多野结衣中文字幕一区| 丝袜诱惑亚洲看片| 亚洲丝袜自拍清纯另类| 日韩欧美一二三四区| 一本久久a久久免费精品不卡| 美女视频网站久久| 一区二区三区久久| 国产精品嫩草久久久久| 日韩欧美区一区二| 欧美日韩一区二区三区四区| 成人午夜视频福利| 狠狠色丁香久久婷婷综| 亚洲va欧美va人人爽午夜| 国产精品九色蝌蚪自拍| 26uuu国产电影一区二区| 欧美色老头old∨ideo| 99麻豆久久久国产精品免费优播| 麻豆精品新av中文字幕| 午夜久久福利影院| 亚洲精品日韩专区silk| 国产精品剧情在线亚洲| 欧美精品一区二区久久久| 91精品国产综合久久久久久| 欧美最新大片在线看| 91麻豆高清视频| 成人免费观看男女羞羞视频| 久草中文综合在线| 男男视频亚洲欧美| 亚洲愉拍自拍另类高清精品| 国产精品色哟哟| 国产精品免费av| 久久精品视频网| 国产亚洲欧洲一区高清在线观看| 欧美日韩精品专区| 一本色道久久综合亚洲91| 99精品久久久久久| 波多野结衣在线aⅴ中文字幕不卡| 国内精品嫩模私拍在线| 精品在线播放免费| 精品一区二区三区香蕉蜜桃| 青青国产91久久久久久| 免费不卡在线观看| 日韩av一级电影| 毛片一区二区三区| 国内精品视频666| 国产精品一区二区免费不卡| 国产精品一区二区在线播放| 日韩精品欧美精品| 日韩一区二区不卡| 欧美一三区三区四区免费在线看 | 欧洲一区在线电影| 色婷婷国产精品久久包臀 | 亚洲国产精品久久久男人的天堂 | 94色蜜桃网一区二区三区| 成人免费福利片| av不卡免费电影| 欧美中文字幕不卡| 欧美嫩在线观看| 精品国产乱码久久久久久浪潮 | 成人国产电影网| 色综合久久九月婷婷色综合| 欧美丝袜丝交足nylons| 91精品黄色片免费大全| 久久久一区二区三区捆绑**| 国产精品久久久久久久久快鸭| 亚洲另类在线一区| 日本免费新一区视频| 国产成人一级电影| 欧美性猛交xxxx黑人交| 精品国产乱码久久久久久影片| 中文字幕不卡一区| 性久久久久久久久| 国产精品影视网| 91麻豆高清视频| 日韩免费视频一区二区| 亚洲欧美综合另类在线卡通| 午夜视频一区二区| 国产精品一区二区久久精品爱涩| 一本一道综合狠狠老| 日韩欧美激情一区| 亚洲乱码国产乱码精品精的特点 | 性感美女久久精品| 国产一区美女在线| 91福利视频网站| 久久久www成人免费无遮挡大片 | 国产欧美精品一区aⅴ影院 | 亚洲免费色视频| 久久国内精品自在自线400部| aa级大片欧美| 欧美mv日韩mv国产网站| 亚洲综合清纯丝袜自拍| 国产一区二区导航在线播放| 欧美日韩一级黄| 欧美高清一级片在线观看| 日本不卡不码高清免费观看| 色综合天天视频在线观看 | 中文字幕一区av| 精品在线免费观看| 欧美日韩国产欧美日美国产精品| 中文字幕免费不卡| 精品无码三级在线观看视频 | 制服.丝袜.亚洲.另类.中文| 亚洲欧洲美洲综合色网| 精品一区二区免费视频| 欧美精选午夜久久久乱码6080| 国产精品久久久久久福利一牛影视| 美女视频黄久久| 欧美久久久久久蜜桃| 亚洲一二三区视频在线观看| 成人福利电影精品一区二区在线观看| 日韩欧美亚洲国产另类| 亚洲.国产.中文慕字在线| 在线观看日韩av先锋影音电影院| 国产精品乱码一区二三区小蝌蚪| 久久国产婷婷国产香蕉| 日韩一级片网站| 蜜桃av一区二区在线观看| 91超碰这里只有精品国产| 亚洲一区视频在线观看视频| 91猫先生在线| 中文字幕在线不卡| 99久久er热在这里只有精品15| 国产视频一区在线播放| 国产一区二区三区免费看 | 久久国产麻豆精品| 制服丝袜亚洲色图| 日韩高清在线电影| 日韩亚洲国产中文字幕欧美| 亚洲国产wwwccc36天堂| 欧美性受极品xxxx喷水| 一区二区三区在线看| 色婷婷av一区| 一区二区三区在线视频观看 | 欧美一区二区啪啪| 日韩av网站免费在线| 欧美一区二区三区影视| 美女爽到高潮91| 久久久91精品国产一区二区精品| 国产一区二区电影| 中文子幕无线码一区tr| 99久久er热在这里只有精品66| ●精品国产综合乱码久久久久| 99久久夜色精品国产网站| 亚洲最大成人综合| 欧美精品高清视频| 久99久精品视频免费观看| 国产网站一区二区三区| 成人激情免费视频| 亚洲精品日日夜夜| 91精品国产全国免费观看| 人人狠狠综合久久亚洲| 久久久国产精品麻豆| 91在线观看地址| 五月激情综合色| 久久久久一区二区三区四区| av欧美精品.com| 亚洲一区二区av在线| 欧美一区2区视频在线观看| 国产一区二区三区免费| 亚洲欧洲综合另类| 欧美一区二区三区成人| 国产99久久久国产精品潘金网站| 亚洲天堂网中文字| 在线播放欧美女士性生活| 国产精品亚洲成人| 亚洲福中文字幕伊人影院|