|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kc7bfi.jflac.FixedPredictor
public class FixedPredictor
Fixed Predictor utility class.
Constructor Summary | |
---|---|
FixedPredictor()
|
Method Summary | |
---|---|
static int |
computeBestPredictor(int[] data,
int dataLen,
double[] residualBitsPerSample)
Compute the best predictor order. |
static int |
computeBestPredictorWide(int[] data,
int dataLen,
double[] residualBitsPerSample)
Compute the best predictor order. |
static void |
computeResidual(int[] data,
int dataLen,
int order,
int[] residual)
Compute the residual from the compressed signal. |
static void |
restoreSignal(int[] residual,
int dataLen,
int order,
int[] data,
int startAt)
Restore the signal from the fixed predictor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedPredictor()
Method Detail |
---|
public static int computeBestPredictor(int[] data, int dataLen, double[] residualBitsPerSample)
data
- dataLen
- residualBitsPerSample
-
public static int computeBestPredictorWide(int[] data, int dataLen, double[] residualBitsPerSample)
data
- dataLen
- residualBitsPerSample
-
public static void computeResidual(int[] data, int dataLen, int order, int[] residual)
data
- dataLen
- order
- residual
- public static void restoreSignal(int[] residual, int dataLen, int order, int[] data, int startAt)
residual
- The residual datadataLen
- The length of residual dataorder
- The preicate orderdata
- The restored signal (output)startAt
- The starting position in the data array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |