Class BitTreeEncoder
- java.lang.Object
-
- com.badlogic.gdx.utils.compression.rangecoder.BitTreeEncoder
-
public class BitTreeEncoder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BitTreeEncoder(int numBitLevels)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Encode(Encoder rangeEncoder, int symbol)
int
GetPrice(int symbol)
void
Init()
static void
ReverseEncode(short[] Models, int startIndex, Encoder rangeEncoder, int NumBitLevels, int symbol)
void
ReverseEncode(Encoder rangeEncoder, int symbol)
int
ReverseGetPrice(int symbol)
static int
ReverseGetPrice(short[] Models, int startIndex, int NumBitLevels, int symbol)
-
-
-
Method Detail
-
Init
public void Init()
-
Encode
public void Encode(Encoder rangeEncoder, int symbol) throws java.io.IOException
- Throws:
java.io.IOException
-
ReverseEncode
public void ReverseEncode(Encoder rangeEncoder, int symbol) throws java.io.IOException
- Throws:
java.io.IOException
-
GetPrice
public int GetPrice(int symbol)
-
ReverseGetPrice
public int ReverseGetPrice(int symbol)
-
ReverseGetPrice
public static int ReverseGetPrice(short[] Models, int startIndex, int NumBitLevels, int symbol)
-
ReverseEncode
public static void ReverseEncode(short[] Models, int startIndex, Encoder rangeEncoder, int NumBitLevels, int symbol) throws java.io.IOException
- Throws:
java.io.IOException
-
-