Top Fields Constructors Methods
lzma.sdk.rangecoder

public Class Encoder

extends Object
Class Inheritance
Imports
java.io.IOException

Field Summary

Modifier and TypeField and Description
private int
private int
private long
private static final int
private static final int
public static final int
private static final int
private static final int
private static final int
private long
private static final int[]
private int
private OutputStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
encode(short[] probs, int index, int symbol)

public void
encodeDirectBits(int v, int numTotalBits)

public void
public void
public static int
getPrice(int Prob, int symbol)

public static int
getPrice0(int Prob)

public static int
getPrice1(int Prob)

public long
public void
init()

public static void
initBitModels(short[] probs)

public void
public void
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_cacheback to summary
private int _cache
_cacheSizeback to summary
private int _cacheSize
_positionback to summary
private long _position
kBitModelTotalback to summary
private static final int kBitModelTotal
kNumBitModelTotalBitsback to summary
private static final int kNumBitModelTotalBits
kNumBitPriceShiftBitsback to summary
public static final int kNumBitPriceShiftBits
kNumMoveBitsback to summary
private static final int kNumMoveBits
kNumMoveReducingBitsback to summary
private static final int kNumMoveReducingBits
kTopMaskback to summary
private static final int kTopMask
Lowback to summary
private long Low
ProbPricesback to summary
private static final int[] ProbPrices
Rangeback to summary
private int Range
Streamback to summary
private OutputStream Stream

Constructor Detail

Encoderback to summary
public Encoder()

Method Detail

encodeback to summary
public void encode(short[] probs, int index, int symbol) throws IOException
encodeDirectBitsback to summary
public void encodeDirectBits(int v, int numTotalBits) throws IOException
flushDataback to summary
public void flushData() throws IOException
flushStreamback to summary
public void flushStream() throws IOException
getPriceback to summary
public static int getPrice(int Prob, int symbol)
getPrice0back to summary
public static int getPrice0(int Prob)
getPrice1back to summary
public static int getPrice1(int Prob)
getProcessedSizeAddback to summary
public long getProcessedSizeAdd()
initback to summary
public void init()
initBitModelsback to summary
public static void initBitModels(short[] probs)
releaseStreamback to summary
public void releaseStream()
setStreamback to summary
public void setStream(OutputStream stream)
shiftLowback to summary
pack-priv void shiftLow() throws IOException