Class RANSNx16Params
java.lang.Object
htsjdk.samtools.cram.compression.rans.RANSNx16Params
- All Implemented Interfaces:
RANSParams
Parameters for the rANS Nx16 codec. The format flags byte encodes the combination
of transformations (ORDER, N32, STRIPE, NOSZ, CAT, RLE, PACK) to apply.
-
Nested Class Summary
Nested classes/interfaces inherited from interface RANSParams
RANSParams.ORDER -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ORDER_FLAG_MASK
public static final int ORDER_FLAG_MASK- See Also:
-
N32_FLAG_MASK
public static final int N32_FLAG_MASK- See Also:
-
STRIPE_FLAG_MASK
public static final int STRIPE_FLAG_MASK- See Also:
-
NOSZ_FLAG_MASK
public static final int NOSZ_FLAG_MASK- See Also:
-
CAT_FLAG_MASK
public static final int CAT_FLAG_MASK- See Also:
-
RLE_FLAG_MASK
public static final int RLE_FLAG_MASK- See Also:
-
PACK_FLAG_MASK
public static final int PACK_FLAG_MASK- See Also:
-
-
Constructor Details
-
RANSNx16Params
public RANSNx16Params(int formatFlags) - Parameters:
formatFlags- the raw format flags byte from the compressed stream header
-
-
Method Details
-
toString
-
getOrder
- Specified by:
getOrderin interfaceRANSParams
-
getFormatFlags
public int getFormatFlags()- Specified by:
getFormatFlagsin interfaceRANSParams
-
getNumInterleavedRANSStates
public int getNumInterleavedRANSStates()- Returns:
- the number of interleaved rANS states: 4 (default) or 32 (if N32 flag set).
-
isStripe
public boolean isStripe()- Returns:
- true if the STRIPE transformation flag is set.
-
isNosz
public boolean isNosz()- Returns:
- true if the NOSZ (no-size) flag is set, meaning output size is externally provided.
-
isCAT
public boolean isCAT()- Returns:
- true if the CAT (concatenation/uncompressed) flag is set.
-
isRLE
public boolean isRLE()- Returns:
- true if the RLE (run-length encoding) preprocessing flag is set.
-
isPack
public boolean isPack()- Returns:
- true if the PACK (bit-packing) preprocessing flag is set.
-