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 ICompressorControl
compressorControl
private static byte[]
EMPTY_BYTE_ARRAY
private java.nio.ByteBuffer
mask
protected static byte
NULL_INDICATOR
private long
nullValue
private TileBuffer
tileBuffer
private int
tileIndex
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractNullPixelMask(TileBuffer tileBuffer, int tileIndex, long nullValue, ICompressorControl compressorControl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ICompressorControl
getCompressorControl()
protected java.nio.ByteBuffer
getMask()
byte[]
getMaskBytes()
protected long
getNullValue()
protected TileBuffer
getTileBuffer()
protected int
getTileIndex()
protected java.nio.ByteBuffer
initializedMask(int remaining)
void
setMask(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)
-
-