|
NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
|
An IO::Compressor for gzip compression from zlib. More...
#include <be_io_gzip.h>
Inherits BiometricEvaluation::IO::Compressor.
Public Member Functions | |
| GZip () | |
| Memory::uint8Array | compress (const uint8_t *const uncompressedData, uint64_t uncompressedDataSize) const |
| Compress a buffer. More... | |
| Memory::uint8Array | compress (const Memory::uint8Array &uncompressedData) const |
| Compress a buffer. More... | |
| void | compress (const uint8_t *const uncompressedData, uint64_t uncompressedDataSize, const std::string &outputFile) const |
| Compress a buffer. More... | |
| void | compress (const Memory::uint8Array &uncompressedData, const std::string &outputFile) const |
| Compress a buffer. More... | |
| Memory::uint8Array | compress (const std::string &inputFile) const |
| Compress a file. More... | |
| void | compress (const std::string &inputFile, const std::string &outputFile) const |
| Compress a file. More... | |
| Memory::uint8Array | decompress (const uint8_t *const compressedData, uint64_t compressedDataSize) const |
| Decompress a compressed buffer. More... | |
| Memory::uint8Array | decompress (const Memory::uint8Array &compressedData) const |
| Decompress a compressed buffer. More... | |
| Memory::uint8Array | decompress (const std::string &input) const |
| Decompress a compressed buffer into a file. More... | |
| void | decompress (const std::string &inputFile, const std::string &outputFile) const |
| Decompress a file. More... | |
| void | decompress (const uint8_t *const compressedData, const uint64_t compressedDataSize, const std::string &outputFile) const |
| Decompress a file. More... | |
| void | decompress (const Memory::uint8Array &compressedData, const std::string &outputFile) const |
| Decompress a file. More... | |
| ~GZip () | |
| GZip (const GZip &other)=delete | |
| Copy constructor (disabled). More... | |
| GZip & | operator= (const GZip &other)=delete |
| Assignment overload (disabled). More... | |
Public Member Functions inherited from BiometricEvaluation::IO::Compressor | |
| Compressor () | |
| Create a new Compressor object. More... | |
| virtual Memory::uint8Array | compress (const uint8_t *const uncompressedData, uint64_t uncompressedDataSize) const =0 |
| Compress a buffer. More... | |
| virtual Memory::uint8Array | compress (const Memory::uint8Array &uncompressedData) const =0 |
| Compress a buffer. More... | |
| virtual void | compress (const uint8_t *const uncompressedData, uint64_t uncompressedDataSize, const std::string &outputFile) const =0 |
| Compress a buffer. More... | |
| virtual void | compress (const Memory::uint8Array &uncompressedData, const std::string &outputFile) const =0 |
| Compress a buffer. More... | |
| virtual Memory::uint8Array | compress (const std::string &inputFile) const =0 |
| Compress a file. More... | |
| virtual void | compress (const std::string &inputFile, const std::string &outputFile) const =0 |
| Compress a file. More... | |
| virtual Memory::uint8Array | decompress (const uint8_t *const compressedData, uint64_t compressedDataSize) const =0 |
| Decompress a compressed buffer. More... | |
| virtual Memory::uint8Array | decompress (const Memory::uint8Array &compressedData) const =0 |
| Decompress a compressed buffer. More... | |
| virtual Memory::uint8Array | decompress (const std::string &inputFile) const =0 |
| Decompress a compressed buffer into a file. More... | |
| virtual void | decompress (const Memory::uint8Array &compressedData, const std::string &outputFile) const =0 |
| Decompress a file. More... | |
| virtual void | decompress (const uint8_t *const compressedData, const uint64_t compressedDataSize, const std::string &outputFile) const =0 |
| Decompress a file. More... | |
| virtual void | decompress (const std::string &inputFile, const std::string &outputFile) const =0 |
| Decompress a file. More... | |
| void | setOption (const std::string &optionName, const std::string &optionValue) |
| Assign a compressor option. More... | |
| void | setOption (const std::string &optionName, int64_t optionValue) |
| Assign a compressor option. More... | |
| std::string | getOption (const std::string &optionName) const |
| Obtain a compressor option as an integer. More... | |
| int64_t | getOptionAsInteger (const std::string &optionName) const |
| Obtain a compressor option as an integer. More... | |
| void | removeOption (const std::string &optionName) |
| Remove a compressor option. More... | |
| virtual | ~Compressor () |
| Destructor. More... | |
| Compressor (const Compressor &other)=delete | |
| Copy constructor (disabled). More... | |
| Compressor & | operator= (const Compressor &other)=delete |
| Assignment overload (disabled). More... | |
Static Public Attributes | |
| static const std::string | COMPRESSION_LEVEL |
| How thorough the compression should be. More... | |
| static const std::string | COMPRESSION_STRATEGY |
| Which underlying algorithm to use. More... | |
| static const std::string | COMPRESSION_METHOD |
| Which underlying method in the compressor. More... | |
| static const std::string | INPUT_DATA_TYPE |
| The type of data being compressed. More... | |
| static const std::string | WINDOW_BITS |
| Window size. More... | |
| static const std::string | MEMORY_LEVEL |
| How much memory for internal compression state. More... | |
| static const std::string | CHUNK_SIZE |
| How many bytes to work at a time. More... | |
Additional Inherited Members | |
Public Types inherited from BiometricEvaluation::IO::Compressor | |
| enum class | Kind { GZIP } |
| Kinds of Compressors (for factory) More... | |
Static Public Member Functions inherited from BiometricEvaluation::IO::Compressor | |
| static std::shared_ptr< Compressor > | createCompressor (Compressor::Kind compressorKind=Kind::GZIP) |
| Compressor factory. More... | |
An IO::Compressor for gzip compression from zlib.
Definition at line 30 of file be_io_gzip.h.
| BiometricEvaluation::IO::GZip::GZip | ( | ) |
| BiometricEvaluation::IO::GZip::~GZip | ( | ) |
|
delete |
Copy constructor (disabled).
Disabled because Properties member of parent cannot be copied.
| other | GZip to copy. |
|
virtual |
Compress a buffer.
| uncompressedData | Uncompressed data buffer to compress. |
| uncompressedDataSize | Size of uncompressedData. |
| Error::StrategyError | Error in compression unit. |
Implements BiometricEvaluation::IO::Compressor.
|
virtual |
Compress a buffer.
| uncompressedData | Uncompressed data buffer to compress. |
| Error::StrategyError | Error in decompression unit. |
Implements BiometricEvaluation::IO::Compressor.
|
virtual |
Compress a buffer.
| uncompressedData | Uncompressed data buffer to compress. |
| uncompressedDataSize | Size of uncompressedData. |
| outputFile | Location to save compressed file. |
| Error::ObjectExists | Output file already exists. |
| Error::StrategyError | Error in compression unit. |
Implements BiometricEvaluation::IO::Compressor.
|
virtual |
Compress a buffer.
| uncompressedData | Uncompressed data buffer to compress. |
| outputFile | Location to save compressed file. |
| Error::ObjectExists | Output file already exists. |
| Error::StrategyError | Error in decompression unit. |
Implements BiometricEvaluation::IO::Compressor.
|
virtual |
Compress a file.
| inputFile | Path to file to compress. |
| Error::ObjectDoesNotExist | Input file does not exist. |
| Error::StrategyError | Error in decompression unit. |
Implements BiometricEvaluation::IO::Compressor.
|
virtual |
Compress a file.
| inputFile | Path to file to compress. |
| outputFile | Path to location where compressed version will be saved. |
| Error::ObjectDoesNotExist | Input file does not exist. |
| Error::ObjectExists | Output file already exists. |
| Error::StrategyError | Error in decompression unit. |
Implements BiometricEvaluation::IO::Compressor.
|
virtual |
Decompress a compressed buffer.
| compressedData | Compressed data buffer to decompress. |
| compressedDataSize | Size of compressedData. |
| Error::StrategyError | Error in compression unit. |
Implements BiometricEvaluation::IO::Compressor.
|
virtual |
Decompress a compressed buffer.
| compressedData | Compressed data buffer to decompress. |
| Error::StrategyError | Error in decompression unit. |
Implements BiometricEvaluation::IO::Compressor.
|
virtual |
Decompress a compressed buffer into a file.
| inputFile | Location to save compressed file. |
| Error::StrategyError | Error in decompression unit. |
| Error::ObjectDoesNotExists | Output file already exists. |
Implements BiometricEvaluation::IO::Compressor.
|
virtual |
Decompress a file.
| inputFile | Path to file to decompress. |
| outputFile | Path to location where decompressed version will be saved. |
| Error::ObjectDoesNotExist | Input file does not exist. |
| Error::ObjectExists | Output file already exists. |
| Error::StrategyError | Error in compression unit. |
Implements BiometricEvaluation::IO::Compressor.
|
virtual |
Decompress a file.
| compressedData | Compressed data buffer to decompress. |
| compressedDataSize | Size of compressedData. |
| outputFile | Path to location where decompressed version will be saved. |
| Error::ObjectExists | Output file already exists. |
| Error::StrategyError | Error in compression unit. |
Implements BiometricEvaluation::IO::Compressor.
|
virtual |
Decompress a file.
| compressedData | Compressed data buffer to decompress. |
| outputFile | Path to location where decompressed version will be saved. |
| Error::ObjectExists | Output file already exists. |
| Error::StrategyError | Error in compression unit. |
Implements BiometricEvaluation::IO::Compressor.
Assignment overload (disabled).
Disabled because Properties member of parent cannot be assigned.
| other | GZip to assign. |
|
static |
How thorough the compression should be.
Definition at line 37 of file be_io_gzip.h.
|
static |
Which underlying algorithm to use.
Definition at line 39 of file be_io_gzip.h.
|
static |
Which underlying method in the compressor.
Definition at line 41 of file be_io_gzip.h.
|
static |
The type of data being compressed.
Definition at line 43 of file be_io_gzip.h.
|
static |
Window size.
Definition at line 45 of file be_io_gzip.h.
|
static |
How much memory for internal compression state.
Definition at line 47 of file be_io_gzip.h.
|
static |
How many bytes to work at a time.
Definition at line 49 of file be_io_gzip.h.