| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private Matches | |
| private final State | |
| private int | |
| private int | |
| private static final int | |
| private final Optimum[] | |
| private final int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | LZMAEncoderNormal(RangeEncoder rc, int lc, int lp, int pb, int dictSize, int extraSizeBefore, int niceLen, int mf, int depthLimit, ArrayCache arrayCache)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | calc1BytePrices(int pos, int posState, int avail, int anyRepPrice)
Calculates prices of a literal, a short rep, and literal + rep0. |
| private int | calcLongRepPrices(int pos, int posState, int avail, int anyRepPrice)
Calculates prices of long rep and long rep + literal + rep0. |
| private void | calcNormalMatchPrices(int pos, int posState, int avail, int anyMatchPrice, int startLen)
Calculates prices of a normal match and normal match + literal + rep0. |
| private int | |
| pack-priv static int | |
| pack-priv int | getNextSymbol()
Implements abstract org. |
| public void | |
| private void |
| EXTRA_SIZE_AFTER | back to summary |
|---|---|
| private static final int EXTRA_SIZE_AFTER | |
| EXTRA_SIZE_BEFORE | back to summary |
|---|---|
| private static final int EXTRA_SIZE_BEFORE | |
| matches | back to summary |
|---|---|
| private Matches matches | |
| nextState | back to summary |
|---|---|
| private final State nextState | |
| optCur | back to summary |
|---|---|
| private int optCur | |
| optEnd | back to summary |
|---|---|
| private int optEnd | |
| OPTS | back to summary |
|---|---|
| private static final int OPTS | |
| opts | back to summary |
|---|---|
| private final Optimum[] opts | |
| repLens | back to summary |
|---|---|
| private final int[] repLens | |
| LZMAEncoderNormal | back to summary |
|---|---|
| pack-priv LZMAEncoderNormal(RangeEncoder rc, int lc, int lp, int pb, int dictSize, int extraSizeBefore, int niceLen, int mf, int depthLimit, ArrayCache arrayCache) | |
| calc1BytePrices | back to summary |
|---|---|
| private void calc1BytePrices(int pos, int posState, int avail, int anyRepPrice) Calculates prices of a literal, a short rep, and literal + rep0. | |
| calcLongRepPrices | back to summary |
|---|---|
| private int calcLongRepPrices(int pos, int posState, int avail, int anyRepPrice) Calculates prices of long rep and long rep + literal + rep0. | |
| calcNormalMatchPrices | back to summary |
|---|---|
| private void calcNormalMatchPrices(int pos, int posState, int avail, int anyMatchPrice, int startLen) Calculates prices of a normal match and normal match + literal + rep0. | |
| convertOpts | back to summary |
|---|---|
| private int convertOpts() Converts the opts array from backward indexes to forward indexes.
Then it will be simple to get the next symbol from the array
in later calls to | |
| getMemoryUsage | back to summary |
|---|---|
| pack-priv static int getMemoryUsage(int dictSize, int extraSizeBefore, int mf) | |
| getNextSymbol | back to summary |
|---|---|
| pack-priv int getNextSymbol() Implements abstract org. Doc from org. Gets the next LZMA symbol.
There are three types of symbols: literal (a single byte),
repeated match, and normal match. The symbol is indicated
by the return value and by the variable
Literal:
Repeated match:
Normal match: | |
| reset | back to summary |
|---|---|
| public void reset() Overrides org. | |
| updateOptStateAndReps | back to summary |
|---|---|
| private void updateOptStateAndReps() Updates the state and reps for the current byte in the opts array. | |