Home
last modified time | relevance | path

Searched refs:word16_t (Results 1 – 25 of 81) sorted by relevance

1234

/dports/audio/bcg729/bcg729-faaa895862165acde6df8add722ba4f85a25007d/src/
H A Dtypedef.h32 typedef int16_t word16_t; typedef
46 word16_t meanZC; /* in Q15 */
47 word16_t meanEf; /* in Q11 */
48 word16_t meanEl; /* in Q11 */
58 word16_t previousFrameEf; /* in Q11 */
74 word16_t currentSIDGain; /* gain in Q3 */
75 word16_t smoothedSIDGain; /* gain in Q3 */
84 word16_t receivedSIDGain; /* gain in Q3 */
129 word16_t inputX0;
130 word16_t inputX1;
[all …]
H A Dcodebooks.c214 word16_t MAPredictorSum[L0_RANGE][NB_LSP_COEFF] = {/* 1 - Sum(MAPredictor) in Q0.15 */
219 word16_t invMAPredictorSum[L0_RANGE][NB_LSP_COEFF] = {/* 1/(1 - Sum(MAPredictor)) in Q3.12 */
240 word16_t noiseMAPredictorSum[L0_RANGE][NB_LSP_COEFF] = {/* 1 - Sum(MAPredictor) in Q0.15 */
245 word16_t invNoiseMAPredictorSum[L0_RANGE][NB_LSP_COEFF] = {/* 1/(1 - Sum(MAPredictor)) in Q3.12 */
254 word16_t b30[31] = { /* in Q0.15 */
265 word16_t GACodebook[8][2] = {
277 word16_t GBCodebook[16][2] = {
298 word16_t MAPredictionCoefficients[4] = { 11141, 9503, 5571, 3113 };
301 word16_t wlp[L_LP_ANALYSIS_WINDOW] = { /* in Q15 */
342 word16_t wlag[NB_LSP_COEFF+3] = { /* in Q15 note first coeff is not used */
[all …]
H A Dcodebooks.h30 extern word16_t MAPredictorSum[L0_RANGE][NB_LSP_COEFF]; /* 1 - Sum(MAPredictor) in Q0.15 */
31 extern word16_t invMAPredictorSum[L0_RANGE][NB_LSP_COEFF]; /* 1/(1 - Sum(MAPredictor)) in Q3.12 */
34 extern word16_t noiseMAPredictorSum[L0_RANGE][NB_LSP_COEFF]; /* 1 - Sum(MAPredictor) in Q0.15 */
38 extern word16_t b30[31];
45 extern word16_t GACodebook[8][2];
46 extern word16_t GBCodebook[16][2];
47 extern word16_t MAPredictionCoefficients[4];
48 extern word16_t SIDGainCodebook[32];
54 extern word16_t lowBandFilter[NB_LSP_COEFF+3];
57 extern word16_t wlp[L_LP_ANALYSIS_WINDOW];
[all …]
H A DpostFilter.c56 word16_t *postFilteredSignal) in postFilter()
60 word16_t *residualSignal; in postFilter()
61 word16_t *scaledResidualSignal; in postFilter()
64 word16_t *delayedResidualSignal; in postFilter()
69 word16_t correlationMaxWord16 = 0; in postFilter()
70 word16_t residualSignalEnergyWord16 = 0; in postFilter()
71 word16_t delayedResidualSignalEnergyWord16 = 0; in postFilter()
76 word16_t gainScalingFactor; /* in Q12 */ in postFilter()
183 word16_t g0, g1; in postFilter()
248 word16_t tiltCompensationGain; in postFilter()
[all …]
H A Dutils.h36 void insertionSort(word16_t x[], int length);
46 word16_t getMinInArray(word16_t x[], int length);
68 void rearrangeCoefficients(word16_t qLSP[], word16_t J);
82 void synthesisFilter(word16_t inputSignal[], word16_t filterCoefficients[], word16_t filteredSignal…
93 void correlateVectors (word16_t x[], word16_t y[], word32_t c[]);
148 word32_t MACodeGainPrediction(word16_t *previousGainPredictionError, word16_t *fixedCodebookVector);
158 void computeGainPredictionError(word16_t fixedCodebookGainCorrectionFactor, word16_t *previousGainP…
H A Dencoder.c121 word16_t LPCoefficients[NB_LSP_COEFF]; /* the LP coefficients in Q3.12 */ in bcg729Encoder()
122 word16_t LSFCoefficients[NB_LSP_COEFF]; /* the LSF coefficients in Q3.12 */ in bcg729Encoder()
125 word16_t LSPCoefficients[NB_LSP_COEFF]; /* the LSP coefficients in Q15 */ in bcg729Encoder()
174 word16_t residualSignal[L_FRAME]; in bcg729Encoder()
291 memset(&(impulseResponseInput[1]), 0, (L_SUBFRAME-1)*sizeof(word16_t)); in bcg729Encoder()
295 word16_t adaptativeCodebookGain; in bcg729Encoder()
300 word16_t fixedCodebookVector[L_SUBFRAME]; /* in Q13 */ in bcg729Encoder()
301 word16_t convolvedFixedCodebookVector[L_SUBFRAME]; /* in Q12 */ in bcg729Encoder()
302 word16_t quantizedAdaptativeCodebookGain; /* in Q14 */ in bcg729Encoder()
303 word16_t quantizedFixedCodebookGain; /* in Q1 */ in bcg729Encoder()
[all …]
H A Dutils.c33 void insertionSort(word16_t x[], int length) in insertionSort()
36 word16_t currentValue; in insertionSort()
61 word16_t getMinInArray(word16_t x[], int length) { in getMinInArray()
62 word16_t min = MAXINT16; in getMinInArray()
102 void rearrangeCoefficients(word16_t qLSP[], word16_t J) in rearrangeCoefficients()
105 word16_t delta; /* in Q0.13 */ in rearrangeCoefficients()
130 void synthesisFilter(word16_t inputSignal[], word16_t filterCoefficients[], word16_t filteredSignal… in synthesisFilter()
154 void correlateVectors (word16_t x[], word16_t y[], word32_t c[]) in correlateVectors()
178 word32_t MACodeGainPrediction(word16_t *previousGainPredictionError, word16_t *fixedCodebookVector) in MACodeGainPrediction()
236 void computeGainPredictionError(word16_t fixedCodebookGainCorrectionFactor, word16_t *previousGainP… in computeGainPredictionError()
[all …]
H A DLSPQuantization.c50 void noiseLSPQuantization(word16_t previousqLSF[MA_MAX_K][NB_LSP_COEFF], word16_t LSPCoefficients[]… in noiseLSPQuantization()
57 word16_t L1index[L0_RANGE]; in noiseLSPQuantization()
58 word16_t L2index[L0_RANGE]; in noiseLSPQuantization()
60 word16_t quantizerOutput[NB_LSP_COEFF]; in noiseLSPQuantization()
61 word16_t qLSF[NB_LSP_COEFF]; in noiseLSPQuantization()
209 qLSF[i] = (word16_t)PSHR(acc, 15); /* qLSF in Q2.13 */ in noiseLSPQuantization()
264 word16_t L1index[L0_RANGE]; in LSPQuantization()
265 word16_t L2index[L0_RANGE]; in LSPQuantization()
266 word16_t L3index[L0_RANGE]; in LSPQuantization()
267 word16_t quantizerOutput[NB_LSP_COEFF]; in LSPQuantization()
[all …]
H A DfixedCodebookSearch.c29 void computeImpulseResponseCorrelationMatrix(word16_t impulseResponse[], word16_t correlationSignal…
50word16_t targetSignal[], word16_t impulseResponse[], int16_t intPitchDelay, word16_t lastQuantized… in fixedCodebookSearch()
51 …dCodebookParameter, uint16_t *fixedCodebookPulsesSigns, word16_t fixedCodebookVector[], word16_t f… in fixedCodebookSearch()
54 word16_t fixedCodebookTargetSignal[L_SUBFRAME]; in fixedCodebookSearch()
56 word16_t correlationSignal[L_SUBFRAME]; /* normalised to fit on 13 bits */ in fixedCodebookSearch()
103 correlationSignal[i] = (word16_t)correlationSignal32[i]; in fixedCodebookSearch()
130 word16_t correlationM2 = -1; in fixedCodebookSearch()
222 + ((MULT16_16_Q15((word16_t)i1, O2_IN_Q15))<<3) in fixedCodebookSearch()
223 + ((MULT16_16_Q15((word16_t)i2, O2_IN_Q15))<<6) in fixedCodebookSearch()
224 + ((((MULT16_16_Q15((word16_t)i3, O2_IN_Q15))<<1)+jx)<<9) in fixedCodebookSearch()
[all …]
H A DfixedCodebookSearch.h39word16_t targetSignal[], word16_t impulseResponse[], int16_t intPitchDelay, word16_t lastQuantized…
40 …dCodebookParameter, uint16_t *fixedCodebookPulsesSigns, word16_t fixedCodebookVector[], word16_t f…
H A DadaptativeCodebookSearch.c30 void generateAdaptativeCodebookVector(word16_t excitationVector[], int16_t intPitchDelay, int16_t f…
56 …veCodebookSearch(word16_t excitationVector[], int16_t *intPitchDelayMin, int16_t *intPitchDelayMax… in adaptativeCodebookSearch()
87word16_t adaptativeCodebookVector[L_SUBFRAME]; /* as the adaptativeCodebookVector is computed in t… in adaptativeCodebookSearch()
96 memcpy(adaptativeCodebookVector, excitationVector, L_SUBFRAME*sizeof(word16_t)); in adaptativeCodebookSearch()
107 memcpy(adaptativeCodebookVector, excitationVector, L_SUBFRAME*sizeof(word16_t)); in adaptativeCodebookSearch()
120 memcpy(excitationVector, adaptativeCodebookVector, L_SUBFRAME*sizeof(word16_t)); in adaptativeCodebookSearch()
165 void generateAdaptativeCodebookVector(word16_t excitationVector[], int16_t intPitchDelay, int16_t f… in generateAdaptativeCodebookVector()
168 word16_t *delayedExcitationVector; in generateAdaptativeCodebookVector()
169 word16_t *b30Increased; in generateAdaptativeCodebookVector()
170 word16_t *b30Decreased; in generateAdaptativeCodebookVector()
H A Dcng.c58 void computeComfortNoiseExcitationVector(word16_t targetGain, uint16_t *randomGeneratorSeed, word16… in computeComfortNoiseExcitationVector()
66 word16_t gaussianRandomExcitation[L_SUBFRAME]; in computeComfortNoiseExcitationVector()
75 word16_t sign[4]; /* sign of the impulses of fixed codebook excitation */ in computeComfortNoiseExcitationVector()
76 word16_t position[4]; /* positions of the impulses of fixed codebook excitation */ in computeComfortNoiseExcitationVector()
118 gaussianRandomExcitation[i]=(word16_t)(SHR(tmpBuffer,7)); in computeComfortNoiseExcitationVector()
242 …uint8_t bitStreamLength, word16_t *excitationVector, word16_t *previousqLSP, word16_t *LP, uint16_… in decodeSIDframe()
244 word16_t interpolatedqLSP[NB_LSP_COEFF]; /* interpolated qLSP in Q0.15 */ in decodeSIDframe()
250 word16_t LPCoefficientsQ12[NB_LSP_COEFF]; /* in Q12 */ in decodeSIDframe()
253 word16_t k[NB_LSP_COEFF]; in decodeSIDframe()
312 memcpy(CNGChannelContext->qLSP, previousqLSP, NB_LSP_COEFF*sizeof(word16_t)); in decodeSIDframe()
[all …]
H A DLP2LSPConversion.c27 word32_t ChebyshevPolynomial(word16_t x, word32_t f[]); /* return value in Q24 */
28 static const word16_t cosW0pi[NB_COMPUTED_VALUES_CHEBYSHEV_POLYNOMIAL]; /* cos(w) from 0 to Pi in 5…
40 int LP2LSPConversion(word16_t LPCoefficients[], word16_t LSPCoefficients[]) in LP2LSPConversion()
77 word16_t xLow = cosW0pi[i-1]; in LP2LSPConversion()
78 word16_t xHigh = cosW0pi[i]; in LP2LSPConversion()
79 word16_t xMean; in LP2LSPConversion()
82 xMean = (word16_t)SHR(ADD32(xLow, xHigh), 1); in LP2LSPConversion()
103 …xMean = (word16_t)SUB32(xLow, MULT16_32_Q15(SUB32(xHigh, xLow), DIV32(SSHL(SATURATE(previousCx, MA… in LP2LSPConversion()
131 word32_t ChebyshevPolynomial(word16_t x, word32_t f[]) in ChebyshevPolynomial()
154 static const word16_t cosW0pi[NB_COMPUTED_VALUES_CHEBYSHEV_POLYNOMIAL] = { /* in Q15 */
H A DpreProcessing.c41 #define A1 ((word16_t)(7807))
42 #define A2 ((word16_t)(-3733))
43 #define B0 ((word16_t)(1899))
44 #define B1 ((word16_t)(-3798))
45 #define B2 ((word16_t)(1899))
66 …cg729EncoderChannelContextStruct *encoderChannelContext, const word16_t signal[], word16_t preProc… in preProcessing()
68 word16_t inputX2; in preProcessing()
H A Dg729FixedPointMath.h67 word16_t acc = (word16_t)VSHR32(x, 16-leadingZeros); in g729Log2_Q0Q16()
104 static BCG729_INLINE word32_t g729Exp2_Q11Q16(word16_t x) in g729Exp2_Q11Q16()
107 word16_t frac; in g729Exp2_Q11Q16()
186 static BCG729_INLINE word16_t g729Cos_Q13Q15(word16_t x) in g729Cos_Q13Q15()
189 word16_t x2,xScaled; in g729Cos_Q13Q15()
232 static BCG729_INLINE word16_t g729Atan_Q15Q13(word32_t x) in g729Atan_Q15Q13()
236 word16_t x2; in g729Atan_Q15Q13()
296 static BCG729_INLINE word16_t g729Asin_Q15Q13(word16_t x) in g729Asin_Q15Q13()
309 static BCG729_INLINE word16_t g729Acos_Q15Q13(word16_t x) in g729Acos_Q15Q13()
H A Dvad.c65 …BoundaryInitialVoiceActivityDecision(word32_t deltaS, word16_t deltaEf, word16_t deltaEl, word16_t in multiBoundaryInitialVoiceActivityDecision()
178 word16_t Ef, deltaEf; /* full band energy/10 in Q11 eq B1 */ in bcg729_vad()
179 word16_t Emin; /* minimum Ef value of the last 128 frames */ in bcg729_vad()
180 word16_t El, deltaEl; /* low band energy/10 in Q11 eqB2 */ in bcg729_vad()
181 word16_t ZC, deltaZC; /* zero crossing rate in Q15 eq B3 */ in bcg729_vad()
193 Ef = (word16_t)(PSHR(acc,4)); in bcg729_vad()
209 El = (word16_t)(PSHR(acc,4)); in bcg729_vad()
221 word16_t meanEn = 0; in bcg729_vad()
224 meanEn = (word16_t)DIV32(VADChannelContext->initEfSum, VADChannelContext->nbValidInitFrame); in bcg729_vad()
268 word16_t acc16; in bcg729_vad()
[all …]
H A Ddecoder.c55 …elContext->previousqLSP, previousqLSPInitialValues, NB_LSP_COEFF*sizeof(word16_t)); /* initialise … in initBcg729DecoderChannel()
111 word16_t qLSP[NB_LSP_COEFF]; /* store the qLSP coefficients in Q0.15 */ in bcg729Decoder()
112 word16_t interpolatedqLSP[NB_LSP_COEFF]; /* store the interpolated qLSP coefficient in Q0.15 */ in bcg729Decoder()
113 word16_t LP[2*NB_LSP_COEFF]; /* store the 2 sets of LP coefficients in Q12 */ in bcg729Decoder()
115 word16_t fixedCodebookVector[L_SUBFRAME]; /* the fixed Codebook Vector in Q1.13*/ in bcg729Decoder()
116 word16_t postFilteredSignal[L_SUBFRAME]; /* store the postfiltered signal in Q0 */ in bcg729Decoder()
197 …onVector, &(decoderChannelContext->excitationVector[L_FRAME]), L_PAST_EXCITATION*sizeof(word16_t)); in bcg729Decoder()
199 …ctedSpeech, &(decoderChannelContext->reconstructedSpeech[L_FRAME]), NB_LSP_COEFF*sizeof(word16_t)); in bcg729Decoder()
275 …decoderChannelContext->excitationVector[L_PAST_EXCITATION + subframeIndex + i] = (word16_t)(SATURA… in bcg729Decoder()
306 …nVector, &(decoderChannelContext->excitationVector[L_FRAME]), L_PAST_EXCITATION*sizeof(word16_t)); in bcg729Decoder()
[all …]
H A DgainQuantization.h39 …rChannelContext, word16_t targetSignal[], word16_t filteredAdaptativeCodebookVector[], word16_t co…
40word16_t *quantizedAdaptativeCodebookGain, word16_t *quantizedFixedCodebookGain, uint16_t *gainCod…
H A DcomputeWeightedSpeech.c39 …ghtedSpeech(word16_t inputSignal[], word16_t qLPCoefficients[], word16_t weightedqLPCoefficients[]… in computeWeightedSpeech()
48 word16_t weightedqLPLowPassCoefficients[NB_LSP_COEFF]; /* in Q12 */ in computeWeightedSpeech()
57 …LPResidualSignal[i] = (word16_t)SATURATE(PSHR(acc, 12), MAXINT16); /* shift back acc to Q0 and sat… in computeWeightedSpeech()
65 …LPResidualSignal[i] = (word16_t)SATURATE(PSHR(acc, 12), MAXINT16); /* shift back acc to Q0 and sat… in computeWeightedSpeech()
H A Dcng.h31 void computeComfortNoiseExcitationVector(word16_t targetGain, uint16_t *randomGeneratorSeed, word16…
53 …uint8_t bitStreamLength, word16_t *excitationVector, word16_t *previousqLSP, word16_t *LP, uint16_…
H A DpostProcessing.c41 #define A1 ((word16_t)(15836))
42 #define A2 ((word16_t)(-7667))
43 #define B0 ((word16_t)(7699))
44 #define B1 ((word16_t)(-15398))
45 #define B2 ((word16_t)(7699))
66 void postProcessing(bcg729DecoderChannelContextStruct *decoderChannelContext, word16_t signal[]) { in postProcessing()
68 word16_t inputX2; in postProcessing()
H A DcomputeWeightedSpeech.h34 …ghtedSpeech(word16_t inputSignal[], word16_t qLPCoefficients[], word16_t weightedqLPCoefficients[]…
H A DLSPQuantization.h33 …bcg729EncoderChannelContextStruct *encoderChannelContext, word16_t LSPCoefficients[], word16_t qLS…
45 void noiseLSPQuantization(word16_t previousqLSF[MA_MAX_K][NB_LSP_COEFF], word16_t LSPCoefficients[]…
H A DdecodeLSP.c29 static word16_t previousLCodeWordInit[NB_LSP_COEFF] = {2339, 4679, 7018, 9358, 11698, 14037, 16377,…
62word16_t *codebookqLSF, word16_t previousLCodeWord[MA_MAX_K][NB_LSP_COEFF], uint8_t L0, word16_t c… in computeqLSF()
85 codebookqLSF[i] = (word16_t)PSHR(acc, 15); /* codebookqLSF in Q2.13 */ in computeqLSF()
123 void decodeLSP(bcg729DecoderChannelContextStruct *decoderChannelContext, uint16_t L[], word16_t qLS… in decodeLSP()
126 word16_t currentqLSF[NB_LSP_COEFF]; /* buffer to the current qLSF in Q2.13 */ in decodeLSP()
173 …odeWord[j][i] = (j>0)?decoderChannelContext->previousLCodeWord[j-1][i]:(word16_t)PSHR(acc, 15); /*… in decodeLSP()
H A DdecodeLSP.h41word16_t *codebookqLSF, word16_t previousLCodeWord[MA_MAX_K][NB_LSP_COEFF], uint8_t L0, word16_t c…
53 void decodeLSP(bcg729DecoderChannelContextStruct *decoderChannelContext, uint16_t L[], word16_t qLS…

1234