|
1 | 1 | /* zlib.h -- interface of the 'zlib' general purpose compression library |
2 | | - version 1.3.1.1, January xxth, 2024 |
| 2 | + version 1.3.1, January 22nd, 2024 |
3 | 3 |
|
4 | 4 | Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler |
5 | 5 |
|
|
31 | 31 | #ifndef ZLIB_H |
32 | 32 | #define ZLIB_H |
33 | 33 |
|
34 | | -#ifdef ZLIB_BUILD |
35 | | -# include <zconf.h> |
36 | | -#else |
37 | | -# include "zconf.h" |
38 | | -#endif |
| 34 | +#include "zconf.h" |
39 | 35 |
|
40 | 36 | #ifdef __cplusplus |
41 | 37 | extern "C" { |
42 | 38 | #endif |
43 | 39 |
|
44 | | -#define ZLIB_VERSION "1.3.1.1-motley" |
45 | | -#define ZLIB_VERNUM 0x1311 |
| 40 | +#define ZLIB_VERSION "1.3.1" |
| 41 | +#define ZLIB_VERNUM 0x1310 |
46 | 42 | #define ZLIB_VER_MAJOR 1 |
47 | 43 | #define ZLIB_VER_MINOR 3 |
48 | 44 | #define ZLIB_VER_REVISION 1 |
49 | | -#define ZLIB_VER_SUBREVISION 1 |
| 45 | +#define ZLIB_VER_SUBREVISION 0 |
50 | 46 |
|
51 | 47 | /* |
52 | 48 | The 'zlib' compression library provides in-memory compression and |
@@ -591,21 +587,18 @@ ZEXTERN int ZEXPORT deflateInit2(z_streamp strm, |
591 | 587 |
|
592 | 588 | The strategy parameter is used to tune the compression algorithm. Use the |
593 | 589 | value Z_DEFAULT_STRATEGY for normal data, Z_FILTERED for data produced by a |
594 | | - filter (or predictor), Z_RLE to limit match distances to one (run-length |
595 | | - encoding), or Z_HUFFMAN_ONLY to force Huffman encoding only (no string |
596 | | - matching). Filtered data consists mostly of small values with a somewhat |
597 | | - random distribution, as produced by the PNG filters. In this case, the |
598 | | - compression algorithm is tuned to compress them better. The effect of |
599 | | - Z_FILTERED is to force more Huffman coding and less string matching than the |
600 | | - default; it is intermediate between Z_DEFAULT_STRATEGY and Z_HUFFMAN_ONLY. |
601 | | - Z_RLE is almost as fast as Z_HUFFMAN_ONLY, but should give better |
602 | | - compression for PNG image data than Huffman only. The degree of string |
603 | | - matching from most to none is: Z_DEFAULT_STRATEGY, Z_FILTERED, Z_RLE, then |
604 | | - Z_HUFFMAN_ONLY. The strategy parameter affects the compression ratio but |
605 | | - never the correctness of the compressed output, even if it is not set |
606 | | - optimally for the given data. Z_FIXED uses the default string matching, but |
607 | | - prevents the use of dynamic Huffman codes, allowing for a simpler decoder |
608 | | - for special applications. |
| 590 | + filter (or predictor), Z_HUFFMAN_ONLY to force Huffman encoding only (no |
| 591 | + string match), or Z_RLE to limit match distances to one (run-length |
| 592 | + encoding). Filtered data consists mostly of small values with a somewhat |
| 593 | + random distribution. In this case, the compression algorithm is tuned to |
| 594 | + compress them better. The effect of Z_FILTERED is to force more Huffman |
| 595 | + coding and less string matching; it is somewhat intermediate between |
| 596 | + Z_DEFAULT_STRATEGY and Z_HUFFMAN_ONLY. Z_RLE is designed to be almost as |
| 597 | + fast as Z_HUFFMAN_ONLY, but give better compression for PNG image data. The |
| 598 | + strategy parameter only affects the compression ratio but not the |
| 599 | + correctness of the compressed output even if it is not set appropriately. |
| 600 | + Z_FIXED prevents the use of dynamic Huffman codes, allowing for a simpler |
| 601 | + decoder for special applications. |
609 | 602 |
|
610 | 603 | deflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough |
611 | 604 | memory, Z_STREAM_ERROR if any parameter is invalid (such as an invalid |
@@ -795,18 +788,6 @@ ZEXTERN int ZEXPORT deflatePending(z_streamp strm, |
795 | 788 | stream state was inconsistent. |
796 | 789 | */ |
797 | 790 |
|
798 | | -ZEXTERN int ZEXPORT deflateUsed(z_streamp strm, |
799 | | - int *bits); |
800 | | -/* |
801 | | - deflateUsed() returns in *bits the most recent number of deflate bits used |
802 | | - in the last byte when flushing to a byte boundary. The result is in 1..8, or |
803 | | - 0 if there has not yet been a flush. This helps determine the location of |
804 | | - the last bit of a deflate stream. |
805 | | -
|
806 | | - deflateUsed returns Z_OK if success, or Z_STREAM_ERROR if the source |
807 | | - stream state was inconsistent. |
808 | | - */ |
809 | | - |
810 | 791 | ZEXTERN int ZEXPORT deflatePrime(z_streamp strm, |
811 | 792 | int bits, |
812 | 793 | int value); |
@@ -1907,9 +1888,9 @@ ZEXTERN int ZEXPORT gzgetc_(gzFile file); /* backward compatibility */ |
1907 | 1888 | ZEXTERN z_off_t ZEXPORT gzseek64(gzFile, z_off_t, int); |
1908 | 1889 | ZEXTERN z_off_t ZEXPORT gztell64(gzFile); |
1909 | 1890 | ZEXTERN z_off_t ZEXPORT gzoffset64(gzFile); |
1910 | | - ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off64_t); |
1911 | | - ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off64_t); |
1912 | | - ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off64_t); |
| 1891 | + ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off_t); |
| 1892 | + ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off_t); |
| 1893 | + ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off_t); |
1913 | 1894 | # endif |
1914 | 1895 | #else |
1915 | 1896 | ZEXTERN gzFile ZEXPORT gzopen(const char *, const char *); |
|
0 commit comments