Class AbstractNullPixelMask
- java.lang.Object
-
- nom.tam.image.compression.tile.mask.AbstractNullPixelMask
-
- Direct Known Subclasses:
NullPixelMaskPreserver,NullPixelMaskRestorer
public class AbstractNullPixelMask extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ICompressorControlcompressorControlprivate static byte[]EMPTY_BYTE_ARRAYprivate java.nio.ByteBuffermaskprotected static byteNULL_INDICATORprivate longnullValueprivate TileBuffertileBufferprivate inttileIndex
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractNullPixelMask(TileBuffer tileBuffer, int tileIndex, long nullValue, ICompressorControl compressorControl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ICompressorControlgetCompressorControl()protected java.nio.ByteBuffergetMask()byte[]getMaskBytes()protected longgetNullValue()protected TileBuffergetTileBuffer()protected intgetTileIndex()protected java.nio.ByteBufferinitializedMask(int remaining)voidsetMask(java.nio.ByteBuffer mask)
-
-
-
Field Detail
-
EMPTY_BYTE_ARRAY
private static final byte[] EMPTY_BYTE_ARRAY
-
NULL_INDICATOR
protected static final byte NULL_INDICATOR
- See Also:
- Constant Field Values
-
tileBuffer
private final TileBuffer tileBuffer
-
tileIndex
private final int tileIndex
-
nullValue
private final long nullValue
-
mask
private java.nio.ByteBuffer mask
-
compressorControl
private final ICompressorControl compressorControl
-
-
Constructor Detail
-
AbstractNullPixelMask
protected AbstractNullPixelMask(TileBuffer tileBuffer, int tileIndex, long nullValue, ICompressorControl compressorControl)
-
-
Method Detail
-
getMaskBytes
public byte[] getMaskBytes()
-
setMask
public void setMask(java.nio.ByteBuffer mask)
-
getCompressorControl
protected ICompressorControl getCompressorControl()
-
getMask
protected java.nio.ByteBuffer getMask()
-
getNullValue
protected long getNullValue()
-
getTileBuffer
protected TileBuffer getTileBuffer()
-
getTileIndex
protected int getTileIndex()
-
initializedMask
protected java.nio.ByteBuffer initializedMask(int remaining)
-
-