37#ifndef vtkDataCompressor_h
38#define vtkDataCompressor_h
40#include "vtkIOCoreModule.h"
65 size_t Compress(
unsigned char const* uncompressedData,
size_t uncompressedSize,
66 unsigned char* compressedData,
size_t compressionSpace);
74 size_t Uncompress(
unsigned char const* compressedData,
size_t compressedSize,
75 unsigned char* uncompressedData,
size_t uncompressedSize);
91 unsigned char const* compressedData,
size_t compressedSize,
size_t uncompressedSize);
108 virtual size_t CompressBuffer(
unsigned char const* uncompressedData,
size_t uncompressedSize,
109 unsigned char* compressedData,
size_t compressionSpace) = 0;
112 virtual size_t UncompressBuffer(
unsigned char const* compressedData,
size_t compressedSize,
113 unsigned char* uncompressedData,
size_t uncompressedSize) = 0;
Abstract interface for data compression classes.
virtual size_t UncompressBuffer(unsigned char const *compressedData, size_t compressedSize, unsigned char *uncompressedData, size_t uncompressedSize)=0
vtkUnsignedCharArray * Compress(unsigned char const *uncompressedData, size_t uncompressedSize)
Compress the given data.
size_t Uncompress(unsigned char const *compressedData, size_t compressedSize, unsigned char *uncompressedData, size_t uncompressedSize)
Uncompress the given input data into the given output buffer.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual size_t CompressBuffer(unsigned char const *uncompressedData, size_t uncompressedSize, unsigned char *compressedData, size_t compressionSpace)=0
~vtkDataCompressor() override
virtual void SetCompressionLevel(int compressionLevel)=0
Compression performance varies greatly with compression level Require level setting from any vtkDataC...
vtkUnsignedCharArray * Uncompress(unsigned char const *compressedData, size_t compressedSize, size_t uncompressedSize)
Uncompress the given data.
virtual int GetCompressionLevel()=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...
size_t Compress(unsigned char const *uncompressedData, size_t uncompressedSize, unsigned char *compressedData, size_t compressionSpace)
Compress the given input data buffer into the given output buffer.
a simple class to control print indentation
abstract base class for most VTK objects
dynamic, self-adjusting array of unsigned char