Class RANS4x8Decode
java.lang.Object
htsjdk.samtools.cram.compression.rans.RANSDecode
htsjdk.samtools.cram.compression.rans.RANS4x8Decode
Decoder for the CRAM 3.0 rANS 4x8 codec. Supports Order-0 and Order-1 decoding
with 4-way interleaved rANS states. Each state processes one quarter of the output,
enabling instruction-level parallelism.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]uncompress(byte[] input) Uncompress a rANS 4x8 encoded byte stream.Methods inherited from class RANSDecode
getDecodingSymbols, getFrequencies, getReverseLookup, markRowUsed, resetDecoderState
-
Constructor Details
-
RANS4x8Decode
public RANS4x8Decode()
-
-
Method Details
-
uncompress
public byte[] uncompress(byte[] input) Uncompress a rANS 4x8 encoded byte stream. The first byte of the input indicates the order (0 or 1), followed by compressed and uncompressed lengths, the frequency table, and the encoded data.- Specified by:
uncompressin classRANSDecode- Parameters:
input- the compressed byte stream- Returns:
- the uncompressed data
-