public class RangeEncoder extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
kNumBitPriceShiftBits |
| Constructor and Description |
|---|
RangeEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(short[] probs,
int index,
int symbol) |
void |
encodeDirectBits(int v,
int numTotalBits) |
void |
flushData() |
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) |
Buffer |
releaseBuffer() |
void |
setBuffer(Buffer dst,
MemoryManager mm) |
void |
shiftLow() |
public static final int kNumBitPriceShiftBits
public void setBuffer(Buffer dst, MemoryManager mm)
public Buffer releaseBuffer()
public void init()
public void flushData()
throws IOException
IOExceptionpublic void shiftLow()
throws IOException
IOExceptionpublic void encodeDirectBits(int v,
int numTotalBits)
throws IOException
IOExceptionpublic long getProcessedSizeAdd()
public static void initBitModels(short[] probs)
public void encode(short[] probs,
int index,
int symbol)
throws IOException
IOExceptionpublic static int getPrice(int Prob,
int symbol)
public static int getPrice0(int Prob)
public static int getPrice1(int Prob)
Copyright © 2014 Oracle Corporation. All Rights Reserved.