| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private int | |
| private final int[] | |
| pack-priv int | |
| private static final int | |
| private int | |
| private final int[][] | |
| private final int | |
| private final int[][] | |
| pack-priv final LZMAEncoder. | |
| pack-priv final LZEncoder | |
| private static final int | LZMA2_COMPRESSED_LIMIT
LZMA2 chunk is considered full when its compressed size exceeds
|
| private static final int | LZMA2_UNCOMPRESSED_LIMIT
LZMA2 chunk is considered full when its uncompressed size exceeds
|
| pack-priv final LZMAEncoder. | |
| public static final int | |
| public static final int | |
| pack-priv final int | |
| private final RangeEncoder | |
| pack-priv int | |
| pack-priv final LZMAEncoder. | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| private boolean | |
| public void | |
| private void | |
| private void | |
| private boolean | |
| pack-priv int | |
| pack-priv int | |
| public static int | |
| public static LZMAEncoder | getInstance(RangeEncoder rc, int lc, int lp, int pb, int mode, int dictSize, int extraSizeBefore, int niceLen, int mf, int depthLimit, ArrayCache arrayCache)
|
| pack-priv int | |
| pack-priv int | |
| public LZEncoder | |
| pack-priv int | |
| pack-priv Matches | |
| public static int | |
| pack-priv abstract int | |
| pack-priv int | |
| pack-priv int | |
| public int | |
| public void | |
| public void | |
| public void | |
| pack-priv void | |
| private void | |
| private void | |
| pack-priv void |
| ALIGN_PRICE_UPDATE_INTERVAL | back to summary |
|---|---|
| private static final int ALIGN_PRICE_UPDATE_INTERVAL | |
| alignPriceCount | back to summary |
|---|---|
| private int alignPriceCount | |
| alignPrices | back to summary |
|---|---|
| private final int[] alignPrices | |
| back | back to summary |
|---|---|
| pack-priv int back | |
| DIST_PRICE_UPDATE_INTERVAL | back to summary |
|---|---|
| private static final int DIST_PRICE_UPDATE_INTERVAL | |
| distPriceCount | back to summary |
|---|---|
| private int distPriceCount | |
| distSlotPrices | back to summary |
|---|---|
| private final int[][] distSlotPrices | |
| distSlotPricesSize | back to summary |
|---|---|
| private final int distSlotPricesSize | |
| fullDistPrices | back to summary |
|---|---|
| private final int[][] fullDistPrices | |
| literalEncoder | back to summary |
|---|---|
| pack-priv final LZMAEncoder. | |
| lz | back to summary |
|---|---|
| pack-priv final LZEncoder lz | |
| LZMA2_COMPRESSED_LIMIT | back to summary |
|---|---|
| private static final int LZMA2_COMPRESSED_LIMIT LZMA2 chunk is considered full when its compressed size exceeds
The maximum compressed size of a LZMA2 chunk is 64 KiB. A single LZMA symbol might use 20 bytes of space even though it usually takes just one byte or so. Two more bytes are needed for LZMA2 uncompressed chunks (see LZMA2OutputStream.writeChunk). Leave a little safety margin and use 26 bytes. | |
| LZMA2_UNCOMPRESSED_LIMIT | back to summary |
|---|---|
| private static final int LZMA2_UNCOMPRESSED_LIMIT LZMA2 chunk is considered full when its uncompressed size exceeds
A compressed LZMA2 chunk can hold 2 MiB of uncompressed data. A single LZMA symbol may indicate up to MATCH_LEN_MAX bytes of data, so the LZMA2 chunk is considered full when there is less space than MATCH_LEN_MAX bytes. | |
| matchLenEncoder | back to summary |
|---|---|
| pack-priv final LZMAEncoder. | |
| MODE_FAST | back to summary |
|---|---|
| public static final int MODE_FAST | |
| MODE_NORMAL | back to summary |
|---|---|
| public static final int MODE_NORMAL | |
| niceLen | back to summary |
|---|---|
| pack-priv final int niceLen | |
| rc | back to summary |
|---|---|
| private final RangeEncoder rc | |
| readAhead | back to summary |
|---|---|
| pack-priv int readAhead | |
| repLenEncoder | back to summary |
|---|---|
| pack-priv final LZMAEncoder. | |
| uncompressedSize | back to summary |
|---|---|
| private int uncompressedSize | |
| LZMAEncoder | back to summary |
|---|---|
| pack-priv LZMAEncoder(RangeEncoder rc, LZEncoder lz, int lc, int lp, int pb, int dictSize, int niceLen) | |
| encodeForLZMA1 | back to summary |
|---|---|
| public void encodeForLZMA1() throws IOException Compress for LZMA1. | |
| encodeForLZMA2 | back to summary |
|---|---|
| public boolean encodeForLZMA2() Compresses for LZMA2.
| |
| encodeInit | back to summary |
|---|---|
| private boolean encodeInit() throws IOException | |
| encodeLZMA1EndMarker | back to summary |
|---|---|
| public void encodeLZMA1EndMarker() throws IOException | |
| encodeMatch | back to summary |
|---|---|
| private void encodeMatch(int dist, int len, int posState) throws IOException | |
| encodeRepMatch | back to summary |
|---|---|
| private void encodeRepMatch(int rep, int len, int posState) throws IOException | |
| encodeSymbol | back to summary |
|---|---|
| private boolean encodeSymbol() throws IOException | |
| getAnyMatchPrice | back to summary |
|---|---|
| pack-priv int getAnyMatchPrice(State state, int posState) | |
| getAnyRepPrice | back to summary |
|---|---|
| pack-priv int getAnyRepPrice(int anyMatchPrice, State state) | |
| getDistSlot | back to summary |
|---|---|
| public static int getDistSlot(int dist) Gets an integer [0, 63] matching the highest two bits of an integer. This is like bit scan reverse (BSR) on x86 except that this also cares about the second highest bit. | |
| getInstance | back to summary |
|---|---|
| public static LZMAEncoder getInstance(RangeEncoder rc, int lc, int lp, int pb, int mode, int dictSize, int extraSizeBefore, int niceLen, int mf, int depthLimit, ArrayCache arrayCache) | |
| getLongRepAndLenPrice | back to summary |
|---|---|
| pack-priv int getLongRepAndLenPrice(int rep, int len, State state, int posState) | |
| getLongRepPrice | back to summary |
|---|---|
| pack-priv int getLongRepPrice(int anyRepPrice, int rep, State state, int posState) | |
| getLZEncoder | back to summary |
|---|---|
| public LZEncoder getLZEncoder() | |
| getMatchAndLenPrice | back to summary |
|---|---|
| pack-priv int getMatchAndLenPrice(int normalMatchPrice, int dist, int len, int posState) | |
| getMatches | back to summary |
|---|---|
| pack-priv Matches getMatches() | |
| getMemoryUsage | back to summary |
|---|---|
| public static int getMemoryUsage(int mode, int dictSize, int extraSizeBefore, int mf) | |
| getNextSymbol | back to summary |
|---|---|
| pack-priv abstract int getNextSymbol() 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: | |
| getNormalMatchPrice | back to summary |
|---|---|
| pack-priv int getNormalMatchPrice(int anyMatchPrice, State state) | |
| getShortRepPrice | back to summary |
|---|---|
| pack-priv int getShortRepPrice(int anyRepPrice, State state, int posState) | |
| getUncompressedSize | back to summary |
|---|---|
| public int getUncompressedSize() | |
| putArraysToCache | back to summary |
|---|---|
| public void putArraysToCache(ArrayCache arrayCache) | |
| reset | back to summary |
|---|---|
| public void reset() Overrides org. | |
| resetUncompressedSize | back to summary |
|---|---|
| public void resetUncompressedSize() | |
| skip | back to summary |
|---|---|
| pack-priv void skip(int len) | |
| updateAlignPrices | back to summary |
|---|---|
| private void updateAlignPrices() | |
| updateDistPrices | back to summary |
|---|---|
| private void updateDistPrices() | |
| updatePrices | back to summary |
|---|---|
| pack-priv void updatePrices() Updates the lookup tables used for calculating match distance and length prices. The updating is skipped for performance reasons if the tables haven't changed much since the previous update. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int[] | |
| private static final int | PRICE_UPDATE_INTERVAL
The prices are updated after at least
|
| private final int[][] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| private void |
| counters | back to summary |
|---|---|
| private final int[] counters | |
| PRICE_UPDATE_INTERVAL | back to summary |
|---|---|
| private static final int PRICE_UPDATE_INTERVAL The prices are updated after at least
| |
| prices | back to summary |
|---|---|
| private final int[][] prices | |
| LengthEncoder | back to summary |
|---|---|
| pack-priv LengthEncoder(int pb, int niceLen) | |
| encode | back to summary |
|---|---|
| pack-priv void encode(int len, int posState) throws IOException | |
| getPrice | back to summary |
|---|---|
| pack-priv int getPrice(int len, int posState) | |
| reset | back to summary |
|---|---|
| pack-priv void reset() | |
| updatePrices | back to summary |
|---|---|
| pack-priv void updatePrices() | |
| updatePrices | back to summary |
|---|---|
| private void updatePrices(int posState) | |
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final LZMAEncoder. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv int | |
| pack-priv void |
| subencoders | back to summary |
|---|---|
| private final LZMAEncoder. | |
| LiteralEncoder | back to summary |
|---|---|
| pack-priv LiteralEncoder(int lc, int lp) | |
| encode | back to summary |
|---|---|
| pack-priv void encode() throws IOException | |
| encodeInit | back to summary |
|---|---|
| pack-priv void encodeInit() throws IOException | |
| getPrice | back to summary |
|---|---|
| pack-priv int getPrice(int curByte, int matchByte, int prevByte, int pos, State state) | |
| reset | back to summary |
|---|---|
| pack-priv void reset() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv int | |
| pack-priv int |
| LiteralSubencoder | back to summary |
|---|---|
| private LiteralSubencoder() | |
| encode | back to summary |
|---|---|
| pack-priv void encode() throws IOException | |
| getMatchedPrice | back to summary |
|---|---|
| pack-priv int getMatchedPrice(int symbol, int matchByte) | |
| getNormalPrice | back to summary |
|---|---|
| pack-priv int getNormalPrice(int symbol) | |