public class RangeEncoder
extends java.lang.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 java.io.IOException
java.io.IOExceptionpublic void shiftLow()
throws java.io.IOException
java.io.IOExceptionpublic void encodeDirectBits(int v,
int numTotalBits)
throws java.io.IOException
java.io.IOExceptionpublic long getProcessedSizeAdd()
public static void initBitModels(short[] probs)
public void encode(short[] probs,
int index,
int symbol)
throws java.io.IOException
java.io.IOExceptionpublic static int getPrice(int Prob,
int symbol)
public static int getPrice0(int Prob)
public static int getPrice1(int Prob)
Copyright © 2013 Oracle Corporation. All Rights Reserved.