/usr/include/paraview/vtkLZ4Compressor.h is in paraview-dev 5.0.1+dfsg1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | /*=========================================================================
Program: ParaView
Module: vtkLZ4Compressor.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkLZ4Compressor - Image compressor/decompressor
// that uses LZ4 for fast lossless compression.
// .SECTION Description
// vtkLZ4Compressor uses LZ4 for fast lossless compression and decompression on
// data.
#ifndef vtkLZ4Compressor_h
#define vtkLZ4Compressor_h
#include "vtkImageCompressor.h"
#include "vtkPVVTKExtensionsRenderingModule.h" // needed for exports
#include "vtkNew.h" // needed for vtkNew
class vtkMultiProcessStream;
class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkLZ4Compressor : public vtkImageCompressor
{
public:
static vtkLZ4Compressor* New();
vtkTypeMacro(vtkLZ4Compressor, vtkImageCompressor);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set the quality measure. The value can be between 0 and 5. 0 means preserve
// input image quality while 5 means improve compression at the cost of image
// quality. For quality values > 1, we use a color mask on the input colors
// similar to vtkSquirtCompressor.
vtkSetClampMacro(Quality, int, 0, 5);
vtkGetMacro(Quality, int);
// Description:
// Compress/Decompress data array on the objects input with results
// in the objects output. See also Set/GetInput/Output.
virtual int Compress();
virtual int Decompress();
// Description:
// Serialize/Restore compressor configuration (but not the data) into the stream.
virtual void SaveConfiguration(vtkMultiProcessStream *stream);
virtual bool RestoreConfiguration(vtkMultiProcessStream *stream);
virtual const char *SaveConfiguration();
virtual const char *RestoreConfiguration(const char *stream);
//BTX
protected:
vtkLZ4Compressor();
~vtkLZ4Compressor();
int Quality;
private:
vtkLZ4Compressor(const vtkLZ4Compressor&); // Not implemented
void operator=(const vtkLZ4Compressor&); // Not implemented
// Used when Quality > 1.
vtkNew<vtkUnsignedCharArray> TemporaryBuffer;
//ETX
};
#endif
|