Class RANS4x8ExternalCompressor

java.lang.Object
htsjdk.samtools.cram.compression.ExternalCompressor
htsjdk.samtools.cram.compression.RANS4x8ExternalCompressor

public final class RANS4x8ExternalCompressor extends ExternalCompressor
CRAM external compressor that uses the rANS 4x8 entropy coder (CRAM 3.0). Wraps shared RANS4x8Encode and RANS4x8Decode instances to avoid repeated allocation of large internal tables.
  • Constructor Details

    • RANS4x8ExternalCompressor

      public RANS4x8ExternalCompressor(RANS4x8Encode ransEncode, RANS4x8Decode ransDecode)
      We use a shared RANS instance for all compressors.
      Parameters:
      ransEncode - ransEncoder to use
      ransDecode - ransDecoder to use
    • RANS4x8ExternalCompressor

      public RANS4x8ExternalCompressor(int order, RANS4x8Encode ransEncode, RANS4x8Decode ransDecode)
      Create a rANS 4x8 compressor with the specified order (as an integer).
      Parameters:
      order - the rANS order (0 or 1)
      ransEncode - shared encoder instance
      ransDecode - shared decoder instance
    • RANS4x8ExternalCompressor

      public RANS4x8ExternalCompressor(RANSParams.ORDER order, RANS4x8Encode ransEncode, RANS4x8Decode ransDecode)
      Create a rANS 4x8 compressor with the specified order.
      Parameters:
      order - the rANS order (ZERO or ONE)
      ransEncode - shared encoder instance
      ransDecode - shared decoder instance
  • Method Details