public class Encoder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
kNumBitPriceShiftBits |
| Constructor and Description |
|---|
Encoder() |
| Modifier and Type | Method and 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(java.io.OutputStream stream) |
void |
ShiftLow() |
public static final int kNumBitPriceShiftBits
public void SetStream(java.io.OutputStream stream)
public void ReleaseStream()
public void Init()
public void FlushData()
throws java.io.IOException
java.io.IOExceptionpublic void FlushStream()
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)