Package nom.tam.image.compression.tile
Class TileDecompressor
java.lang.Object
nom.tam.image.tile.operation.AbstractTileOperation
nom.tam.image.compression.tile.TileDecompressor
- All Implemented Interfaces:
Runnable
,ITileOperation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteBuffer
protected int
protected nom.tam.image.compression.tile.TileCompressionType
protected ICompressOption
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TileDecompressor
(TiledImageCompressionOperation array, int tileIndex, TileArea area) -
Method Summary
Modifier and TypeMethodDescriptionprotected NullPixelMaskRestorer
createImageNullPixelMask
(ImageNullPixelMask imageNullPixelMask) protected void
forceNoLoss
(boolean value) should the data of this tile be forced to case no data loss.protected byte[]
protected ByteBuffer
protected nom.tam.image.compression.tile.TileCompressionType
protected ICompressorControl
protected ICompressorControl
protected nom.tam.image.compression.tile.TileCompressionOperation
void
run()
protected nom.tam.image.compression.tile.TileCompressionOperation
setCompressed
(Object data, nom.tam.image.compression.tile.TileCompressionType type) protected nom.tam.image.compression.tile.TileCompressionOperation
setCompressedOffset
(int value) nom.tam.image.compression.tile.TileCompressionOperation
setDimensions
(int dataOffset, int width, int height) protected void
setWholeImageCompressedBuffer
(ByteBuffer compressed) set the buffer that describes the whole compressed image and let the tile create a slice of it from the position where the tile starts in the whole image.toString()
Methods inherited from class nom.tam.image.tile.operation.AbstractTileOperation
execute, getArea, getBaseType, getPixelSize, getPreviousTileOperation, getTileBuffer, getTiledImageOperation, getTileIndex, setTileBuffer, setWholeImageBuffer, waitForResult
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nom.tam.image.tile.operation.ITileOperation
waitForResult
-
Field Details
-
compressedData
-
compressedOffset
protected int compressedOffset -
compressionType
protected nom.tam.image.compression.tile.TileCompressionType compressionType -
tileOptions
-
-
Constructor Details
-
TileDecompressor
-
-
Method Details
-
run
public void run() -
createImageNullPixelMask
-
toString
-
forceNoLoss
protected void forceNoLoss(boolean value) should the data of this tile be forced to case no data loss. This information is not relevant in all cases that it is ignored by default.- Parameters:
value
- the value to set.
-
getCompressedData
protected byte[] getCompressedData() -
getCompressedWholeArea
-
getCompressionType
protected nom.tam.image.compression.tile.TileCompressionType getCompressionType() -
getCompressorControl
-
getGzipCompressorControl
-
initTileOptions
protected nom.tam.image.compression.tile.TileCompressionOperation initTileOptions() -
setCompressed
protected nom.tam.image.compression.tile.TileCompressionOperation setCompressed(Object data, nom.tam.image.compression.tile.TileCompressionType type) -
setCompressedOffset
protected nom.tam.image.compression.tile.TileCompressionOperation setCompressedOffset(int value) -
setDimensions
public nom.tam.image.compression.tile.TileCompressionOperation setDimensions(int dataOffset, int width, int height) - Specified by:
setDimensions
in interfaceITileOperation
- Overrides:
setDimensions
in classAbstractTileOperation
-
setWholeImageCompressedBuffer
set the buffer that describes the whole compressed image and let the tile create a slice of it from the position where the tile starts in the whole image. Attention this method is not thread-safe because it changes the position of the buffer parameter. This buffer is just as big as the image buffer but will be reduced to the needed size as a last step of the Compression.- Parameters:
compressed
- the buffer that describes the whole image.
-