public class CodingFunctions extends Object
| Constructor and Description |
|---|
CodingFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
absQuant(EncoderBits encoderBits,
short[] in,
int inIndex,
short[] weightDenum,
int weightDenumIndex) |
static void |
absQUantLoop(EncoderBits encoderBits,
short[] syntOut,
int syntOutIndex,
short[] inWeighted,
int inWeightedIndex,
short[] weightDenum,
int weightDenumIndex,
short[] quantLen,
int quantLenIndex) |
static void |
augmentCbCorr(short[] target,
int targetIndex,
short[] buf,
int bufIndex,
short[] interpSamples,
int interpSamplesIndex,
int[] cDot,
int cDotIndex,
int low,
int high,
int scale) |
static void |
autoCorrelation(short[] input,
int inputIndex,
int inputLength,
int order,
int[] result,
int resultIndex) |
static void |
cbConstruct(EncoderBits encoderBits,
short[] decVector,
int decVectorIndex,
short[] mem,
int memIndex,
short length,
short vectorLength,
int cbIndexIndex,
int gainIndexIndex) |
static void |
cbMemEnergy(short range,
short[] cb,
int cbIndex,
short[] filteredCB,
int filteredCbIndex,
short length,
short targetLength,
short[] energy,
int energyIndex,
short[] energyShifts,
int energyShiftsIndex,
short scale,
short baseSize) |
static void |
cbMemEnergyAugmentation(short[] interpSamples,
int interpSamplesIndex,
short[] cbMem,
int cbMemIndex,
short scale,
short baseSize,
short[] energy,
int energyIndex,
short[] energyShifts,
int energyShiftsIndex) |
static void |
cbSearch(EncoderState encoderState,
EncoderBits encoderBits,
CbSearchData searchData,
CbUpdateIndexData updateIndexData,
short[] inTarget,
int inTargetIndex,
short[] decResidual,
int decResidualIndex,
int length,
int vectorLength,
short[] weightDenum,
int weightDenumindex,
int blockNumber,
int cbIndexIndex,
int gainIndexIndex) |
static void |
cbSearchCore(CbSearchData searchData,
int[] cDot,
int cDotIndex,
short range,
short stage,
short[] inverseEnergy,
int inverseEnergyIndex,
short[] inverseEnergyShift,
int inverseEnergyShiftIndex,
int[] crit,
int critIndex) |
static short |
chebushev(short value,
short[] coefs,
int coefsIndex) |
static void |
compCorr(CorrData currData,
short[] buffer,
int bufferIndex,
short lag,
short bLen,
short sRange,
short scale) |
static void |
createAugmentVector(short index,
short[] buf,
int bufIndex,
short[] cbVec,
int cbVecIndex) |
static void |
crossCorrelation(int[] crossCorrelation,
int crossCorrelationIndex,
short[] seq1,
int seq1Index,
short[] seq2,
int seq2Index,
short dimSeq,
short dimCrossCorrelation,
short rightShifts,
short stepSeq2) |
static void |
decodeResidual(DecoderState decoderState,
EncoderBits encoderBits,
short[] decResidual,
int decResidualIndex,
short[] syntDenum,
int syntDenumIndex) |
static void |
decoderInterpolateLsf(DecoderState decoderState,
short[] syntDenum,
int syntDenumIndex,
short[] weightDenum,
int weightDenumIndex,
short[] lsfDeq,
int lsfDeqIndex,
short length) |
static void |
doThePlc(DecoderState decoderState,
short[] plcResidual,
int plcResidualIndex,
short[] plcLpc,
int plcLpcIndex,
short pli,
short[] decResidual,
int decResidualIndex,
short[] lpc,
int lpcIndex,
short inLag) |
static void |
energyCalc(int energy,
short range,
short[] ppi,
int ppiIndex,
short[] ppo,
int ppoIndex,
short[] energyArray,
int energyArrayIndex,
short[] energyShifts,
int energyShiftsIndex,
short scale,
short baseSize) |
static void |
energyInverse(short[] energy,
int energyIndex,
int length) |
static void |
filteredCBVecs(short[] cbVectors,
int cbVectorsIndex,
short[] cbMem,
int cbMemIndex,
int length,
int samples) |
static short |
frameClassify(short[] residual) |
static short |
gainDequant(short index,
short maxIn,
short stage) |
static short |
gainQuant(short gain,
short maxIn,
short stage,
short[] index,
int indexIndex) |
static void |
getCbVec(short[] cbVec,
int cbVecIndex,
short[] mem,
int memIndex,
short index,
int length,
int vectorLength) |
static void |
getLspPoly(short[] lsp,
int lspIndex,
int[] f,
int fIndex) |
static void |
hpInput(EncoderState encoderState,
short[] data,
int startIndex,
int length) |
static void |
hpOutput(short[] signal,
short[] ba,
short[] y,
short[] x,
short len) |
static void |
interpolate(short[] out,
int outIndex,
short[] in1,
int in1Index,
short[] in2,
int in2Index,
short coef,
int length) |
static void |
interpolateSamples(short[] interpSamples,
int interpSamplesIndex,
short[] cbMem,
int cbMemIndex,
int length) |
static boolean |
levinsonDurbin(int[] R,
int rIndex,
short[] A,
int aIndex,
short[] K,
int kIndex,
int order) |
static void |
lpcEncode(EncoderState encoderState,
EncoderBits encoderBits,
short[] synthDenum,
int synthDenumIndex,
short[] weightDenum,
int weightDenumIndex,
short[] data,
int startIndex) |
static void |
lsf2Lsp(short[] lsf,
int lsfIndex,
short[] lsp,
int lspIndex,
int count) |
static void |
lsf2Poly(short[] a,
int aIndex,
short[] lsf,
int lsfIndex) |
static void |
lsfCheck(short[] lsf,
int lsfIndex,
int lsfSize) |
static void |
lsfInterpolate2PolyEnc(short[] a,
short aIndex,
short[] lsf1,
int lsf1Index,
short[] lsf2,
int lsf2Index,
short coef,
int length) |
static void |
lspInterpolate2PolyDec(short[] a,
int aIndex,
short[] lsf1,
int lsf1Index,
short[] lsf2,
int lsf2Index,
short coef,
int length) |
static void |
lspToLsf(short[] lsp,
int lspIndex,
short[] lsf,
int lsfIndex,
int coefsNumber) |
static void |
packBits(EncoderState encoderState,
EncoderBits encoderBits,
byte[] result) |
static void |
poly2Lsf(short[] lsf,
int lsfIndex,
short[] A,
int aIndex) |
static void |
poly2Lsp(short[] A,
int aIndex,
short[] lsp,
int lspIndex) |
static void |
simpleInterpolateLsf(EncoderState encoderState,
short[] synthdenum,
int synthDenumIndex,
short[] weightDenum,
int weightDenumIndex,
short[] lsf,
int lsfIndex,
short[] lsfDeq,
int lsfDeqIndex,
int length) |
static short[] |
simpleLpcAnalysis(EncoderState encoderState,
short[] lsf,
int lsfIndex,
short[] data,
int startIndex) |
static void |
simpleLsfDeq(short[] lsfDeq,
int lsfDeqIndex,
short[] index,
int indexIndex,
int lpcN) |
static void |
simpleLsfQ(EncoderBits encoderBits,
short[] lsfdeq,
int lsfdeqIndex,
short[] lsfArray,
int lsfArrrayIndex) |
static void |
splitVq(short[] qX,
int qXIndex,
short[] lsf,
int lsfIndex,
short[] X,
int xIndex) |
static void |
stateConstruct(EncoderBits encoderBits,
short[] syntDenum,
int syntDenumIndex,
short[] outFix,
int outFixIndex,
int stateLen) |
static void |
stateSearch(EncoderState encoderState,
EncoderBits encoderBits,
short[] residual,
int residualIndex,
short[] syntDenum,
int syntIndex,
short[] weightDenum,
int weightIndex) |
static void |
unpackBits(EncoderBits encoderBits,
short[] data,
int mode) |
static void |
updateBestIndex(CbUpdateIndexData updateIndexData,
int critNew,
short critNewSh,
short indexNew,
int cDotNew,
short inverseEnergyNew,
short energyShiftNew) |
static void |
updateDecIndex(EncoderBits encoderBits) |
static void |
vq3(short[] qX,
int qXIndex,
short[] lsf,
int lsfIndex,
int cbIndex,
short[] X,
int xIndex,
int cbSize) |
static void |
vq4(short[] qX,
int qXIndex,
short[] lsf,
int lsfIndex,
int cbIndex,
short[] X,
int xIndex,
int cbSize) |
static void |
windowMultiply(int[] output,
int outputIndex,
int[] input,
int inputIndex,
int[] window,
int length) |
static int |
xCorrCoef(short[] target,
int targetIndex,
short[] regressor,
int regressorIndex,
short subl,
short searchLen,
short offset,
short step) |
public static void hpInput(EncoderState encoderState, short[] data, int startIndex, int length)
public static void hpOutput(short[] signal,
short[] ba,
short[] y,
short[] x,
short len)
public static void lpcEncode(EncoderState encoderState, EncoderBits encoderBits, short[] synthDenum, int synthDenumIndex, short[] weightDenum, int weightDenumIndex, short[] data, int startIndex)
public static short[] simpleLpcAnalysis(EncoderState encoderState, short[] lsf, int lsfIndex, short[] data, int startIndex)
public static void autoCorrelation(short[] input,
int inputIndex,
int inputLength,
int order,
int[] result,
int resultIndex)
public static void windowMultiply(int[] output,
int outputIndex,
int[] input,
int inputIndex,
int[] window,
int length)
public static boolean levinsonDurbin(int[] R,
int rIndex,
short[] A,
int aIndex,
short[] K,
int kIndex,
int order)
public static void simpleInterpolateLsf(EncoderState encoderState, short[] synthdenum, int synthDenumIndex, short[] weightDenum, int weightDenumIndex, short[] lsf, int lsfIndex, short[] lsfDeq, int lsfDeqIndex, int length)
public static void lsfInterpolate2PolyEnc(short[] a,
short aIndex,
short[] lsf1,
int lsf1Index,
short[] lsf2,
int lsf2Index,
short coef,
int length)
public static void interpolate(short[] out,
int outIndex,
short[] in1,
int in1Index,
short[] in2,
int in2Index,
short coef,
int length)
public static void lsf2Poly(short[] a,
int aIndex,
short[] lsf,
int lsfIndex)
public static void lsf2Lsp(short[] lsf,
int lsfIndex,
short[] lsp,
int lspIndex,
int count)
public static void getLspPoly(short[] lsp,
int lspIndex,
int[] f,
int fIndex)
public static void poly2Lsf(short[] lsf,
int lsfIndex,
short[] A,
int aIndex)
public static void poly2Lsp(short[] A,
int aIndex,
short[] lsp,
int lspIndex)
public static short chebushev(short value,
short[] coefs,
int coefsIndex)
public static void lspToLsf(short[] lsp,
int lspIndex,
short[] lsf,
int lsfIndex,
int coefsNumber)
public static void simpleLsfQ(EncoderBits encoderBits, short[] lsfdeq, int lsfdeqIndex, short[] lsfArray, int lsfArrrayIndex)
public static void splitVq(short[] qX,
int qXIndex,
short[] lsf,
int lsfIndex,
short[] X,
int xIndex)
public static void vq3(short[] qX,
int qXIndex,
short[] lsf,
int lsfIndex,
int cbIndex,
short[] X,
int xIndex,
int cbSize)
public static void vq4(short[] qX,
int qXIndex,
short[] lsf,
int lsfIndex,
int cbIndex,
short[] X,
int xIndex,
int cbSize)
public static void lsfCheck(short[] lsf,
int lsfIndex,
int lsfSize)
public static short gainDequant(short index,
short maxIn,
short stage)
public static short gainQuant(short gain,
short maxIn,
short stage,
short[] index,
int indexIndex)
public static void cbMemEnergyAugmentation(short[] interpSamples,
int interpSamplesIndex,
short[] cbMem,
int cbMemIndex,
short scale,
short baseSize,
short[] energy,
int energyIndex,
short[] energyShifts,
int energyShiftsIndex)
public static void cbMemEnergy(short range,
short[] cb,
int cbIndex,
short[] filteredCB,
int filteredCbIndex,
short length,
short targetLength,
short[] energy,
int energyIndex,
short[] energyShifts,
int energyShiftsIndex,
short scale,
short baseSize)
public static void cbSearch(EncoderState encoderState, EncoderBits encoderBits, CbSearchData searchData, CbUpdateIndexData updateIndexData, short[] inTarget, int inTargetIndex, short[] decResidual, int decResidualIndex, int length, int vectorLength, short[] weightDenum, int weightDenumindex, int blockNumber, int cbIndexIndex, int gainIndexIndex)
public static void cbSearchCore(CbSearchData searchData, int[] cDot, int cDotIndex, short range, short stage, short[] inverseEnergy, int inverseEnergyIndex, short[] inverseEnergyShift, int inverseEnergyShiftIndex, int[] crit, int critIndex)
public static void cbConstruct(EncoderBits encoderBits, short[] decVector, int decVectorIndex, short[] mem, int memIndex, short length, short vectorLength, int cbIndexIndex, int gainIndexIndex)
public static void stateSearch(EncoderState encoderState, EncoderBits encoderBits, short[] residual, int residualIndex, short[] syntDenum, int syntIndex, short[] weightDenum, int weightIndex)
public static void stateConstruct(EncoderBits encoderBits, short[] syntDenum, int syntDenumIndex, short[] outFix, int outFixIndex, int stateLen)
public static void filteredCBVecs(short[] cbVectors,
int cbVectorsIndex,
short[] cbMem,
int cbMemIndex,
int length,
int samples)
public static void crossCorrelation(int[] crossCorrelation,
int crossCorrelationIndex,
short[] seq1,
int seq1Index,
short[] seq2,
int seq2Index,
short dimSeq,
short dimCrossCorrelation,
short rightShifts,
short stepSeq2)
public static void updateBestIndex(CbUpdateIndexData updateIndexData, int critNew, short critNewSh, short indexNew, int cDotNew, short inverseEnergyNew, short energyShiftNew)
public static void getCbVec(short[] cbVec,
int cbVecIndex,
short[] mem,
int memIndex,
short index,
int length,
int vectorLength)
public static void createAugmentVector(short index,
short[] buf,
int bufIndex,
short[] cbVec,
int cbVecIndex)
public static void energyInverse(short[] energy,
int energyIndex,
int length)
public static void energyCalc(int energy,
short range,
short[] ppi,
int ppiIndex,
short[] ppo,
int ppoIndex,
short[] energyArray,
int energyArrayIndex,
short[] energyShifts,
int energyShiftsIndex,
short scale,
short baseSize)
public static void augmentCbCorr(short[] target,
int targetIndex,
short[] buf,
int bufIndex,
short[] interpSamples,
int interpSamplesIndex,
int[] cDot,
int cDotIndex,
int low,
int high,
int scale)
public static void absQuant(EncoderBits encoderBits, short[] in, int inIndex, short[] weightDenum, int weightDenumIndex)
public static void absQUantLoop(EncoderBits encoderBits, short[] syntOut, int syntOutIndex, short[] inWeighted, int inWeightedIndex, short[] weightDenum, int weightDenumIndex, short[] quantLen, int quantLenIndex)
public static void interpolateSamples(short[] interpSamples,
int interpSamplesIndex,
short[] cbMem,
int cbMemIndex,
int length)
public static short frameClassify(short[] residual)
public static void packBits(EncoderState encoderState, EncoderBits encoderBits, byte[] result)
public static void unpackBits(EncoderBits encoderBits, short[] data, int mode)
public static void updateDecIndex(EncoderBits encoderBits)
public static void simpleLsfDeq(short[] lsfDeq,
int lsfDeqIndex,
short[] index,
int indexIndex,
int lpcN)
public static void decoderInterpolateLsf(DecoderState decoderState, short[] syntDenum, int syntDenumIndex, short[] weightDenum, int weightDenumIndex, short[] lsfDeq, int lsfDeqIndex, short length)
public static void lspInterpolate2PolyDec(short[] a,
int aIndex,
short[] lsf1,
int lsf1Index,
short[] lsf2,
int lsf2Index,
short coef,
int length)
public static void decodeResidual(DecoderState decoderState, EncoderBits encoderBits, short[] decResidual, int decResidualIndex, short[] syntDenum, int syntDenumIndex)
public static int xCorrCoef(short[] target,
int targetIndex,
short[] regressor,
int regressorIndex,
short subl,
short searchLen,
short offset,
short step)
public static void doThePlc(DecoderState decoderState, short[] plcResidual, int plcResidualIndex, short[] plcLpc, int plcLpcIndex, short pli, short[] decResidual, int decResidualIndex, short[] lpc, int lpcIndex, short inLag)
public static void compCorr(CorrData currData, short[] buffer, int bufferIndex, short lag, short bLen, short sRange, short scale)
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.