com.sun.grizzly.lzma.compression.rangecoder
Class Encoder
java.lang.Object
com.sun.grizzly.lzma.compression.rangecoder.Encoder
public class Encoder
- extends Object
Encoder
- 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
Encoder
public Encoder()
SetStream
public void SetStream(OutputStream stream)
ReleaseStream
public void ReleaseStream()
Init
public void Init()
FlushData
public void FlushData()
throws IOException
- Throws:
IOException
FlushStream
public void FlushStream()
throws IOException
- Throws:
IOException
ShiftLow
public void ShiftLow()
throws IOException
- Throws:
IOException
EncodeDirectBits
public void EncodeDirectBits(int v,
int numTotalBits)
throws IOException
- Throws:
IOException
GetProcessedSizeAdd
public long GetProcessedSizeAdd()
InitBitModels
public static void InitBitModels(short[] probs)
Encode
public void Encode(short[] probs,
int index,
int symbol)
throws IOException
- Throws:
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.