loci.formats.codec
Class RPZACodec

java.lang.Object
  extended by loci.formats.codec.BaseCodec
      extended by loci.formats.codec.RPZACodec
All Implemented Interfaces:
Codec

public class RPZACodec
extends BaseCodec
implements Codec

Implements encoding and decoding methods for Apple RPZA. This code was adapted from the RPZA codec for ffmpeg - see http://ffmpeg.mplayerhq.hu

Source code:
Trac, SVN


Constructor Summary
RPZACodec()
           
 
Method Summary
 byte[] compress(byte[] input, int x, int y, int[] dims, Object options)
          Compresses a block of data.
 byte[] decompress(byte[] data, Object options)
          Decompresses a block of data.
 
Methods inherited from class loci.formats.codec.BaseCodec
compress, decompress, decompress, decompress, test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface loci.formats.codec.Codec
compress, decompress, decompress, decompress
 

Constructor Detail

RPZACodec

public RPZACodec()
Method Detail

compress

public byte[] compress(byte[] input,
                       int x,
                       int y,
                       int[] dims,
                       Object options)
                throws loci.formats.FormatException
Description copied from interface: Codec
Compresses a block of data.

Specified by:
compress in interface Codec
Parameters:
input - The data to be compressed.
x - Length of the x dimension of the image data, if appropriate.
y - Length of the y dimension of the image data, if appropriate.
dims - The dimensions of the image data, if appropriate.
options - Options to be used during compression, if appropriate.
Returns:
The compressed data.
Throws:
loci.formats.FormatException - If input is not a compressed data block of the appropriate type.

decompress

public byte[] decompress(byte[] data,
                         Object options)
                  throws loci.formats.FormatException
Description copied from interface: Codec
Decompresses a block of data.

Specified by:
decompress in interface Codec
Parameters:
data - the data to be decompressed
options - Options to be used during decompression.
Returns:
the decompressed data.
Throws:
loci.formats.FormatException - If data is not valid.