Package ome.codecs
Class MSVideoCodec
java.lang.Object
ome.codecs.BaseCodec
ome.codecs.MSVideoCodec
- All Implemented Interfaces:
Codec
Methods for compressing and decompressing data using Microsoft Video 1.
See http://wiki.multimedia.cx/index.php?title=Microsoft_Video_1 for an
excellent description of MSV1.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]compress(byte[] data, CodecOptions options) Compresses a block of data.byte[]decompress(loci.common.RandomAccessInputStream in, CodecOptions options) The CodecOptions parameter should have the following fields set:widthheightbitsPerSamplepreviousImageMethods inherited from class ome.codecs.BaseCodec
compress, compress, decompress, decompress, decompress, decompress, test
-
Constructor Details
-
MSVideoCodec
public MSVideoCodec()
-
-
Method Details
-
compress
Description copied from interface:CodecCompresses 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 The CodecOptions parameter should have the following fields set:widthheightbitsPerSamplepreviousImage- Specified by:
decompressin interfaceCodec- Specified by:
decompressin classBaseCodec- 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- See Also:
-