Class AbstractNullPixelMask
java.lang.Object
nom.tam.image.compression.tile.mask.AbstractNullPixelMask
- Direct Known Subclasses:
NullPixelMaskPreserver
,NullPixelMaskRestorer
(for internal use) Base support for blank (
null
) in
compressed images. In regular images specific values (such as
Double.NaN
or a specific integer value) may be used to indicate
missing data. However, because of e.g. quantization or lossy compression,
these specific values may not be recovered exactly when compressing /
decompressing images. Hence, there is a need to demark null
values differently in copmressed images. This class provides support for that
purpose.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractNullPixelMask
(TileBuffer tileBuffer, int tileIndex, long nullValue, ICompressorControl compressorControl) -
Method Summary
Modifier and TypeMethodDescriptionprotected ICompressorControl
protected ByteBuffer
getMask()
byte[]
protected long
protected TileBuffer
protected int
protected ByteBuffer
initializedMask
(int remaining) void
setMask
(ByteBuffer mask)
-
Field Details
-
NULL_INDICATOR
protected static final byte NULL_INDICATOR- See Also:
-
-
Constructor Details
-
AbstractNullPixelMask
protected AbstractNullPixelMask(TileBuffer tileBuffer, int tileIndex, long nullValue, ICompressorControl compressorControl)
-
-
Method Details
-
getMaskBytes
public byte[] getMaskBytes() -
setMask
-
getCompressorControl
-
getMask
-
getNullValue
protected long getNullValue() -
getTileBuffer
-
getTileIndex
protected int getTileIndex() -
initializedMask
-