| SoJpegDataCompressor Class |
Jpeg data compression.
Namespace: OIV.LDM.Compressors
The SoJpegDataCompressor type exposes the following members.
| Name | Description | |
|---|---|---|
| SoJpegDataCompressor | Constructor. |
| Name | Description | |
|---|---|---|
| AllocateCompressedBuffer | Allocates the internal buffer to hold the compressed data. | |
| Compress | Compresses the given buffer into the internal buffer. | |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| GetCompressedBuffer | Returns the compressed data. | |
| GetCompressionFormatName | Returns the name of the compression algorithm used by this class. | |
| GetCompressionLevel | Returns the compression level. | |
| GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsLossless | Returns true if the compression algorithm is lossless. | |
| SetCompressionLevel | Sets the compression level. | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Uncompress | Uncompresses data from the internal buffer to the given buffer. |
This class implements a compression scheme based on libjpeg. It is a lossy compression.
The setCompressionLevel method (OIV.LDM.Compressors.SoDataCompressor or OIV.LDM.Converters.SoConverterParameters) accepts values between 0 and 100. 0 gives best compression but most loss of data. 100 gives minimum compression and minimum data alteration. Default is 85.
Limitations:
JPEG compression can only be used on 8-bit data sets.