33#ifndef vtkDataEncoder_h
34#define vtkDataEncoder_h
39#include "vtkWebCoreModule.h"
58 vtkGetMacro(MaxThreads, vtkTypeUInt32);
77 void PushAndTakeReference(vtkTypeUInt32 key,
vtkImageData*& data,
int quality,
int encoding = 1);
85 void Push(vtkTypeUInt32 key,
vtkImageData* data,
int quality,
int encoding = 1);
102 void Flush(vtkTypeUInt32 key);
107 const
char* EncodeAsBase64Png(
vtkImageData* img,
int compressionLevel = 5);
123 vtkTypeUInt32 MaxThreads;
130 std::unique_ptr<vtkInternals> Internals;
class used to compress/encode images using threads.
static vtkDataEncoder * New()
void Initialize()
Re-initializes the encoder.
void SetMaxThreads(vtkTypeUInt32)
Define the number of worker threads to use.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
topologically and geometrically regular array of data
a simple class to control print indentation
abstract base class for most VTK objects
Hold a reference to a vtkObjectBase instance.
dynamic, self-adjusting array of unsigned char
#define VTK_DEPRECATED_IN_9_1_0(reason)