/external/webrtc/src/modules/audio_coding/codecs/isac/fix/source/ |
D | filterbanks.c | 126 WebRtc_Word16 tempin_ch1[FRAMESAMPLES/2 + QLOOKAHEAD]; in WebRtcIsacfix_SplitAndFilter1() 127 WebRtc_Word16 tempin_ch2[FRAMESAMPLES/2 + QLOOKAHEAD]; in WebRtcIsacfix_SplitAndFilter1() 132 …WebRtcIsacfix_HighpassFilterFixDec32(pin, FRAMESAMPLES, WebRtcIsacfix_kHpStCoeffInQ30, prefiltdata… in WebRtcIsacfix_SplitAndFilter1() 136 for (k=0;k<FRAMESAMPLES/2;k++) { in WebRtcIsacfix_SplitAndFilter1() 141 …prefiltdata->INLABUF1_fix[k]=pin[FRAMESAMPLES+1-WEBRTC_SPL_MUL_16_16(2, QLOOKAHEAD)+WEBRTC_SPL_MUL… in WebRtcIsacfix_SplitAndFilter1() 146 for (k=0;k<FRAMESAMPLES/2;k++) { in WebRtcIsacfix_SplitAndFilter1() 151 …prefiltdata->INLABUF2_fix[k]=pin[FRAMESAMPLES-WEBRTC_SPL_MUL_16_16(2, QLOOKAHEAD)+WEBRTC_SPL_MUL_1… in WebRtcIsacfix_SplitAndFilter1() 158 …AllpassFilter2FixDec16(tempin_ch1,WebRtcIsacfix_kUpperApFactorsQ15, FRAMESAMPLES/2 , NUMBEROFCHANN… in WebRtcIsacfix_SplitAndFilter1() 159 …AllpassFilter2FixDec16(tempin_ch2,WebRtcIsacfix_kLowerApFactorsQ15, FRAMESAMPLES/2 , NUMBEROFCHANN… in WebRtcIsacfix_SplitAndFilter1() 163 …AllpassFilter2FixDec16(tempin_ch1 + FRAMESAMPLES/2,WebRtcIsacfix_kUpperApFactorsQ15, QLOOKAHEAD , … in WebRtcIsacfix_SplitAndFilter1() [all …]
|
D | transform.c | 24 static const WebRtc_Word16 kCosTab1[FRAMESAMPLES/2] = { 53 static const WebRtc_Word16 kSinTab1[FRAMESAMPLES/2] = { 82 static const WebRtc_Word16 kCosTab2[FRAMESAMPLES/4] = { 99 static const WebRtc_Word16 kSinTab2[FRAMESAMPLES/4] = { 123 WebRtc_Word32 tmpreQ16[FRAMESAMPLES/2], tmpimQ16[FRAMESAMPLES/2]; in WebRtcIsacfix_Time2Spec() 131 for (k = 0; k < FRAMESAMPLES/2; k++) { in WebRtcIsacfix_Time2Spec() 141 xrQ16 = WebRtcSpl_MaxAbsValueW32(tmpreQ16, FRAMESAMPLES/2); in WebRtcIsacfix_Time2Spec() 142 yrQ16 = WebRtcSpl_MaxAbsValueW32(tmpimQ16, FRAMESAMPLES/2); in WebRtcIsacfix_Time2Spec() 153 for (k=0; k<FRAMESAMPLES/2; k++) { in WebRtcIsacfix_Time2Spec() 159 for (k=0; k<FRAMESAMPLES/2; k++) { in WebRtcIsacfix_Time2Spec() [all …]
|
D | decode.c | 42 WebRtc_Word16 Vector_Word16_1[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodeImpl() 43 WebRtc_Word16 Vector_Word16_2[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodeImpl() 45 WebRtc_Word32 Vector_Word32_1[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodeImpl() 46 WebRtc_Word32 Vector_Word32_2[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodeImpl() 115 for (k=0; k<FRAMESAMPLES/2; k++) { in WebRtcIsacfix_DecodeImpl() 162 …WEBRTC_SPL_MEMCPY_W16( (ISACdec_obj->plcstr_obj).prevPitchInvIn, Vector_Word16_1, FRAMESAMPLES/2 ); in WebRtcIsacfix_DecodeImpl() 172 …CPY_W16( (ISACdec_obj->plcstr_obj).prevPitchInvOut, &(Vector_Word16_2[FRAMESAMPLES/2 - (PITCH_MAX_… in WebRtcIsacfix_DecodeImpl() 182 for (k = 0; k < FRAMESAMPLES/2; k++) in WebRtcIsacfix_DecodeImpl() 193 for (k = 0; k < FRAMESAMPLES/2; k++) in WebRtcIsacfix_DecodeImpl() 197 … (ISACdec_obj->plcstr_obj).prevHP[k] = Vector_Word32_1[FRAMESAMPLES/2 - (PITCH_MAX_LAG + 10) + k]; in WebRtcIsacfix_DecodeImpl() [all …]
|
D | entropy_coding.c | 136 WebRtc_Word32 summ[FRAMESAMPLES/8]; in CalcCorrelation() 137 WebRtc_Word32 diff[FRAMESAMPLES/8]; in CalcCorrelation() 141 for (k = 0; k < FRAMESAMPLES/8; k++) { in CalcCorrelation() 142 summ[k] = WEBRTC_SPL_RSHIFT_W32(PSpecQ12[k] + PSpecQ12[FRAMESAMPLES/4-1 - k] + 16, 5); in CalcCorrelation() 143 diff[k] = WEBRTC_SPL_RSHIFT_W32(PSpecQ12[k] - PSpecQ12[FRAMESAMPLES/4-1 - k] + 16, 5); in CalcCorrelation() 147 for (n = 0; n < FRAMESAMPLES/8; n++) in CalcCorrelation() 153 for (n = 0; n < FRAMESAMPLES/8; n++) in CalcCorrelation() 160 for (n = 0; n < FRAMESAMPLES/8; n++) in CalcCorrelation() 174 WebRtc_Word32 diffQ16[FRAMESAMPLES/8]; in CalcInvArSpec() 204 for (n = 0; n < FRAMESAMPLES/8; n++) in CalcInvArSpec() [all …]
|
D | structs.h | 150 WebRtc_Word16 prevPitchInvIn[FRAMESAMPLES/2]; 294 WebRtc_Word16 fre[FRAMESAMPLES]; 295 WebRtc_Word16 fim[FRAMESAMPLES]; 315 WebRtc_Word16 data_buffer_fix[FRAMESAMPLES]; // the size was MAX_FRAMESAMPLES
|
D | isacfix.c | 871 WebRtc_Word16 dummy[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodeNb() 909 memset(decoded, 0, sizeof(WebRtc_Word16) * FRAMESAMPLES); in WebRtcIsacfix_DecodeNb() 931 if (number_of_samples>FRAMESAMPLES) { in WebRtcIsacfix_DecodeNb() 932 WebRtcIsacfix_SplitAndFilter2(decoded + FRAMESAMPLES, decoded + FRAMESAMPLES/2, in WebRtcIsacfix_DecodeNb() 967 WebRtc_Word16 outframeNB[FRAMESAMPLES]; in WebRtcIsacfix_DecodePlcNb() 968 WebRtc_Word16 outframeWB[FRAMESAMPLES]; in WebRtcIsacfix_DecodePlcNb() 969 WebRtc_Word16 dummy[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodePlcNb()
|
D | encode.c | 45 WebRtc_Word16 LPandHP[FRAMESAMPLES/2 + QLOOKAHEAD]; in WebRtcIsacfix_EncodeImpl() 46 WebRtc_Word16 LP16a[FRAMESAMPLES/2 + QLOOKAHEAD]; in WebRtcIsacfix_EncodeImpl() 47 WebRtc_Word16 HP16a[FRAMESAMPLES/2 + QLOOKAHEAD]; in WebRtcIsacfix_EncodeImpl() 501 WebRtc_Word16 tmp_fre[FRAMESAMPLES]; in WebRtcIsacfix_EncodeStoredData() 502 WebRtc_Word16 tmp_fim[FRAMESAMPLES]; in WebRtcIsacfix_EncodeStoredData()
|
D | settings.h | 37 #define FRAMESAMPLES 480 /* ((FRAMESIZE*FS)/1000) */ macro
|
D | initialize.c | 164 WebRtcSpl_ZerosArrayW16(State->prevPitchInvIn, FRAMESAMPLES/2); in WebRtcIsacfix_InitPlc()
|
D | lpc_masking_model.c | 381 for (k = QLOOKAHEAD/2; k < (FRAMESAMPLES/4 + QLOOKAHEAD) / 2; k++) { in WebRtcIsacfix_GetVars() 385 for ( ; k < (FRAMESAMPLES/2 + QLOOKAHEAD) / 2; k++) { in WebRtcIsacfix_GetVars() 389 for ( ; k < (WEBRTC_SPL_MUL_16_16(FRAMESAMPLES, 3)/4 + QLOOKAHEAD) / 2; k++) { in WebRtcIsacfix_GetVars() 393 for ( ; k < (FRAMESAMPLES + QLOOKAHEAD) / 2; k++) { in WebRtcIsacfix_GetVars()
|
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
D | filterbanks.c | 91 float tempinoutvec[FRAMESAMPLES+MAX_AR_MODEL_ORDER]; in WebRtcIsac_SplitAndFilterFloat() 92 float tempin_ch1[FRAMESAMPLES+MAX_AR_MODEL_ORDER]; in WebRtcIsac_SplitAndFilterFloat() 93 float tempin_ch2[FRAMESAMPLES+MAX_AR_MODEL_ORDER]; in WebRtcIsac_SplitAndFilterFloat() 94 float in[FRAMESAMPLES]; in WebRtcIsac_SplitAndFilterFloat() 100 for (k=0;k<FRAMESAMPLES;k++) { in WebRtcIsac_SplitAndFilterFloat() 128 tempinoutvec[k] = in[FRAMESAMPLES-1-2*k]; in WebRtcIsac_SplitAndFilterFloat() 160 prefiltdata->INLABUF1_float[k]=in[FRAMESAMPLES-1-2*k]; in WebRtcIsac_SplitAndFilterFloat() 170 tempinoutvec[k] = in[FRAMESAMPLES-2-2*k]; in WebRtcIsac_SplitAndFilterFloat() 191 prefiltdata->INLABUF2_float[k]=in[FRAMESAMPLES-2-2*k]; in WebRtcIsac_SplitAndFilterFloat() 293 float tempin_ch1[FRAMESAMPLES+MAX_AR_MODEL_ORDER]; in WebRtcIsac_FilterAndCombineFloat() [all …]
|
D | entropy_coding.c | 59 WebRtc_Word32 summ[FRAMESAMPLES / 8]; in FindCorrelation() 60 WebRtc_Word32 diff[FRAMESAMPLES / 8]; in FindCorrelation() 65 for (k = 0; k < FRAMESAMPLES / 8; k++) { in FindCorrelation() 71 for (n = 0; n < FRAMESAMPLES / 8; n++) { in FindCorrelation() 79 for (n = 0; n < FRAMESAMPLES / 8; n++) in FindCorrelation() 87 for (n = 0; n < FRAMESAMPLES / 8; n++) in FindCorrelation() 100 WebRtc_Word32 diffQ16[FRAMESAMPLES / 8]; in FindInvArSpec() 134 for (n = 0; n < FRAMESAMPLES / 8; n++) { in FindInvArSpec() 138 for (n = 0; n < FRAMESAMPLES / 8; n++) { in FindInvArSpec() 157 for (n = 0; n < FRAMESAMPLES / 8; n++) { in FindInvArSpec() [all …]
|
D | encode.c | 234 if (ISACencLB_obj->buffer_index + FRAMESAMPLES_10ms != FRAMESAMPLES) { in WebRtcIsac_EncodeLb() 653 double LP_lookahead[FRAMESAMPLES]; in WebRtcIsac_EncodeUb16() 678 if (ISACencUB_obj->buffer_index + FRAMESAMPLES_10ms < FRAMESAMPLES) { in WebRtcIsac_EncodeUb16() 700 s2nr = WebRtcIsac_GetSnr(ISACencUB_obj->bottleneck, FRAMESAMPLES); in WebRtcIsac_EncodeUb16() 704 for (k = 0; k < FRAMESAMPLES; k++) { in WebRtcIsac_EncodeUb16() 795 &ISACencUB_obj->data_buffer_float[FRAMESAMPLES], in WebRtcIsac_EncodeUb16() 870 if (ISACencUB_obj->buffer_index + FRAMESAMPLES_10ms < FRAMESAMPLES) { in WebRtcIsac_EncodeUb12() 894 s2nr = WebRtcIsac_GetSnr(ISACencUB_obj->bottleneck, FRAMESAMPLES); in WebRtcIsac_EncodeUb12() 1020 WebRtc_Word16 tmp_fre[FRAMESAMPLES], tmp_fim[FRAMESAMPLES]; in WebRtcIsac_EncodeStoredDataLb()
|
D | lpc_analysis.c | 132 for ( ; k < (FRAMESAMPLES*3/4 + QLOOKAHEAD) / 2; k++) { in WebRtcIsac_GetVars() 136 for ( ; k < (FRAMESAMPLES + QLOOKAHEAD) / 2; k++) { in WebRtcIsac_GetVars() 184 for ( ; k < (FRAMESAMPLES*3/4) / 2; k++) { in WebRtcIsac_GetVarsUB() 188 for ( ; k < (FRAMESAMPLES) / 2; k++) { in WebRtcIsac_GetVarsUB()
|
D | structs.h | 287 WebRtc_Word16 fre[FRAMESAMPLES]; 288 WebRtc_Word16 fim[FRAMESAMPLES];
|
D | settings.h | 39 #define FRAMESAMPLES 480 /* ((FRAMESIZE*FS)/1000) */ macro
|
D | isac.c | 646 if (instLB->ISACencLB_obj.current_framesamples == FRAMESAMPLES) { in WebRtcIsac_Encode() 829 gain1 = WebRtcIsac_GetSnr(rateUB, FRAMESAMPLES); in WebRtcIsac_GetNewBitStream() 832 FRAMESAMPLES); in WebRtcIsac_GetNewBitStream() 1157 if (numSamplesLB > FRAMESAMPLES) { in Decode() 1253 numSamplesUB = FRAMESAMPLES; in Decode() 2230 instLB->ISACencLB_obj.new_framelength = FRAMESAMPLES; in WebRtcIsac_SetEncSampRate()
|
D | decode.c | 170 signal_out + frame_nb * FRAMESAMPLES, in WebRtcIsac_DecodeLb()
|