23 #ifndef vtkLZ4DataCompressor_h 24 #define vtkLZ4DataCompressor_h 26 #include "vtkIOCoreModule.h" 54 vtkSetClampMacro(AccelerationLevel,
int, 1,
VTK_INT_MAX);
55 vtkGetMacro(AccelerationLevel,
int);
65 size_t uncompressedSize,
66 unsigned char* compressedData,
67 size_t compressionSpace)
override;
70 size_t compressedSize,
71 unsigned char* uncompressedData,
72 size_t uncompressedSize)
override;
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Abstract interface for data compression classes.
Data compression using LZ4.
virtual size_t CompressBuffer(unsigned char const *uncompressedData, size_t uncompressedSize, unsigned char *compressedData, size_t compressionSpace)=0
virtual size_t GetMaximumCompressionSpace(size_t size)=0
Get the maximum space that may be needed to store data of the given uncompressed size after compressi...
a simple class to control print indentation
virtual size_t UncompressBuffer(unsigned char const *compressedData, size_t compressedSize, unsigned char *uncompressedData, size_t uncompressedSize)=0
virtual void SetCompressionLevel(int compressionLevel)=0
Compression performance varies greatly with compression level Require level setting from any vtkDataC...
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
virtual int GetCompressionLevel()=0