![]() |
TSDuck v3.43-4480
MPEG Transport Stream Toolkit
|
Implementation of RFC 1951 data compression, a.k.a. More...
#include <tsZlib.h>
Static Public Member Functions | |
| static bool | Compress (ByteBlock &out, const ByteBlock &in, int level, Report &report=(ts::NullReport::Instance()), bool use_sdefl=false) |
| Compress data according to the DEFLATE algorithm. | |
| static bool | Compress (ByteBlock &out, const void *in, size_t in_size, int level, Report &report=(ts::NullReport::Instance()), bool use_sdefl=false) |
| Compress data according to the DEFLATE algorithm. | |
| static bool | CompressAppend (ByteBlock &out, const ByteBlock &in, int level, Report &report=(ts::NullReport::Instance()), bool use_sdefl=false) |
| Compress data according to the DEFLATE algorithm. | |
| static bool | CompressAppend (ByteBlock &out, const void *in, size_t in_size, int level, Report &report=(ts::NullReport::Instance()), bool use_sdefl=false) |
| Compress data according to the DEFLATE algorithm. | |
| static bool | Decompress (ByteBlock &out, const ByteBlock &in, Report &report=(ts::NullReport::Instance()), bool use_sdefl=false) |
| Decompress data according to the DEFLATE algorithm. | |
| static bool | Decompress (ByteBlock &out, const void *in, size_t in_size, Report &report=(ts::NullReport::Instance()), bool use_sdefl=false) |
| Decompress data according to the DEFLATE algorithm. | |
| static bool | DecompressAppend (ByteBlock &out, const ByteBlock &in, Report &report=(ts::NullReport::Instance()), bool use_sdefl=false) |
| Decompress data according to the DEFLATE algorithm. | |
| static bool | DecompressAppend (ByteBlock &out, const void *in, size_t in_size, Report &report=(ts::NullReport::Instance()), bool use_sdefl=false) |
| Decompress data according to the DEFLATE algorithm. | |
| static bool | DefaultSdefl () |
| Check if "Small Deflate" or "sdefl" is the default compression library. | |
| static UString | GetLibraryVersion () |
| Get the Zlib library version. | |
| static bool | SdeflSupported () |
| Check if "Small Deflate" or "sdefl" is supported. | |
Implementation of RFC 1951 data compression, a.k.a.
zlib format, a.k.a. DEFLATE.
This interface is a proxy to the zlib library on UNIX systems (Linux, macOS, BSD). On Windows systems, the source code of TSDuck embeds the header-only implementation called "Small Deflate" or "sdefl". The sdefl implementation is also used when the macro TS_NO_ZLIB is defined on any system.
|
static |
|
static |
Check if "Small Deflate" or "sdefl" is the default compression library.
|
static |
Check if "Small Deflate" or "sdefl" is supported.
|
inlinestatic |
Compress data according to the DEFLATE algorithm.
| [out] | out | Output compressed data. |
| [in] | in | Address of input data. |
| [in] | in_size | Size in bytes of input data. |
| [in] | level | Requested compression level, from 0 to 9. |
| [in,out] | report | Where to report errors. |
| [in] | use_sdefl | If true, force the usage of "sdefl" library. By default, use "zlib" on UNIX systems and "sdefl" on Windows. |
|
inlinestatic |
Compress data according to the DEFLATE algorithm.
| [out] | out | Output compressed data. |
| [in] | in | Input data. |
| [in] | level | Requested compression level, from 0 to 9. |
| [in,out] | report | Where to report errors. |
| [in] | use_sdefl | If true, force the usage of "sdefl" library. By default, use "zlib" on UNIX systems and "sdefl" on Windows. |
|
static |
Compress data according to the DEFLATE algorithm.
| [in,out] | out | Output compressed data are appended at the end of the existing content. |
| [in] | in | Address of input data. |
| [in] | in_size | Size in bytes of input data. |
| [in] | level | Requested compression level, from 0 to 9. |
| [in,out] | report | Where to report errors. |
| [in] | use_sdefl | If true, force the usage of "sdefl" library. By default, use "zlib" on UNIX systems and "sdefl" on Windows. |
|
inlinestatic |
Compress data according to the DEFLATE algorithm.
| [in,out] | out | Output compressed data are appended at the end of the existing content. |
| [in] | in | Input data. |
| [in] | level | Requested compression level, from 0 to 9. |
| [in,out] | report | Where to report errors. |
| [in] | use_sdefl | If true, force the usage of "sdefl" library. By default, use "zlib" on UNIX systems and "sdefl" on Windows. |
|
inlinestatic |
Decompress data according to the DEFLATE algorithm.
| [out] | out | Output decompressed data. |
| [in] | in | Address of input data. |
| [in] | in_size | Size in bytes of input data. |
| [in,out] | report | Where to report errors. |
| [in] | use_sdefl | If true, force the usage of "sdefl" library. By default, use "zlib" on UNIX systems and "sdefl" on Windows. |
|
inlinestatic |
Decompress data according to the DEFLATE algorithm.
| [out] | out | Output decompressed data. |
| [in] | in | Input data. |
| [in,out] | report | Where to report errors. |
| [in] | use_sdefl | If true, force the usage of "sdefl" library. By default, use "zlib" on UNIX systems and "sdefl" on Windows. |
|
static |
Decompress data according to the DEFLATE algorithm.
| [out] | out | Output decompressed data are appended at the end of the existing content. |
| [in] | in | Address of input data. |
| [in] | in_size | Size in bytes of input data. |
| [in,out] | report | Where to report errors. |
| [in] | use_sdefl | If true, force the usage of "sdefl" library. By default, use "zlib" on UNIX systems and "sdefl" on Windows. |
|
inlinestatic |
Decompress data according to the DEFLATE algorithm.
| [out] | out | Output decompressed data are appended at the end of the existing content. |
| [in] | in | Input data. |
| [in,out] | report | Where to report errors. |
| [in] | use_sdefl | If true, force the usage of "sdefl" library. By default, use "zlib" on UNIX systems and "sdefl" on Windows. |