Deleted Added
full compact
deflate.h (33908) deflate.h (42471)
1/* deflate.h -- internal compression state
2 * Copyright (C) 1995-1998 Jean-loup Gailly
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6/* WARNING: this file should *not* be used by applications. It is
7 part of the implementation of the compression library and is
8 subject to change. Applications should only use zlib.h.
9 */
10
1/* deflate.h -- internal compression state
2 * Copyright (C) 1995-1998 Jean-loup Gailly
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6/* WARNING: this file should *not* be used by applications. It is
7 part of the implementation of the compression library and is
8 subject to change. Applications should only use zlib.h.
9 */
10
11/* $FreeBSD: head/lib/libz/deflate.h 33908 1998-02-28 06:08:17Z steve $ */
11/* @(#) $Id: deflate.h,v 1.1.1.3 1999/01/10 09:46:53 peter Exp $ */
12
13#ifndef _DEFLATE_H
14#define _DEFLATE_H
15
16#include "zutil.h"
17
18/* ===========================================================================
19 * Internal compression state.

--- 205 unchanged lines hidden (view full) ---

225 ushf *d_buf;
226 /* Buffer for distances. To simplify the code, d_buf and l_buf have
227 * the same number of elements. To use different lengths, an extra flag
228 * array would be necessary.
229 */
230
231 ulg opt_len; /* bit length of current block with optimal trees */
232 ulg static_len; /* bit length of current block with static trees */
12
13#ifndef _DEFLATE_H
14#define _DEFLATE_H
15
16#include "zutil.h"
17
18/* ===========================================================================
19 * Internal compression state.

--- 205 unchanged lines hidden (view full) ---

225 ushf *d_buf;
226 /* Buffer for distances. To simplify the code, d_buf and l_buf have
227 * the same number of elements. To use different lengths, an extra flag
228 * array would be necessary.
229 */
230
231 ulg opt_len; /* bit length of current block with optimal trees */
232 ulg static_len; /* bit length of current block with static trees */
233 ulg compressed_len; /* total bit length of compressed file */
234 uInt matches; /* number of string matches in current block */
235 int last_eob_len; /* bit length of EOB code for last block */
236
237#ifdef DEBUG
233 uInt matches; /* number of string matches in current block */
234 int last_eob_len; /* bit length of EOB code for last block */
235
236#ifdef DEBUG
238 ulg bits_sent; /* bit length of the compressed data */
237 ulg compressed_len; /* total bit length of compressed file mod 2^32 */
238 ulg bits_sent; /* bit length of compressed data sent mod 2^32 */
239#endif
240
241 ush bi_buf;
242 /* Output buffer. bits are inserted starting at the bottom (least
243 * significant bits).
244 */
245 int bi_valid;
246 /* Number of valid bits in bi_buf. All bits above the last valid bit

--- 16 unchanged lines hidden (view full) ---

263#define MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD)
264/* In order to simplify the code, particularly on 16 bit machines, match
265 * distances are limited to MAX_DIST instead of WSIZE.
266 */
267
268 /* in trees.c */
269void _tr_init OF((deflate_state *s));
270int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc));
239#endif
240
241 ush bi_buf;
242 /* Output buffer. bits are inserted starting at the bottom (least
243 * significant bits).
244 */
245 int bi_valid;
246 /* Number of valid bits in bi_buf. All bits above the last valid bit

--- 16 unchanged lines hidden (view full) ---

263#define MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD)
264/* In order to simplify the code, particularly on 16 bit machines, match
265 * distances are limited to MAX_DIST instead of WSIZE.
266 */
267
268 /* in trees.c */
269void _tr_init OF((deflate_state *s));
270int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc));
271ulg _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len,
271void _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len,
272 int eof));
273void _tr_align OF((deflate_state *s));
274void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len,
275 int eof));
276
277#define d_code(dist) \
278 ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])
279/* Mapping from a distance to a distance code. dist is the distance - 1 and

--- 39 unchanged lines hidden ---
272 int eof));
273void _tr_align OF((deflate_state *s));
274void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len,
275 int eof));
276
277#define d_code(dist) \
278 ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])
279/* Mapping from a distance to a distance code. dist is the distance - 1 and

--- 39 unchanged lines hidden ---