/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/ |
D | transform.c | 24 extern const int16_t WebRtcIsacfix_kCosTab1[FRAMESAMPLES/2]; 26 extern const int16_t WebRtcIsacfix_kSinTab1[FRAMESAMPLES/2]; 28 extern const int16_t WebRtcIsacfix_kSinTab2[FRAMESAMPLES/4]; 37 int32_t tmpreQ16[FRAMESAMPLES/2], tmpimQ16[FRAMESAMPLES/2]; in WebRtcIsacfix_Time2SpecC() 45 for (k = 0; k < FRAMESAMPLES/2; k++) { in WebRtcIsacfix_Time2SpecC() 56 xrQ16 = WebRtcSpl_MaxAbsValueW32(tmpreQ16, FRAMESAMPLES/2); in WebRtcIsacfix_Time2SpecC() 57 yrQ16 = WebRtcSpl_MaxAbsValueW32(tmpimQ16, FRAMESAMPLES/2); in WebRtcIsacfix_Time2SpecC() 68 for (k=0; k<FRAMESAMPLES/2; k++) { in WebRtcIsacfix_Time2SpecC() 74 for (k=0; k<FRAMESAMPLES/2; k++) { in WebRtcIsacfix_Time2SpecC() 85 for (k=0; k<FRAMESAMPLES/2; k++) { in WebRtcIsacfix_Time2SpecC() [all …]
|
D | filterbanks.c | 169 int16_t tempin_ch1[FRAMESAMPLES/2 + QLOOKAHEAD]; in WebRtcIsacfix_SplitAndFilter1() 170 int16_t tempin_ch2[FRAMESAMPLES/2 + QLOOKAHEAD]; in WebRtcIsacfix_SplitAndFilter1() 175 …WebRtcIsacfix_HighpassFilterFixDec32(pin, FRAMESAMPLES, WebRtcIsacfix_kHpStCoeffInQ30, prefiltdata… in WebRtcIsacfix_SplitAndFilter1() 179 for (k=0;k<FRAMESAMPLES/2;k++) { in WebRtcIsacfix_SplitAndFilter1() 184 prefiltdata->INLABUF1_fix[k] = pin[FRAMESAMPLES + 1 - 2 * (QLOOKAHEAD - k)]; in WebRtcIsacfix_SplitAndFilter1() 189 for (k=0;k<FRAMESAMPLES/2;k++) { in WebRtcIsacfix_SplitAndFilter1() 194 prefiltdata->INLABUF2_fix[k] = pin[FRAMESAMPLES - 2 * (QLOOKAHEAD - k)]; in WebRtcIsacfix_SplitAndFilter1() 205 FRAMESAMPLES/2, in WebRtcIsacfix_SplitAndFilter1() 213 WebRtcIsacfix_AllpassFilter2FixDec16(tempin_ch1 + FRAMESAMPLES/2, in WebRtcIsacfix_SplitAndFilter1() 214 tempin_ch2 + FRAMESAMPLES/2, in WebRtcIsacfix_SplitAndFilter1() [all …]
|
D | transform_mips.c | 16 extern const int16_t WebRtcIsacfix_kCosTab1[FRAMESAMPLES/2]; 17 extern const int16_t WebRtcIsacfix_kSinTab1[FRAMESAMPLES/2]; 18 extern const int16_t WebRtcIsacfix_kCosTab2[FRAMESAMPLES/4]; 19 extern const int16_t WebRtcIsacfix_kSinTab2[FRAMESAMPLES/4]; 28 int k = FRAMESAMPLES / 2; in WebRtcIsacfix_Time2SpecMIPS() 29 int32_t tmpreQ16[FRAMESAMPLES / 2], tmpimQ16[FRAMESAMPLES / 2]; in WebRtcIsacfix_Time2SpecMIPS() 209 k = FRAMESAMPLES / 4; in WebRtcIsacfix_Time2SpecMIPS() 298 k = FRAMESAMPLES / 4; in WebRtcIsacfix_Time2SpecMIPS() 299 factor = FRAMESAMPLES - 2; // offset for FRAMESAMPLES / 2 - 1 array member in WebRtcIsacfix_Time2SpecMIPS() 602 int k = FRAMESAMPLES / 4; in WebRtcIsacfix_Spec2TimeMIPS() [all …]
|
D | decode.c | 42 int16_t Vector_Word16_1[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodeImpl() 43 int16_t Vector_Word16_2[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodeImpl() 45 int32_t Vector_Word32_1[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodeImpl() 46 int32_t Vector_Word32_2[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodeImpl() 115 for (k=0; k<FRAMESAMPLES/2; k++) { in WebRtcIsacfix_DecodeImpl() 164 …WEBRTC_SPL_MEMCPY_W16( (ISACdec_obj->plcstr_obj).prevPitchInvIn, Vector_Word16_1, FRAMESAMPLES/2 ); in WebRtcIsacfix_DecodeImpl() 174 …CPY_W16( (ISACdec_obj->plcstr_obj).prevPitchInvOut, &(Vector_Word16_2[FRAMESAMPLES/2 - (PITCH_MAX_… in WebRtcIsacfix_DecodeImpl() 183 for (k = 0; k < FRAMESAMPLES/2; k++) in WebRtcIsacfix_DecodeImpl() 194 for (k = 0; k < FRAMESAMPLES/2; k++) in WebRtcIsacfix_DecodeImpl() 198 … (ISACdec_obj->plcstr_obj).prevHP[k] = Vector_Word32_1[FRAMESAMPLES/2 - (PITCH_MAX_LAG + 10) + k]; in WebRtcIsacfix_DecodeImpl() [all …]
|
D | transform_neon.c | 19 extern const int16_t WebRtcIsacfix_kCosTab1[FRAMESAMPLES/2]; 21 extern const int16_t WebRtcIsacfix_kSinTab1[FRAMESAMPLES/2]; 23 extern const int16_t WebRtcIsacfix_kSinTab2[FRAMESAMPLES/4]; 39 for (k = 0; k < FRAMESAMPLES/2; k += 8) { in ComplexMulAndFindMaxNeon() 111 for (k = 0; k < FRAMESAMPLES/2; k += 16) { in PreShiftW32toW16Neon() 148 int16_t* inre2 = &inre[FRAMESAMPLES/2 - 4]; in PostShiftAndSeparateNeon() 150 int16_t* inim2 = &inim[FRAMESAMPLES/2 - 4]; in PostShiftAndSeparateNeon() 152 int16_t* outre2 = &outre[FRAMESAMPLES/2 - 4]; in PostShiftAndSeparateNeon() 154 int16_t* outim2 = &outim[FRAMESAMPLES/2 - 4]; in PostShiftAndSeparateNeon() 156 const int16_t* kSinTab2 = &WebRtcIsacfix_kSinTab2[FRAMESAMPLES/4 -4]; in PostShiftAndSeparateNeon() [all …]
|
D | transform_tables.c | 20 const int16_t WebRtcIsacfix_kCosTab1[FRAMESAMPLES/2] = { 49 const int16_t WebRtcIsacfix_kSinTab1[FRAMESAMPLES/2] = { 78 const int16_t WebRtcIsacfix_kSinTab2[FRAMESAMPLES/4] = { 95 const int16_t WebRtcIsacfix_kCosTab2[FRAMESAMPLES/4] = {
|
D | entropy_coding.c | 161 int32_t summ[FRAMESAMPLES/8]; in CalcCorrelation() 162 int32_t diff[FRAMESAMPLES/8]; in CalcCorrelation() 166 for (k = 0; k < FRAMESAMPLES/8; k++) { in CalcCorrelation() 167 summ[k] = (PSpecQ12[k] + PSpecQ12[FRAMESAMPLES / 4 - 1 - k] + 16) >> 5; in CalcCorrelation() 168 diff[k] = (PSpecQ12[k] - PSpecQ12[FRAMESAMPLES / 4 - 1 - k] + 16) >> 5; in CalcCorrelation() 172 for (n = 0; n < FRAMESAMPLES/8; n++) in CalcCorrelation() 178 for (n = 0; n < FRAMESAMPLES/8; n++) in CalcCorrelation() 185 for (n = 0; n < FRAMESAMPLES/8; n++) in CalcCorrelation() 199 int32_t diffQ16[FRAMESAMPLES/8]; in CalcInvArSpec() 229 for (n = 0; n < FRAMESAMPLES/8; n++) in CalcInvArSpec() [all …]
|
D | structs.h | 152 int16_t prevPitchInvIn[FRAMESAMPLES/2]; 294 int16_t fre[FRAMESAMPLES]; 295 int16_t fim[FRAMESAMPLES]; 315 int16_t data_buffer_fix[FRAMESAMPLES]; // the size was MAX_FRAMESAMPLES
|
D | isacfix.c | 876 int16_t dummy[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodeNb() 910 memset(decoded, 0, sizeof(int16_t) * FRAMESAMPLES); in WebRtcIsacfix_DecodeNb() 937 if (number_of_samples>FRAMESAMPLES) { in WebRtcIsacfix_DecodeNb() 938 WebRtcIsacfix_SplitAndFilter2(decoded + FRAMESAMPLES, decoded + FRAMESAMPLES/2, in WebRtcIsacfix_DecodeNb() 972 int16_t outframeNB[FRAMESAMPLES]; in WebRtcIsacfix_DecodePlcNb() 973 int16_t outframeWB[FRAMESAMPLES]; in WebRtcIsacfix_DecodePlcNb() 974 int16_t dummy[FRAMESAMPLES/2]; in WebRtcIsacfix_DecodePlcNb()
|
D | encode.c | 48 int16_t LPandHP[FRAMESAMPLES/2 + QLOOKAHEAD]; in WebRtcIsacfix_EncodeImpl() 49 int16_t LP16a[FRAMESAMPLES/2 + QLOOKAHEAD]; in WebRtcIsacfix_EncodeImpl() 50 int16_t HP16a[FRAMESAMPLES/2 + QLOOKAHEAD]; in WebRtcIsacfix_EncodeImpl() 510 int16_t tmp_fre[FRAMESAMPLES]; in WebRtcIsacfix_EncodeStoredData() 511 int16_t tmp_fim[FRAMESAMPLES]; in WebRtcIsacfix_EncodeStoredData()
|
D | settings.h | 37 #define FRAMESAMPLES 480 /* ((FRAMESIZE*FS)/1000) */ macro
|
D | transform_unittest.cc | 14 static const int kSamples = FRAMESAMPLES/2;
|
D | lpc_masking_model.c | 369 for (k = QLOOKAHEAD/2; k < (FRAMESAMPLES/4 + QLOOKAHEAD) / 2; k++) { in WebRtcIsacfix_GetVars() 373 for ( ; k < (FRAMESAMPLES/2 + QLOOKAHEAD) / 2; k++) { in WebRtcIsacfix_GetVars() 377 for ( ; k < (FRAMESAMPLES * 3 / 4 + QLOOKAHEAD) / 2; k++) { in WebRtcIsacfix_GetVars() 381 for ( ; k < (FRAMESAMPLES + QLOOKAHEAD) / 2; k++) { in WebRtcIsacfix_GetVars()
|
D | initialize.c | 162 WebRtcSpl_ZerosArrayW16(State->prevPitchInvIn, FRAMESAMPLES/2); in WebRtcIsacfix_InitPlc()
|
/external/webrtc/webrtc/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 int32_t summ[FRAMESAMPLES / 8]; in FindCorrelation() 60 int32_t 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 int32_t diffQ16[FRAMESAMPLES / 8]; in FindInvArSpec() 132 for (n = 0; n < FRAMESAMPLES / 8; n++) { in FindInvArSpec() 136 for (n = 0; n < FRAMESAMPLES / 8; n++) { in FindInvArSpec() 154 for (n = 0; n < FRAMESAMPLES / 8; n++) { in FindInvArSpec() [all …]
|
D | encode.c | 235 if (ISACencLB_obj->buffer_index + FRAMESAMPLES_10ms != FRAMESAMPLES) { in WebRtcIsac_EncodeLb() 656 double LP_lookahead[FRAMESAMPLES]; in WebRtcIsac_EncodeUb16() 681 if (ISACencUB_obj->buffer_index + FRAMESAMPLES_10ms < FRAMESAMPLES) { in WebRtcIsac_EncodeUb16() 703 s2nr = WebRtcIsac_GetSnr(ISACencUB_obj->bottleneck, FRAMESAMPLES); in WebRtcIsac_EncodeUb16() 707 for (k = 0; k < FRAMESAMPLES; k++) { in WebRtcIsac_EncodeUb16() 799 &ISACencUB_obj->data_buffer_float[FRAMESAMPLES], in WebRtcIsac_EncodeUb16() 875 if (ISACencUB_obj->buffer_index + FRAMESAMPLES_10ms < FRAMESAMPLES) { in WebRtcIsac_EncodeUb12() 899 s2nr = WebRtcIsac_GetSnr(ISACencUB_obj->bottleneck, FRAMESAMPLES); in WebRtcIsac_EncodeUb12() 1026 int16_t 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 | 289 int16_t fre[FRAMESAMPLES]; 290 int16_t fim[FRAMESAMPLES];
|
D | settings.h | 39 #define FRAMESAMPLES 480 /* ((FRAMESIZE*FS)/1000) */ macro
|
D | isac.c | 658 if (instLB->ISACencLB_obj.current_framesamples == FRAMESAMPLES) { in WebRtcIsac_Encode() 839 gain1 = WebRtcIsac_GetSnr(rateUB, FRAMESAMPLES); in WebRtcIsac_GetNewBitStream() 842 FRAMESAMPLES); in WebRtcIsac_GetNewBitStream() 1170 if (numSamplesLB > FRAMESAMPLES) { in Decode() 1266 numSamplesUB = FRAMESAMPLES; in Decode() 2254 instLB->ISACencLB_obj.new_framelength = FRAMESAMPLES; in WebRtcIsac_SetEncSampRate()
|
D | decode.c | 171 signal_out + frame_nb * FRAMESAMPLES, in WebRtcIsac_DecodeLb()
|