Logo ROOT   6.12/07
Reference Guide
Compression.h
Go to the documentation of this file.
1 // @(#)root/zip:$Id$
2 // Author: David Dagenhart May 2011
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2011, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_Compression
13 #define ROOT_Compression
14 
15 #if defined(__cplusplus)
16 namespace ROOT {
17 #endif
18 
19 /// The global settings depend on a global variable named R__ZipMode which can be
20 /// modified by a global function named R__SetZipMode. Both are defined in Bits.h.
21 ///
22 /// - The default is to use the global setting and the default of the global
23 /// setting is to use the ZLIB compression algorithm.
24 /// - The LZMA algorithm (from the XZ package) is also available. The LZMA
25 /// compression usually results in greater compression factors, but takes
26 /// more CPU time and memory when compressing. LZMA memory usage is particularly
27 /// high for compression levels 8 and 9.
28 /// - Finally, the LZ4 package results in worse compression ratios
29 /// than ZLIB but achieves much faster decompression rates.
30 ///
31 /// The current algorithms support level 1 to 9. The higher the level the greater
32 /// the compression and more CPU time and memory resources used during compression.
33 /// Level 0 means no compression.
35  /// Use the global compression setting
37  /// Use ZLIB compression
39  /// Use LZMA compression
41  /// Use the old compression algorithm
43  /// Use LZ4 compression
45  /// Undefined compression algorithm (must be kept the last of the list in case a new algorithm is added).
47 };
48 
49 /// Deprecated name, do *not* use:
51 
52 #if defined(__cplusplus)
53 
54  int CompressionSettings(ECompressionAlgorithm algorithm,
55  int compressionLevel);
56 }
57 #endif
58 
59 #endif
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
Use LZ4 compression.
Definition: Compression.h:44
Use LZMA compression.
Definition: Compression.h:40
ECompressionAlgorithm
The global settings depend on a global variable named R__ZipMode which can be modified by a global fu...
Definition: Compression.h:34
Use ZLIB compression.
Definition: Compression.h:38
Use the old compression algorithm.
Definition: Compression.h:42
Use the global compression setting.
Definition: Compression.h:36
static enum ECompressionAlgorithm kUseGlobalSetting
Deprecated name, do not use:
Definition: Compression.h:50
Undefined compression algorithm (must be kept the last of the list in case a new algorithm is added)...
Definition: Compression.h:46