|
ParaView
|
Image compressor/decompressor using SQUIRT. More...
#include <vtkSquirtCompressor.h>


Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| virtual void | SetSquirtLevel (int) |
| virtual int | GetSquirtLevel () |
| virtual int | Compress () |
| virtual int | Decompress () |
| virtual void | SaveConfiguration (vtkMultiProcessStream *stream) |
| virtual bool | RestoreConfiguration (vtkMultiProcessStream *stream) |
| virtual const char * | SaveConfiguration () |
| virtual const char * | RestoreConfiguration (const char *stream) |
Static Public Member Functions | |
| static vtkSquirtCompressor * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkSquirtCompressor * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
| vtkSquirtCompressor () | |
| virtual | ~vtkSquirtCompressor () |
Protected Attributes | |
| int | SquirtLevel |
Image compressor/decompressor using SQUIRT.
This class compresses Image data using SQUIRT a Run-Length-Encoded compression scheme. The Squirt Level controls the compression. 0 is lossless compression, 1 through 5 are lossy compression levels with 5 being maximum compression.
Squirt produces smaller compression ratio than some other popular compression algorithm. However, Squirt has a relatively high throughput compared to some other compression algorithm. Squirt's performance is optimized for RGBa images, however the class can also work with RGB images. There is no performance hit when applying the lossy comrpession levels.
Levels 1 through 5 apply a color reducing mask to the run computation, not to the pixel directly. This is clever in that no new colors are introduced to the image, and as a result one doesn't see drastic changes between the reduced color image and the original. However, when using the higher levels one may get runs that produce visual artifiacts. For example when a run starts in one actor whose reduced color matches the background the background is colored with the actor color.
Definition at line 54 of file vtkSquirtCompressor.h.
| vtkSquirtCompressor::vtkSquirtCompressor | ( | ) | [protected] |
| virtual vtkSquirtCompressor::~vtkSquirtCompressor | ( | ) | [protected, virtual] |
| static vtkSquirtCompressor* vtkSquirtCompressor::New | ( | ) | [static] |
Reimplemented from vtkObject.
| virtual const char* vtkSquirtCompressor::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkImageCompressor.
| static int vtkSquirtCompressor::IsTypeOf | ( | const char * | type | ) | [static] |
Reimplemented from vtkImageCompressor.
| virtual int vtkSquirtCompressor::IsA | ( | const char * | type | ) | [virtual] |
Reimplemented from vtkImageCompressor.
| static vtkSquirtCompressor* vtkSquirtCompressor::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkImageCompressor.
| void vtkSquirtCompressor::PrintSelf | ( | ostream & | os, |
| vtkIndent | indent | ||
| ) | [virtual] |
Reimplemented from vtkImageCompressor.
| virtual void vtkSquirtCompressor::SetSquirtLevel | ( | int | ) | [virtual] |
Set Squirt compression level. Level 0 is lossless compression, 1 through 5 are lossy compression levels with 5 being maximum compression.
| virtual int vtkSquirtCompressor::GetSquirtLevel | ( | ) | [virtual] |
Set Squirt compression level. Level 0 is lossless compression, 1 through 5 are lossy compression levels with 5 being maximum compression.
| virtual int vtkSquirtCompressor::Compress | ( | ) | [virtual] |
Compress/Decompress data array on the objects input with results in the objects output. See also Set/GetInput/Output.
Implements vtkImageCompressor.
| virtual int vtkSquirtCompressor::Decompress | ( | ) | [virtual] |
Compress/Decompress data array on the objects input with results in the objects output. See also Set/GetInput/Output.
Implements vtkImageCompressor.
| virtual void vtkSquirtCompressor::SaveConfiguration | ( | vtkMultiProcessStream * | stream | ) | [virtual] |
Serialize/Restore compressor configuration (but not the data) into the stream.
Reimplemented from vtkImageCompressor.
| virtual bool vtkSquirtCompressor::RestoreConfiguration | ( | vtkMultiProcessStream * | stream | ) | [virtual] |
Serialize/Restore compressor configuration (but not the data) into the stream.
Reimplemented from vtkImageCompressor.
| virtual const char* vtkSquirtCompressor::SaveConfiguration | ( | ) | [virtual] |
Serialize/Restore compressor configuration (but not the data) into the stream.
Reimplemented from vtkImageCompressor.
| virtual const char* vtkSquirtCompressor::RestoreConfiguration | ( | const char * | stream | ) | [virtual] |
Serialize/Restore compressor configuration (but not the data) into the stream.
Reimplemented from vtkImageCompressor.
int vtkSquirtCompressor::SquirtLevel [protected] |
Definition at line 91 of file vtkSquirtCompressor.h.
1.7.5.1