-
Notifications
You must be signed in to change notification settings - Fork 1
/
LZOTester.hh
48 lines (32 loc) · 1.26 KB
/
LZOTester.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// LZOTester.hh
// Scott F. Kaplan -- [email protected]
// October 1997
// A tester designed to work on the Lempel-Ziv-Oberhumer
// compression/decompression algorithm. Note that we've chosen to use
// the LZO1f variant--according to the results provided by Oberhumer,
// that variant does best with short compression sources.
// Prevent multiple inclusion by surrounding the header file with
// preprocessor directives.
#if !defined (_LZOTESTER_HH)
#define _LZOTESTER_HH
#include "CompressionAlgorithmTester.hh"
class LZOTester : public CompressionAlgorithmTester {
public:
// The default constructor
LZOTester (char* outputFilename, const bool initUseFixedImages) :
CompressionAlgorithmTester(outputFilename, false) {}
protected:
// Perform the actual tasks of timing the compression and
// decompression of a given algorithm.
virtual void performCompressionTest
(void* uncompressedData,
unsigned int uncompressedBytes,
unsigned int& returnCompressedSize,
unsigned long long& returnCompressionTime);
virtual void performDecompressionTest
(void* uncompressedData,
unsigned int uncompressedBytes,
unsigned int& returnPreDecompressionSize,
unsigned long long& returnDecompressionTime);
};
#endif // _LZOTESTER_HH