Home
last modified time | relevance | path

Searched refs:FRAMESAMPLES_HALF (Results 1 – 11 of 11) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Dtransform.c21 fact = PI / (FRAMESAMPLES_HALF); in WebRtcIsac_InitTransform()
23 for (k = 0; k < FRAMESAMPLES_HALF; k++) { in WebRtcIsac_InitTransform()
29 fact = PI * ((double) (FRAMESAMPLES_HALF - 1)) / ((double) FRAMESAMPLES_HALF); in WebRtcIsac_InitTransform()
47 double tmpre[FRAMESAMPLES_HALF], tmpim[FRAMESAMPLES_HALF]; in WebRtcIsac_Time2Spec()
50 dims[0] = FRAMESAMPLES_HALF; in WebRtcIsac_Time2Spec()
54 fact = 0.5 / sqrt(FRAMESAMPLES_HALF); in WebRtcIsac_Time2Spec()
55 for (k = 0; k < FRAMESAMPLES_HALF; k++) { in WebRtcIsac_Time2Spec()
68 xr = tmpre[k] + tmpre[FRAMESAMPLES_HALF - 1 - k]; in WebRtcIsac_Time2Spec()
69 yi = -tmpre[k] + tmpre[FRAMESAMPLES_HALF - 1 - k]; in WebRtcIsac_Time2Spec()
70 xi = tmpim[k] - tmpim[FRAMESAMPLES_HALF - 1 - k]; in WebRtcIsac_Time2Spec()
[all …]
Ddecode.c46 float LP_dec_float[FRAMESAMPLES_HALF]; in WebRtcIsac_DecodeLb()
47 float HP_dec_float[FRAMESAMPLES_HALF]; in WebRtcIsac_DecodeLb()
49 double LPw[FRAMESAMPLES_HALF]; in WebRtcIsac_DecodeLb()
50 double HPw[FRAMESAMPLES_HALF]; in WebRtcIsac_DecodeLb()
51 double LPw_pf[FRAMESAMPLES_HALF]; in WebRtcIsac_DecodeLb()
56 double real_f[FRAMESAMPLES_HALF]; in WebRtcIsac_DecodeLb()
57 double imag_f[FRAMESAMPLES_HALF]; in WebRtcIsac_DecodeLb()
147 for (k = 0; k < FRAMESAMPLES_HALF; k++) { in WebRtcIsac_DecodeLb()
153 for (k = 0; k < FRAMESAMPLES_HALF; k++) { in WebRtcIsac_DecodeLb()
190 double halfFrameFirst[FRAMESAMPLES_HALF]; in WebRtcIsac_DecodeUb16()
[all …]
Dfilterbanks.c127 for (k=0;k<FRAMESAMPLES_HALF;k++) { in WebRtcIsac_SplitAndFilterFloat()
133FRAMESAMPLES_HALF, NUMBEROFCOMPOSITEAPSECTIONS, CompositeAPFilterState); in WebRtcIsac_SplitAndFilterFloat()
137 for (k=0;k<FRAMESAMPLES_HALF;k++) { in WebRtcIsac_SplitAndFilterFloat()
138 tempin_ch1[FRAMESAMPLES_HALF+QLOOKAHEAD-1-k] = tempinoutvec[k]; in WebRtcIsac_SplitAndFilterFloat()
169 for (k=0;k<FRAMESAMPLES_HALF;k++) { in WebRtcIsac_SplitAndFilterFloat()
174FRAMESAMPLES_HALF, NUMBEROFCOMPOSITEAPSECTIONS, CompositeAPFilterState); in WebRtcIsac_SplitAndFilterFloat()
176 for (k=0;k<FRAMESAMPLES_HALF;k++) { in WebRtcIsac_SplitAndFilterFloat()
177 tempin_ch2[FRAMESAMPLES_HALF+QLOOKAHEAD-1-k] = tempinoutvec[k]; in WebRtcIsac_SplitAndFilterFloat()
218FRAMESAMPLES_HALF, NUMBEROFCHANNELAPSECTIONS, prefiltdata->INSTAT1_float); in WebRtcIsac_SplitAndFilterFloat()
220FRAMESAMPLES_HALF, NUMBEROFCHANNELAPSECTIONS, prefiltdata->INSTAT2_float); in WebRtcIsac_SplitAndFilterFloat()
[all …]
Dencode.c191 float LP[FRAMESAMPLES_HALF]; in WebRtcIsac_EncodeLb()
192 float HP[FRAMESAMPLES_HALF]; in WebRtcIsac_EncodeLb()
194 double LP_lookahead[FRAMESAMPLES_HALF]; in WebRtcIsac_EncodeLb()
195 double HP_lookahead[FRAMESAMPLES_HALF]; in WebRtcIsac_EncodeLb()
196 double LP_lookahead_pf[FRAMESAMPLES_HALF + QLOOKAHEAD]; in WebRtcIsac_EncodeLb()
197 double LPw[FRAMESAMPLES_HALF]; in WebRtcIsac_EncodeLb()
199 double HPw[FRAMESAMPLES_HALF]; in WebRtcIsac_EncodeLb()
200 double LPw_pf[FRAMESAMPLES_HALF]; in WebRtcIsac_EncodeLb()
201 int16_t fre[FRAMESAMPLES_HALF]; /* Q7 */ in WebRtcIsac_EncodeLb()
202 int16_t fim[FRAMESAMPLES_HALF]; /* Q7 */ in WebRtcIsac_EncodeLb()
[all …]
Dstructs.h307 int16_t realFFT[FRAMESAMPLES_HALF];
308 int16_t imagFFT[FRAMESAMPLES_HALF];
439 double costab1[FRAMESAMPLES_HALF];
440 double sintab1[FRAMESAMPLES_HALF];
Dsettings.h40 #define FRAMESAMPLES_HALF 240 macro
113 #define PITCH_FRAME_LEN (FRAMESAMPLES_HALF) /* 30 ms */
Dlpc_analysis.c128 for ( ; k < (FRAMESAMPLES_HALF + QLOOKAHEAD) / 2; k++) { in WebRtcIsac_GetVars()
180 for ( ; k < (FRAMESAMPLES_HALF) / 2; k++) { in WebRtcIsac_GetVarsUB()
418 WebRtcIsac_GetVarsUB(&inSignal[FRAMESAMPLES_HALF], in WebRtcIsac_GetLpcCoefUb()
Dentropy_coding.c291 num_dft_coeff = FRAMESAMPLES_HALF; in WebRtcIsac_DecodeSpec()
357 for (k = 0, i = 0; k < FRAMESAMPLES_HALF; k += 4) { in WebRtcIsac_DecodeSpec()
379 fr[(FRAMESAMPLES_HALF) - 1 - i] = (double)data[k + 2] / 128.0; in WebRtcIsac_DecodeSpec()
380 fi[(FRAMESAMPLES_HALF) - 1 - i] = (double)data[k + 3] / 128.0; in WebRtcIsac_DecodeSpec()
422 num_dft_coeff = FRAMESAMPLES_HALF; in WebRtcIsac_EncodeSpec()
451 for (k = 0, j = 0; k < FRAMESAMPLES_HALF; k += 4) { in WebRtcIsac_EncodeSpec()
484 val = ((fr[(FRAMESAMPLES_HALF) - 1 - j] + ditherQ7[k + 2] + 64) & in WebRtcIsac_EncodeSpec()
489 val = ((fi[(FRAMESAMPLES_HALF) - 1 - j] + ditherQ7[k + 3] + 64) & in WebRtcIsac_EncodeSpec()
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/
Ddecode_plc.c244 int16_t Vector_Word16_Extended_1[FRAMESAMPLES_HALF + NOISE_FILTER_LEN]; in WebRtcIsacfix_DecodePlcImpl()
246 int16_t Vector_Word16_Extended_2[FRAMESAMPLES_HALF + NOISE_FILTER_LEN]; in WebRtcIsacfix_DecodePlcImpl()
248 int32_t Vector_Word32_1[FRAMESAMPLES_HALF]; in WebRtcIsacfix_DecodePlcImpl()
249 int32_t Vector_Word32_2[FRAMESAMPLES_HALF]; in WebRtcIsacfix_DecodePlcImpl()
314 &((ISACdec_obj->plcstr_obj).prevPitchInvIn[FRAMESAMPLES_HALF - lag0]); in WebRtcIsacfix_DecodePlcImpl()
317 if ((FRAMESAMPLES_HALF - 10) > 2 * lag0) in WebRtcIsacfix_DecodePlcImpl()
329 FRAMESAMPLES_HALF - 2*lag0 - 10 + i + k ] ) ) ); in WebRtcIsacfix_DecodePlcImpl()
339 FRAMESAMPLES_HALF - lag0*2 - 10 + minIdx] ); in WebRtcIsacfix_DecodePlcImpl()
349 &(ISACdec_obj->plcstr_obj).prevPitchInvIn[FRAMESAMPLES_HALF - lag0], in WebRtcIsacfix_DecodePlcImpl()
465 for( i = 0; i < FRAMESAMPLES_HALF; i++ ) in WebRtcIsacfix_DecodePlcImpl()
[all …]
Dencode.c243 for (k = 0; k < FRAMESAMPLES_HALF; k++) { in WebRtcIsacfix_EncodeImpl()
244 …(ISACenc_obj->SaveEnc_ptr)->fre[k + (ISACenc_obj->SaveEnc_ptr)->startIdx*FRAMESAMPLES_HALF] = LP16… in WebRtcIsacfix_EncodeImpl()
245 …(ISACenc_obj->SaveEnc_ptr)->fim[k + (ISACenc_obj->SaveEnc_ptr)->startIdx*FRAMESAMPLES_HALF] = LPan… in WebRtcIsacfix_EncodeImpl()
354 for(k = 0; k < FRAMESAMPLES_HALF; k++) in WebRtcIsacfix_EncodeImpl()
363 for(k = 0; k < FRAMESAMPLES_HALF; k++) in WebRtcIsacfix_EncodeImpl()
365 …(ISACenc_obj->SaveEnc_ptr)->fre[k + (ISACenc_obj->SaveEnc_ptr)->startIdx*FRAMESAMPLES_HALF] = LP16… in WebRtcIsacfix_EncodeImpl()
366 …(ISACenc_obj->SaveEnc_ptr)->fim[k + (ISACenc_obj->SaveEnc_ptr)->startIdx*FRAMESAMPLES_HALF] = LPan… in WebRtcIsacfix_EncodeImpl()
553 for (ii = 0; ii < (FRAMESAMPLES_HALF*(1+SaveEnc_str->startIdx)); ii++) { in WebRtcIsacfix_EncodeStoredData()
562 for (ii = 0; ii < (FRAMESAMPLES_HALF*(1+SaveEnc_str->startIdx)); ii++) { in WebRtcIsacfix_EncodeStoredData()
624 … status = WebRtcIsacfix_EncodeSpec(&tmp_fre[ii*FRAMESAMPLES_HALF], &tmp_fim[ii*FRAMESAMPLES_HALF], in WebRtcIsacfix_EncodeStoredData()
Dsettings.h38 #define FRAMESAMPLES_HALF 240 macro