Class NikonCodec

java.lang.Object
loci.formats.codec.BaseCodec
loci.formats.codec.NikonCodec
All Implemented Interfaces:
loci.formats.codec.Codec

public class NikonCodec extends BaseCodec
This class implements Nikon decompression. Compression is not yet implemented. Decompression logic is adapted from the jrawio project, http://jrawio.dev.java.net
Author:
Melissa Linkert melissa at glencoesoftware.com
  • Constructor Details

    • NikonCodec

      public NikonCodec()
  • Method Details

    • compress

      public byte[] compress(byte[] data, loci.formats.codec.CodecOptions options) throws loci.formats.FormatException
      Throws:
      loci.formats.FormatException
    • decompress

      public byte[] decompress(loci.common.RandomAccessInputStream in, loci.formats.codec.CodecOptions options) throws loci.formats.FormatException, IOException
      The CodecOptions parameter must be an instance of NikonCodecOptions, and should have the following fields set: lossless vPredictor curve split bitsPerSample maxBytes width height
      Specified by:
      decompress in interface loci.formats.codec.Codec
      Specified by:
      decompress in class BaseCodec
      Throws:
      loci.formats.FormatException
      IOException
      See Also:
      • Codec.decompress(RandomAccessInputStream, CodecOptions)