Class TileCompressionOperation

    • Field Detail

      • compressedData

        protected java.nio.ByteBuffer compressedData
      • compressedOffset

        protected int compressedOffset
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • convertToBuffer

        private java.nio.ByteBuffer convertToBuffer​(java.lang.Object data)
      • 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

        protected java.nio.ByteBuffer getCompressedWholeArea()
      • setWholeImageCompressedBuffer

        protected void setWholeImageCompressedBuffer​(java.nio.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. 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.