Package lzma.sdk.rangecoder
Class Encoder
- java.lang.Object
-
- lzma.sdk.rangecoder.Encoder
-
public class Encoder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
kNumBitPriceShiftBits
-
Constructor Summary
Constructors Constructor Description Encoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(short[] probs, int index, int symbol)
void
encodeDirectBits(int v, int numTotalBits)
void
flushData()
void
flushStream()
static int
getPrice(int Prob, int symbol)
static int
getPrice0(int Prob)
static int
getPrice1(int Prob)
long
getProcessedSizeAdd()
void
init()
static void
initBitModels(short[] probs)
void
releaseStream()
void
setStream(OutputStream stream)
-
-
-
Field Detail
-
kNumBitPriceShiftBits
public static final int kNumBitPriceShiftBits
- See Also:
- Constant Field Values
-
-
Method Detail
-
setStream
public void setStream(OutputStream stream)
-
releaseStream
public void releaseStream()
-
init
public void init()
-
flushData
public void flushData() throws IOException
- Throws:
IOException
-
flushStream
public void flushStream() throws IOException
- Throws:
IOException
-
encodeDirectBits
public void encodeDirectBits(int v, int numTotalBits) throws IOException
- Throws:
IOException
-
getProcessedSizeAdd
public long getProcessedSizeAdd()
-
initBitModels
public static void initBitModels(short[] probs)
-
encode
public void encode(short[] probs, int index, int symbol) throws IOException
- Throws:
IOException
-
getPrice
public static int getPrice(int Prob, int symbol)
-
getPrice0
public static int getPrice0(int Prob)
-
getPrice1
public static int getPrice1(int Prob)
-
-