org.glassfish.grizzly.compression.lzma.impl.rangecoder
Class RangeEncoder
java.lang.Object
org.glassfish.grizzly.compression.lzma.impl.rangecoder.RangeEncoder
public class RangeEncoder
- extends java.lang.Object
RangeEncoder
- Author:
- Igor Pavlov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
kNumBitPriceShiftBits
public static final int kNumBitPriceShiftBits
- See Also:
- Constant Field Values
RangeEncoder
public RangeEncoder()
setBuffer
public void setBuffer(Buffer dst,
MemoryManager mm)
releaseBuffer
public Buffer releaseBuffer()
init
public void init()
flushData
public void flushData()
throws java.io.IOException
- Throws:
java.io.IOException
shiftLow
public void shiftLow()
throws java.io.IOException
- Throws:
java.io.IOException
encodeDirectBits
public void encodeDirectBits(int v,
int numTotalBits)
throws java.io.IOException
- Throws:
java.io.IOException
getProcessedSizeAdd
public long getProcessedSizeAdd()
initBitModels
public static void initBitModels(short[] probs)
encode
public void encode(short[] probs,
int index,
int symbol)
throws java.io.IOException
- Throws:
java.io.IOException
getPrice
public static int getPrice(int Prob,
int symbol)
getPrice0
public static int getPrice0(int Prob)
getPrice1
public static int getPrice1(int Prob)
Copyright © 2012 Oracle Corporation. All Rights Reserved.