Package ome.codecs

Class QTRLECodec

java.lang.Object
ome.codecs.BaseCodec
ome.codecs.QTRLECodec
All Implemented Interfaces:
Codec

public class QTRLECodec extends BaseCodec
Methods for compressing and decompressing data using QuickTime RLE.
  • Constructor Details

    • QTRLECodec

      public QTRLECodec()
  • Method Details

    • compress

      public byte[] compress(byte[] data, CodecOptions options) throws CodecException
      Description copied from interface: Codec
      Compresses a block of data.
      Parameters:
      data - The data to be compressed.
      options - Options to be used during compression, if appropriate.
      Returns:
      The compressed data.
      Throws:
      CodecException - If input is not a compressed data block of the appropriate type.
    • decompress

      public byte[] decompress(loci.common.RandomAccessInputStream in, CodecOptions options) throws CodecException, IOException
      Description copied from interface: Codec
      Decompresses data from the given RandomAccessInputStream.
      Specified by:
      decompress in interface Codec
      Specified by:
      decompress in class BaseCodec
      Parameters:
      in - The stream from which to read compressed data.
      options - Options to be used during decompression.
      Returns:
      The decompressed data.
      Throws:
      CodecException - If data is not valid compressed data for this decompressor.
      IOException
    • decompress

      public byte[] decompress(byte[] data, CodecOptions options) throws CodecException
      The CodecOptions parameter should have the following fields set: width height bitsPerSample previousImage
      Specified by:
      decompress in interface Codec
      Overrides:
      decompress in class BaseCodec
      Parameters:
      data - the data to be decompressed
      options - Options to be used during decompression.
      Returns:
      the decompressed data.
      Throws:
      CodecException - If data is not valid.
      See Also: