Changeset 133 for smplayer/vendor/current/zlib/zlib.h
- Timestamp:
- Oct 24, 2012, 7:56:20 PM (13 years ago)
- Location:
- smplayer/vendor/current/zlib
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/zlib/zlib.h
r121 r133 1 1 /* zlib.h -- interface of the 'zlib' general purpose compression library 2 version 1.2. 6, January 29th, 20122 version 1.2.7, May 2nd, 2012 3 3 4 4 Copyright (C) 1995-2012 Jean-loup Gailly and Mark Adler … … 38 38 #endif 39 39 40 #define ZLIB_VERSION "1.2. 6"41 #define ZLIB_VERNUM 0x12 6040 #define ZLIB_VERSION "1.2.7" 41 #define ZLIB_VERNUM 0x1270 42 42 #define ZLIB_VER_MAJOR 1 43 43 #define ZLIB_VER_MINOR 2 44 #define ZLIB_VER_REVISION 644 #define ZLIB_VER_REVISION 7 45 45 #define ZLIB_VER_SUBREVISION 0 46 46 … … 453 453 single call of inflate), the parameter flush should be set to Z_FINISH. In 454 454 this case all pending input is processed and all pending output is flushed; 455 avail_out must be large enough to hold all the uncompressed data. (The size 456 of the uncompressed data may have been saved by the compressor for this 457 purpose.) The next operation on this stream must be inflateEnd to deallocate 458 the decompression state. The use of Z_FINISH is not required to perform an 459 inflation in one step. However it may be used to inform inflate that a 460 faster approach can be used for the single inflate() call. Z_FINISH also 461 informs inflate to not maintain a sliding window if the stream completes, 462 which reduces inflate's memory footprint. 455 avail_out must be large enough to hold all of the uncompressed data for the 456 operation to complete. (The size of the uncompressed data may have been 457 saved by the compressor for this purpose.) The use of Z_FINISH is not 458 required to perform an inflation in one step. However it may be used to 459 inform inflate that a faster approach can be used for the single inflate() 460 call. Z_FINISH also informs inflate to not maintain a sliding window if the 461 stream completes, which reduces inflate's memory footprint. If the stream 462 does not complete, either because not all of the stream is provided or not 463 enough output space is provided, then a sliding window will be allocated and 464 inflate() can be called again to continue the operation as if Z_NO_FLUSH had 465 been used. 463 466 464 467 In this implementation, inflate() always flushes as much output as … … 1218 1221 "a" can be used instead of "w" to request that the gzip stream that will 1219 1222 be written be appended to the file. "+" will result in an error, since 1220 reading and writing to the same gzip file is not supported. 1223 reading and writing to the same gzip file is not supported. The addition of 1224 "x" when writing will create the file exclusively, which fails if the file 1225 already exists. On systems that support it, the addition of "e" when 1226 reading or writing will set the flag to close the file on an execve() call. 1221 1227 1222 1228 These functions, as well as gzip, will read and decode a sequence of gzip … … 1579 1585 Update a running CRC-32 with the bytes buf[0..len-1] and return the 1580 1586 updated CRC-32. If buf is Z_NULL, this function returns the required 1581 initial value for the for the crc. Pre- and post-conditioning (one's 1582 complement) is performed within this function so it shouldn't be done by the 1583 application. 1587 initial value for the crc. Pre- and post-conditioning (one's complement) is 1588 performed within this function so it shouldn't be done by the application. 1584 1589 1585 1590 Usage example: … … 1651 1656 z_off64_t pos; 1652 1657 }; 1653 ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); 1654 #define gzgetc(g) \ 1655 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc_(g)) 1658 ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */ 1659 #ifdef Z_PREFIX_SET 1660 # undef z_gzgetc 1661 # define z_gzgetc(g) \ 1662 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g)) 1663 #else 1664 # define gzgetc(g) \ 1665 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g)) 1666 #endif 1656 1667 1657 1668 /* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or … … 1661 1672 * without large file support, _LFS64_LARGEFILE must also be true 1662 1673 */ 1663 #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-01674 #ifdef Z_LARGE64 1664 1675 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); 1665 1676 ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); … … 1670 1681 #endif 1671 1682 1672 #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-01683 #if !defined(ZLIB_INTERNAL) && defined(Z_WANT64) 1673 1684 # ifdef Z_PREFIX_SET 1674 1685 # define z_gzopen z_gzopen64 … … 1686 1697 # define crc32_combine crc32_combine64 1687 1698 # endif 1688 # ifndef _LARGEFILE64_SOURCE1699 # ifndef Z_LARGE64 1689 1700 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); 1690 1701 ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); … … 1718 1729 ZEXTERN const char * ZEXPORT zError OF((int)); 1719 1730 ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp)); 1720 ZEXTERN const uLongf* ZEXPORT get_crc_table OF((void));1731 ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void)); 1721 1732 ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int)); 1722 1733 ZEXTERN int ZEXPORT inflateResetKeep OF((z_streamp)); 1723 1734 ZEXTERN int ZEXPORT deflateResetKeep OF((z_streamp)); 1724 #ifndef Z_SOLO 1725 ZEXTERN unsigned long ZEXPORT gzflags OF((void)); 1735 #if defined(_WIN32) && !defined(Z_SOLO) 1736 ZEXTERN gzFile ZEXPORT gzopen_w OF((const wchar_t *path, 1737 const char *mode)); 1726 1738 #endif 1727 1739
Note:
See TracChangeset
for help on using the changeset viewer.