Class PLIOCompress.IntPLIOCompressor

  • All Implemented Interfaces:
    ICompressor<java.nio.IntBuffer>
    Enclosing class:
    PLIOCompress

    public static class PLIOCompress.IntPLIOCompressor
    extends PLIOCompress
    implements ICompressor<java.nio.IntBuffer>
    Attention int values are limited to 24 bits!
    • Constructor Detail

      • IntPLIOCompressor

        public IntPLIOCompressor()
    • Method Detail

      • compress

        public boolean compress​(java.nio.IntBuffer buffer,
                                java.nio.ByteBuffer compressed)
        Description copied from interface: ICompressor
        compress the buffer into the byte buffer. Attention enough space must already be allocated.
        Specified by:
        compress in interface ICompressor<java.nio.IntBuffer>
        Parameters:
        buffer - the buffer to compress.
        compressed - the compressed data
        Returns:
        true if the compression succeeded.
      • decompress

        public void decompress​(java.nio.ByteBuffer compressed,
                               java.nio.IntBuffer buffer)
        Description copied from interface: ICompressor
        Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.
        Specified by:
        decompress in interface ICompressor<java.nio.IntBuffer>
        Parameters:
        compressed - the compressed data
        buffer - the buffer to fill with the uncompressed data.
      • put

        protected void put​(int index,
                           int pixel)
        Specified by:
        put in class PLIOCompress