Package lzma.sdk.lzma
Class Encoder
- java.lang.Object
-
- lzma.sdk.lzma.Encoder
-
public class Encoder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classEncoder.LenEncoder(package private) classEncoder.LenPriceTableEncoder(package private) classEncoder.LiteralEncoder(package private) classEncoder.Optimal
-
Field Summary
Fields Modifier and Type Field Description (package private) int_additionalOffset(package private) int_alignPriceCount(package private) int[]_alignPrices(package private) int_dictionarySize(package private) int_dictionarySizePrev(package private) int[]_distancesPrices(package private) int_distTableSize(package private) boolean_finished(package private) java.io.InputStream_inStream(package private) short[]_isMatch(package private) short[]_isRep(package private) short[]_isRep0Long(package private) short[]_isRepG0(package private) short[]_isRepG1(package private) short[]_isRepG2(package private) Encoder.LenPriceTableEncoder_lenEncoder(package private) Encoder.LiteralEncoder_literalEncoder(package private) int_longestMatchLength(package private) boolean_longestMatchWasFound(package private) int[]_matchDistances(package private) BinTree_matchFinder(package private) int_matchFinderType(package private) int_matchPriceCount(package private) boolean_needReleaseMFStream(package private) int_numDistancePairs(package private) int_numFastBytes(package private) int_numFastBytesPrev(package private) int_numLiteralContextBits(package private) int_numLiteralPosStateBits(package private) Encoder.Optimal[]_optimum(package private) int_optimumCurrentIndex(package private) int_optimumEndIndex(package private) BitTreeEncoder_posAlignEncoder(package private) short[]_posEncoders(package private) BitTreeEncoder[]_posSlotEncoder(package private) int[]_posSlotPrices(package private) int_posStateBits(package private) int_posStateMask(package private) byte_previousByte(package private) Encoder_rangeEncoder(package private) int[]_repDistances(package private) Encoder.LenPriceTableEncoder_repMatchLenEncoder(package private) int_state(package private) boolean_writeEndMark(package private) intbackResstatic intEMatchFinderTypeBT2static intEMatchFinderTypeBT4(package private) boolean[]finished(package private) static byte[]g_FastPos(package private) static intkDefaultDictionaryLogSize(package private) static intkIfinityPrice(package private) static intkNumFastBytesDefault(package private) static intkNumOptsstatic intkPropSize(package private) longnowPos64(package private) long[]processedInSize(package private) long[]processedOutSize(package private) byte[]properties(package private) int[]repLens(package private) int[]reps(package private) int[]tempPrices
-
Constructor Summary
Constructors Constructor Description Encoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intbackward(int cur)(package private) voidbaseInit()voidcode(java.io.InputStream inStream, java.io.OutputStream outStream, long inSize, long outSize, ICodeProgress progress)voidcodeOneBlock(long[] inSize, long[] outSize, boolean[] finished)(package private) voidcreate()(package private) voidfillAlignPrices()(package private) voidfillDistancesPrices()(package private) voidflush(int nowPos)(package private) intgetOptimum(int position)(package private) intgetPosLenPrice(int pos, int len, int posState)(package private) static intgetPosSlot(int pos)(package private) static intgetPosSlot2(int pos)(package private) intgetPureRepPrice(int repIndex, int state, int posState)(package private) intgetRepLen1Price(int state, int posState)(package private) intgetRepPrice(int repIndex, int len, int state, int posState)(package private) voidinit()(package private) voidmovePos(int num)(package private) intreadMatchDistances()(package private) voidreleaseMFStream()(package private) voidreleaseOutStream()(package private) voidreleaseStreams()booleansetAlgorithm(int algorithm)booleansetDictionarySize(int dictionarySize)voidsetEndMarkerMode(boolean endMarkerMode)booleansetLcLpPb(int lc, int lp, int pb)booleansetMatchFinder(int matchFinderIndex)booleansetNumFastBytes(int numFastBytes)(package private) voidsetOutStream(java.io.OutputStream outStream)(package private) voidsetStreams(java.io.InputStream inStream, java.io.OutputStream outStream)voidwriteCoderProperties(java.io.OutputStream outStream)(package private) voidwriteEndMarker(int posState)
-
-
-
Field Detail
-
EMatchFinderTypeBT2
public static final int EMatchFinderTypeBT2
- See Also:
- Constant Field Values
-
EMatchFinderTypeBT4
public static final int EMatchFinderTypeBT4
- See Also:
- Constant Field Values
-
kIfinityPrice
static final int kIfinityPrice
- See Also:
- Constant Field Values
-
g_FastPos
static byte[] g_FastPos
-
_state
int _state
-
_previousByte
byte _previousByte
-
_repDistances
int[] _repDistances
-
kDefaultDictionaryLogSize
static final int kDefaultDictionaryLogSize
- See Also:
- Constant Field Values
-
kNumFastBytesDefault
static final int kNumFastBytesDefault
- See Also:
- Constant Field Values
-
kNumOpts
static final int kNumOpts
- See Also:
- Constant Field Values
-
_optimum
Encoder.Optimal[] _optimum
-
_matchFinder
BinTree _matchFinder
-
_rangeEncoder
Encoder _rangeEncoder
-
_isMatch
short[] _isMatch
-
_isRep
short[] _isRep
-
_isRepG0
short[] _isRepG0
-
_isRepG1
short[] _isRepG1
-
_isRepG2
short[] _isRepG2
-
_isRep0Long
short[] _isRep0Long
-
_posSlotEncoder
BitTreeEncoder[] _posSlotEncoder
-
_posEncoders
short[] _posEncoders
-
_posAlignEncoder
BitTreeEncoder _posAlignEncoder
-
_lenEncoder
Encoder.LenPriceTableEncoder _lenEncoder
-
_repMatchLenEncoder
Encoder.LenPriceTableEncoder _repMatchLenEncoder
-
_literalEncoder
Encoder.LiteralEncoder _literalEncoder
-
_matchDistances
int[] _matchDistances
-
_numFastBytes
int _numFastBytes
-
_longestMatchLength
int _longestMatchLength
-
_numDistancePairs
int _numDistancePairs
-
_additionalOffset
int _additionalOffset
-
_optimumEndIndex
int _optimumEndIndex
-
_optimumCurrentIndex
int _optimumCurrentIndex
-
_longestMatchWasFound
boolean _longestMatchWasFound
-
_posSlotPrices
int[] _posSlotPrices
-
_distancesPrices
int[] _distancesPrices
-
_alignPrices
int[] _alignPrices
-
_alignPriceCount
int _alignPriceCount
-
_distTableSize
int _distTableSize
-
_posStateBits
int _posStateBits
-
_posStateMask
int _posStateMask
-
_numLiteralPosStateBits
int _numLiteralPosStateBits
-
_numLiteralContextBits
int _numLiteralContextBits
-
_dictionarySize
int _dictionarySize
-
_dictionarySizePrev
int _dictionarySizePrev
-
_numFastBytesPrev
int _numFastBytesPrev
-
nowPos64
long nowPos64
-
_finished
boolean _finished
-
_inStream
java.io.InputStream _inStream
-
_matchFinderType
int _matchFinderType
-
_writeEndMark
boolean _writeEndMark
-
_needReleaseMFStream
boolean _needReleaseMFStream
-
reps
int[] reps
-
repLens
int[] repLens
-
backRes
int backRes
-
processedInSize
long[] processedInSize
-
processedOutSize
long[] processedOutSize
-
finished
boolean[] finished
-
kPropSize
public static final int kPropSize
- See Also:
- Constant Field Values
-
properties
byte[] properties
-
tempPrices
int[] tempPrices
-
_matchPriceCount
int _matchPriceCount
-
-
Method Detail
-
getPosSlot
static int getPosSlot(int pos)
-
getPosSlot2
static int getPosSlot2(int pos)
-
baseInit
void baseInit()
-
create
void create()
-
init
void init()
-
readMatchDistances
int readMatchDistances() throws java.io.IOException- Throws:
java.io.IOException
-
movePos
void movePos(int num) throws java.io.IOException- Throws:
java.io.IOException
-
getRepLen1Price
int getRepLen1Price(int state, int posState)
-
getPureRepPrice
int getPureRepPrice(int repIndex, int state, int posState)
-
getRepPrice
int getRepPrice(int repIndex, int len, int state, int posState)
-
getPosLenPrice
int getPosLenPrice(int pos, int len, int posState)
-
backward
int backward(int cur)
-
getOptimum
int getOptimum(int position) throws java.io.IOException- Throws:
java.io.IOException
-
writeEndMarker
void writeEndMarker(int posState) throws java.io.IOException- Throws:
java.io.IOException
-
flush
void flush(int nowPos) throws java.io.IOException- Throws:
java.io.IOException
-
codeOneBlock
public void codeOneBlock(long[] inSize, long[] outSize, boolean[] finished) throws java.io.IOException- Throws:
java.io.IOException
-
releaseMFStream
void releaseMFStream()
-
setOutStream
void setOutStream(java.io.OutputStream outStream)
-
releaseOutStream
void releaseOutStream()
-
releaseStreams
void releaseStreams()
-
setStreams
void setStreams(java.io.InputStream inStream, java.io.OutputStream outStream)
-
code
public void code(java.io.InputStream inStream, java.io.OutputStream outStream, long inSize, long outSize, ICodeProgress progress) throws java.io.IOException- Throws:
java.io.IOException
-
writeCoderProperties
public void writeCoderProperties(java.io.OutputStream outStream) throws java.io.IOException- Throws:
java.io.IOException
-
fillDistancesPrices
void fillDistancesPrices()
-
fillAlignPrices
void fillAlignPrices()
-
setAlgorithm
public boolean setAlgorithm(int algorithm)
-
setDictionarySize
public boolean setDictionarySize(int dictionarySize)
-
setNumFastBytes
public boolean setNumFastBytes(int numFastBytes)
-
setMatchFinder
public boolean setMatchFinder(int matchFinderIndex)
-
setLcLpPb
public boolean setLcLpPb(int lc, int lp, int pb)
-
setEndMarkerMode
public void setEndMarkerMode(boolean endMarkerMode)
-
-