Class TileCompressionOperation
java.lang.Object
nom.tam.image.tile.operation.AbstractTileOperation
nom.tam.image.compression.tile.TileCompressionOperation
- All Implemented Interfaces:
Runnable, ITileOperation
- Direct Known Subclasses:
TileCompressor, TileDecompressor
abstract information holder about the a tile that represents a rectangular
part of the image. Will be sub classed for compression and decompression
variants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteBufferprotected intprotected TileCompressionTypeprotected ICompressOption -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTileCompressionOperation(TiledImageCompressionOperation operation, int tileIndex, TileArea area) -
Method Summary
Modifier and TypeMethodDescriptionprivate ByteBufferconvertToBuffer(Object data) protected abstract AbstractNullPixelMaskcreateImageNullPixelMask(ImageNullPixelMask imageNullPixelMask) protected voidforceNoLoss(boolean value) should the data of this tile be forced to case no data loss.protected byte[]protected ByteBufferprotected TileCompressionTypeprotected ICompressorControlprotected ICompressorControlprotected TileCompressionOperationprotected TileCompressionOperationsetCompressed(Object data, TileCompressionType type) protected TileCompressionOperationsetCompressedOffset(int value) setDimensions(int dataOffset, int width, int height) protected voidsetWholeImageCompressedBuffer(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 AbstractTileOperation
execute, getArea, getBaseType, getPixelSize, getPreviousTileOperation, getTileBuffer, getTiledImageOperation, getTileIndex, setTileBuffer, setWholeImageBuffer, waitForResultMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ITileOperation
waitForResult
-
Field Details
-
compressedData
-
compressedOffset
protected int compressedOffset -
compressionType
-
tileOptions
-
-
Constructor Details
-
TileCompressionOperation
protected TileCompressionOperation(TiledImageCompressionOperation operation, int tileIndex, TileArea area)
-
-
Method Details
-
toString
-
convertToBuffer
-
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
-
getCompressorControl
-
getGzipCompressorControl
-
initTileOptions
-
setCompressed
-
setCompressedOffset
-
setDimensions
- Specified by:
setDimensionsin interfaceITileOperation- Overrides:
setDimensionsin 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.
-
createImageNullPixelMask
protected abstract AbstractNullPixelMask createImageNullPixelMask(ImageNullPixelMask imageNullPixelMask)
-