Lines Matching refs:sig_inObj
42 static void gen_hann2(sig_innerobj_t *sig_inObj);
43 static void get_simple_excitation(sig_innerobj_t *sig_inObj,
45 static void enh_wind_init(sig_innerobj_t *sig_inObj);
46 static void init_rand(sig_innerobj_t *sig_inObj);
62 pico_status_t sigAllocate(picoos_MemoryManager mm, sig_innerobj_t *sig_inObj) in sigAllocate() argument
68 sig_inObj->int_vec22 = in sigAllocate()
69 sig_inObj->int_vec23 = in sigAllocate()
70 sig_inObj->int_vec24 = in sigAllocate()
71 sig_inObj->int_vec25 = in sigAllocate()
72 sig_inObj->int_vec26 = in sigAllocate()
73 sig_inObj->int_vec28 = in sigAllocate()
74 sig_inObj->int_vec29 = in sigAllocate()
75 sig_inObj->int_vec30 = in sigAllocate()
76 sig_inObj->int_vec31 = in sigAllocate()
77 sig_inObj->int_vec32 = in sigAllocate()
78 sig_inObj->int_vec33 = in sigAllocate()
79 sig_inObj->int_vec34 = in sigAllocate()
80 sig_inObj->int_vec35 = in sigAllocate()
81 sig_inObj->int_vec36 = in sigAllocate()
82 sig_inObj->int_vec37 = in sigAllocate()
83 sig_inObj->int_vec38 = in sigAllocate()
84 sig_inObj->int_vec39 = in sigAllocate()
85 sig_inObj->int_vec40 = NULL; in sigAllocate()
87 sig_inObj->sig_vec1 = NULL; in sigAllocate()
89 sig_inObj->idx_vect1 = sig_inObj->idx_vect2 = sig_inObj->idx_vect4 = NULL; in sigAllocate()
90 sig_inObj->idx_vect5 = sig_inObj->idx_vect6 = sig_inObj->idx_vect7 = in sigAllocate()
91 sig_inObj->idx_vect8 = sig_inObj->idx_vect9 = NULL; in sigAllocate()
92 sig_inObj->ivalue17 = sig_inObj->ivalue18 = 0; in sigAllocate()
102 sigDeallocate(mm, sig_inObj); in sigAllocate()
105 sig_inObj->idx_vect1 = data_i; in sigAllocate()
110 sigDeallocate(mm, sig_inObj); in sigAllocate()
113 sig_inObj->idx_vect2 = data_i; in sigAllocate()
118 sigDeallocate(mm, sig_inObj); in sigAllocate()
121 sig_inObj->idx_vect4 = data_i; in sigAllocate()
126 sigDeallocate(mm, sig_inObj); in sigAllocate()
129 sig_inObj->idx_vect5 = data_i; in sigAllocate()
134 sigDeallocate(mm, sig_inObj); in sigAllocate()
137 sig_inObj->idx_vect6 = data_i; in sigAllocate()
142 sigDeallocate(mm, sig_inObj); in sigAllocate()
145 sig_inObj->idx_vect7 = data_i; in sigAllocate()
150 sigDeallocate(mm, sig_inObj); in sigAllocate()
153 sig_inObj->idx_vect8 = data_i; in sigAllocate()
158 sigDeallocate(mm, sig_inObj); in sigAllocate()
161 sig_inObj->idx_vect9 = data_i; in sigAllocate()
166 sigDeallocate(mm, sig_inObj); in sigAllocate()
169 sig_inObj->int_vec22 = d32; in sigAllocate()
173 sigDeallocate(mm, sig_inObj); in sigAllocate()
176 sig_inObj->int_vec23 = d32; in sigAllocate()
180 sigDeallocate(mm, sig_inObj); in sigAllocate()
183 sig_inObj->int_vec24 = d32; in sigAllocate()
187 sigDeallocate(mm, sig_inObj); in sigAllocate()
190 sig_inObj->int_vec25 = d32; in sigAllocate()
194 sigDeallocate(mm, sig_inObj); in sigAllocate()
197 sig_inObj->int_vec26 = d32; in sigAllocate()
202 sigDeallocate(mm, sig_inObj); in sigAllocate()
205 sig_inObj->int_vec28 = d32; in sigAllocate()
209 sigDeallocate(mm, sig_inObj); in sigAllocate()
212 sig_inObj->int_vec29 = d32; in sigAllocate()
216 sigDeallocate(mm, sig_inObj); in sigAllocate()
219 sig_inObj->int_vec38 = d32; in sigAllocate()
223 sigDeallocate(mm, sig_inObj); in sigAllocate()
226 sig_inObj->int_vec30 = d32; in sigAllocate()
230 sigDeallocate(mm, sig_inObj); in sigAllocate()
233 sig_inObj->int_vec31 = d32; in sigAllocate()
238 sigDeallocate(mm, sig_inObj); in sigAllocate()
241 sig_inObj->int_vec32 = d32; in sigAllocate()
245 sigDeallocate(mm, sig_inObj); in sigAllocate()
248 sig_inObj->int_vec33 = d32; in sigAllocate()
252 sigDeallocate(mm, sig_inObj); in sigAllocate()
255 sig_inObj->int_vec34 = d32; in sigAllocate()
259 sigDeallocate(mm, sig_inObj); in sigAllocate()
262 sig_inObj->int_vec35 = d32; in sigAllocate()
266 sigDeallocate(mm, sig_inObj); in sigAllocate()
269 sig_inObj->int_vec36 = d32; in sigAllocate()
273 sigDeallocate(mm, sig_inObj); in sigAllocate()
276 sig_inObj->int_vec37 = d32; in sigAllocate()
281 sigDeallocate(mm, sig_inObj); in sigAllocate()
284 sig_inObj->int_vec39 = d32; in sigAllocate()
288 sigDeallocate(mm, sig_inObj); in sigAllocate()
291 sig_inObj->int_vec40 = d32; in sigAllocate()
296 sigDeallocate(mm, sig_inObj); in sigAllocate()
299 sig_inObj->int_vec41[nCount] = d32; in sigAllocate()
305 sigDeallocate(mm, sig_inObj); in sigAllocate()
308 sig_inObj->int_vec42[nCount] = d32; in sigAllocate()
314 sigDeallocate(mm, sig_inObj); in sigAllocate()
317 sig_inObj->sig_vec1 = d32; in sigAllocate()
330 void sigDeallocate(picoos_MemoryManager mm, sig_innerobj_t *sig_inObj) in sigDeallocate() argument
336 if (NULL != sig_inObj->idx_vect1) in sigDeallocate()
337 picoos_deallocate(mm, (void *) &(sig_inObj->idx_vect1)); in sigDeallocate()
338 if (NULL != sig_inObj->idx_vect2) in sigDeallocate()
339 picoos_deallocate(mm, (void *) &(sig_inObj->idx_vect2)); in sigDeallocate()
340 if (NULL != sig_inObj->idx_vect4) in sigDeallocate()
341 picoos_deallocate(mm, (void *) &(sig_inObj->idx_vect4)); in sigDeallocate()
342 if (NULL != sig_inObj->idx_vect5) in sigDeallocate()
343 picoos_deallocate(mm, (void *) &(sig_inObj->idx_vect5)); in sigDeallocate()
344 if (NULL != sig_inObj->idx_vect6) in sigDeallocate()
345 picoos_deallocate(mm, (void *) &(sig_inObj->idx_vect6)); in sigDeallocate()
346 if (NULL != sig_inObj->idx_vect7) in sigDeallocate()
347 picoos_deallocate(mm, (void *) &(sig_inObj->idx_vect7)); in sigDeallocate()
348 if (NULL != sig_inObj->idx_vect8) in sigDeallocate()
349 picoos_deallocate(mm, (void *) &(sig_inObj->idx_vect8)); in sigDeallocate()
350 if (NULL != sig_inObj->idx_vect9) in sigDeallocate()
351 picoos_deallocate(mm, (void *) &(sig_inObj->idx_vect9)); in sigDeallocate()
353 if (NULL != sig_inObj->int_vec22) in sigDeallocate()
354 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec22)); in sigDeallocate()
355 if (NULL != sig_inObj->int_vec23) in sigDeallocate()
356 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec23)); in sigDeallocate()
357 if (NULL != sig_inObj->int_vec24) in sigDeallocate()
358 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec24)); in sigDeallocate()
359 if (NULL != sig_inObj->int_vec25) in sigDeallocate()
360 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec25)); in sigDeallocate()
361 if (NULL != sig_inObj->int_vec26) in sigDeallocate()
362 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec26)); in sigDeallocate()
363 if (NULL != sig_inObj->int_vec28) in sigDeallocate()
364 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec28)); in sigDeallocate()
365 if (NULL != sig_inObj->int_vec29) in sigDeallocate()
366 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec29)); in sigDeallocate()
367 if (NULL != sig_inObj->int_vec38) in sigDeallocate()
368 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec38)); in sigDeallocate()
369 if (NULL != sig_inObj->int_vec30) in sigDeallocate()
370 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec30)); in sigDeallocate()
371 if (NULL != sig_inObj->int_vec31) in sigDeallocate()
372 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec31)); in sigDeallocate()
373 if (NULL != sig_inObj->int_vec32) in sigDeallocate()
374 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec32)); in sigDeallocate()
375 if (NULL != sig_inObj->int_vec33) in sigDeallocate()
376 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec33)); in sigDeallocate()
377 if (NULL != sig_inObj->int_vec34) in sigDeallocate()
378 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec34)); in sigDeallocate()
379 if (NULL != sig_inObj->int_vec35) in sigDeallocate()
380 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec35)); in sigDeallocate()
381 if (NULL != sig_inObj->int_vec36) in sigDeallocate()
382 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec36)); in sigDeallocate()
383 if (NULL != sig_inObj->int_vec37) in sigDeallocate()
384 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec37)); in sigDeallocate()
385 if (NULL != sig_inObj->int_vec39) in sigDeallocate()
386 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec39)); in sigDeallocate()
387 if (NULL != sig_inObj->int_vec40) in sigDeallocate()
388 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec40)); in sigDeallocate()
391 if (NULL != sig_inObj->int_vec41[nCount]) { in sigDeallocate()
392 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec41[nCount])); in sigDeallocate()
397 if (NULL != sig_inObj->int_vec42[nCount]) { in sigDeallocate()
398 picoos_deallocate(mm, (void *) &(sig_inObj->int_vec42[nCount])); in sigDeallocate()
402 if (NULL != sig_inObj->sig_vec1) { in sigDeallocate()
403 picoos_deallocate(mm, (void *) &(sig_inObj->sig_vec1)); in sigDeallocate()
414 void sigDspInitialize(sig_innerobj_t *sig_inObj, picoos_int32 resetMode) in sigDspInitialize() argument
426 sig_inObj->warp_p = PICODSP_FREQ_WARP_FACT; in sigDspInitialize()
427 …sig_inObj->VCutoff_p = PICODSP_V_CUTOFF_FREQ; /*voicing cut off frequency in Hz (will be modeled i… in sigDspInitialize()
428 …sig_inObj->UVCutoff_p = PICODSP_UV_CUTOFF_FREQ;/*unvoiced frames only (periodize lowest components… in sigDspInitialize()
429 sig_inObj->Fs_p = PICODSP_SAMP_FREQ; /*Sampling freq*/ in sigDspInitialize()
431 sig_inObj->m1_p = PICODSP_CEPORDER; in sigDspInitialize()
432 sig_inObj->m2_p = PICODSP_FFTSIZE; /*also initializes windowLen*/ in sigDspInitialize()
433 sig_inObj->framesz_p = PICODSP_DISPLACE; /*1/4th of the frame size = displacement*/ in sigDspInitialize()
434 sig_inObj->hfftsize_p = PICODSP_H_FFTSIZE; /*half of the FFT size*/ in sigDspInitialize()
435 sig_inObj->voxbnd_p = (picoos_int32) ((picoos_single) sig_inObj->hfftsize_p in sigDspInitialize()
436 / ((picoos_single) sig_inObj->Fs_p / (picoos_single) 2) in sigDspInitialize()
437 * (picoos_single) sig_inObj->VCutoff_p); in sigDspInitialize()
438 sig_inObj->voxbnd2_p in sigDspInitialize()
439 = (picoos_int32) ((picoos_single) sig_inObj->hfftsize_p in sigDspInitialize()
440 / ((picoos_single) sig_inObj->Fs_p / (picoos_single) 2) in sigDspInitialize()
441 * (picoos_single) sig_inObj->UVCutoff_p); in sigDspInitialize()
442 sig_inObj->hop_p = sig_inObj->framesz_p; in sigDspInitialize()
443 sig_inObj->nextPeak_p = (((int) (PICODSP_FFTSIZE)) in sigDspInitialize()
444 / ((int) PICODSP_DISPLACE) - 1) * sig_inObj->hop_p; in sigDspInitialize()
445 sig_inObj->phId_p = 0; /*phonetic id*/ in sigDspInitialize()
446 sig_inObj->E_p = (picoos_single) 0.0f; in sigDspInitialize()
447 sig_inObj->F0_p = (picoos_single) 0.0f; in sigDspInitialize()
448 sig_inObj->voiced_p = 0; in sigDspInitialize()
449 sig_inObj->nV = sig_inObj->nU = 0; in sigDspInitialize()
450 sig_inObj->sMod_p = (picoos_single) 1.0f; in sigDspInitialize()
454 sig_inObj->sig_vec1[i] = 0; in sigDspInitialize()
455 sig_inObj->int_vec26[i] = 0; /*wav buff cleanup */ in sigDspInitialize()
459 sig_inObj->idx_vect1[i] = sig_inObj->idx_vect4[i] in sigDspInitialize()
460 = sig_inObj->idx_vect5[i] = sig_inObj->idx_vect6[i] = 0; in sigDspInitialize()
461 sig_inObj->int_vec32[i] = sig_inObj->int_vec33[i] = 0; in sigDspInitialize()
465 sig_inObj->idx_vect2[i] = (picoos_int16) 0; in sigDspInitialize()
469 sig_inObj->F0Buff[i]=0; in sigDspInitialize()
470 sig_inObj->PhIdBuff[i]=0; in sigDspInitialize()
471 sig_inObj->VoicingBuff[i]=0; in sigDspInitialize()
472 sig_inObj->FuVBuff[i]=0; in sigDspInitialize()
473 if (NULL != sig_inObj->CepBuff[i]) { in sigDspInitialize()
474 pnt = sig_inObj->CepBuff[i]; in sigDspInitialize()
482 if (NULL != sig_inObj->int_vec42[i]) { in sigDspInitialize()
483 pnt = sig_inObj->int_vec42[i]; in sigDspInitialize()
489 sig_inObj->n_available=0; in sigDspInitialize()
496 enh_wind_init(sig_inObj); /*creates the formant enhancement window*/ in sigDspInitialize()
497 init_rand(sig_inObj); in sigDspInitialize()
498 gen_hann2(sig_inObj); in sigDspInitialize()
499 mel_2_lin_init(sig_inObj); in sigDspInitialize()
524 void mel_2_lin_lookup(sig_innerobj_t *sig_inObj, picoos_uint32 scmeanMGC) in mel_2_lin_lookup() argument
537 c1 = sig_inObj->wcep_pI; in mel_2_lin_lookup()
538 m1 = sig_inObj->m1_p; in mel_2_lin_lookup()
542 A = sig_inObj->A_p; in mel_2_lin_lookup()
543 D = sig_inObj->d_p; in mel_2_lin_lookup()
545 XXr = sig_inObj->wcep_pI; in mel_2_lin_lookup()
546 voiced = sig_inObj->voiced_p; in mel_2_lin_lookup()
587 void phase_spec2(sig_innerobj_t *sig_inObj) in phase_spec2() argument
601 spect = sig_inObj->wcep_pI; /* spect_p;*/ in phase_spec2()
603 ang = sig_inObj->ang_p; in phase_spec2()
604 voxbnd = (picoos_int32) (sig_inObj->voxbnd_p * sig_inObj->voicing); in phase_spec2()
605 voxbnd2 = sig_inObj->voxbnd2_p; in phase_spec2()
606 voiced = sig_inObj->voiced_p; in phase_spec2()
607 m2 = sig_inObj->m2_p; in phase_spec2()
614 Pvoxbnd = sig_inObj->VoxBndBuff; in phase_spec2()
616 phs_p2 = sig_inObj->PhsBuff[0]; in phase_spec2()
617 phs_p1 = sig_inObj->PhsBuff[1]; in phase_spec2()
618 phs = sig_inObj->PhsBuff[2]; in phase_spec2()
619 phs_n1 = sig_inObj->PhsBuff[3]; in phase_spec2()
620 phs_n2 = sig_inObj->PhsBuff[4]; in phase_spec2()
654 iRand = sig_inObj->iRand; in phase_spec2()
655 c = sig_inObj->randCosTbl + iRand; in phase_spec2()
656 s = sig_inObj->randSinTbl + iRand; in phase_spec2()
657 co = sig_inObj->outCosTbl + firstUV; in phase_spec2()
658 so = sig_inObj->outSinTbl + firstUV; in phase_spec2()
665 sig_inObj->iRand += (PICODSP_HFFTSIZE_P1 - firstUV); in phase_spec2()
666 if (sig_inObj->iRand > PICODSP_N_RAND_TABLE - PICODSP_HFFTSIZE_P1) in phase_spec2()
667 sig_inObj->iRand = 1 + sig_inObj->iRand + PICODSP_HFFTSIZE_P1 in phase_spec2()
690 void env_spec(sig_innerobj_t *sig_inObj) in env_spec() argument
702 spect = sig_inObj->wcep_pI; /*spect_p*/ in env_spec()
704 ang = sig_inObj->ang_p; in env_spec()
706 Fr = sig_inObj->F2r_p; in env_spec()
707 Fi = sig_inObj->F2i_p; in env_spec()
708 voiced = sig_inObj->voiced_p; in env_spec()
709 prev_voiced = sig_inObj->prevVoiced_p; in env_spec()
710 voxbnd = (picoos_int32) (sig_inObj->voxbnd_p * sig_inObj->voicing); in env_spec()
711 ctbl = sig_inObj->cos_table; in env_spec()
716 if (sig_inObj->F0_p > 120) { in env_spec()
733 co = sig_inObj->outCosTbl + voxbnd; in env_spec()
734 so = sig_inObj->outSinTbl + voxbnd; in env_spec()
745 co = sig_inObj->outCosTbl + 1; in env_spec()
746 so = sig_inObj->outSinTbl + 1; in env_spec()
772 void impulse_response(sig_innerobj_t *sig_inObj) in impulse_response() argument
782 m2 = sig_inObj->m2_p; in impulse_response()
784 Fr = sig_inObj->F2r_p; in impulse_response()
785 Fi = sig_inObj->F2i_p; in impulse_response()
786 norm_window = sig_inObj->norm_window_p; in impulse_response()
787 E = &(sig_inObj->E_p); /*as pointer: value will be modified*/ in impulse_response()
788 voiced = sig_inObj->voiced_p; in impulse_response()
789 fr = sig_inObj->imp_p; in impulse_response()
827 void td_psola2(sig_innerobj_t *sig_inObj) in td_psola2() argument
837 window = sig_inObj->window_p; in td_psola2()
840 hop = sig_inObj->hop_p; in td_psola2()
841 m2 = sig_inObj->m2_p; in td_psola2()
842 nextPeak = &(sig_inObj->nextPeak_p); in td_psola2()
843 voiced = sig_inObj->voiced_p; in td_psola2()
844 fr = sig_inObj->imp_p; in td_psola2()
846 v1 = sig_inObj->sig_vec1; in td_psola2()
855 get_simple_excitation(sig_inObj, nextPeak); in td_psola2()
858 if ((sig_inObj->nU == 0) && (sig_inObj->voiced_p == 1)) { in td_psola2()
860 for (nI = 0; nI < sig_inObj->nV; nI++) { in td_psola2()
861 f = sig_inObj->EnV[nI]; in td_psola2()
864 ff = (f * window[sig_inObj->LocV[nI]]) >> PICODSP_SHIFT_FACT1; in td_psola2()
865 t1 = &(v1[a + sig_inObj->LocV[nI]]); in td_psola2()
869 } else if ((sig_inObj->nV == 0) && (sig_inObj->voiced_p == 0)) { in td_psola2()
871 for (nI = 0; nI < sig_inObj->nU; nI++) { in td_psola2()
872 f = sig_inObj->EnU[nI]; in td_psola2()
877 ff = (f * window[sig_inObj->LocU[nI]]) >> PICODSP_SHIFT_FACT1; in td_psola2()
878 t1 = &(v1[a + sig_inObj->LocU[nI]]); in td_psola2()
884 ff = (f * window[sig_inObj->LocU[nI]]) >> PICODSP_SHIFT_FACT1; in td_psola2()
885 t1 = &(v1[(m2 - 1 - a) + sig_inObj->LocU[nI]]); in td_psola2()
890 } else if (sig_inObj->VoicTrans == 0) { in td_psola2()
892 for (nI = 0; nI < sig_inObj->nV; nI++) { in td_psola2()
893 f = sig_inObj->EnV[nI]; in td_psola2()
896 ff = (f * window[sig_inObj->LocV[nI]]) >> PICODSP_SHIFT_FACT1; in td_psola2()
897 t1 = &(v1[a + sig_inObj->LocV[nI]]); in td_psola2()
902 for (nI = 0; nI < sig_inObj->nU; nI++) { in td_psola2()
903 f = sig_inObj->EnU[nI]; in td_psola2()
908 ff = (f * window[sig_inObj->LocU[nI]]) >> PICODSP_SHIFT_FACT1; in td_psola2()
909 t1 = &(v1[a + sig_inObj->LocU[nI]]); in td_psola2()
910 t2 = &(sig_inObj->ImpResp_p[a]); /*saved impulse response*/ in td_psola2()
915 ff = (f * window[sig_inObj->LocU[nI]]) >> PICODSP_SHIFT_FACT1; in td_psola2()
916 t1 = &(v1[(m2 - 1 - a) + sig_inObj->LocU[nI]]); in td_psola2()
917 t2 = &(sig_inObj->ImpResp_p[a]); in td_psola2()
923 for (nI = 0; nI < sig_inObj->nU; nI++) { in td_psola2()
924 f = sig_inObj->EnU[nI]; in td_psola2()
929 ff = (f * window[sig_inObj->LocU[nI]]) >> PICODSP_SHIFT_FACT1; in td_psola2()
930 t1 = &(v1[a + sig_inObj->LocU[nI]]); in td_psola2()
936 ff = (f * window[sig_inObj->LocU[nI]]) >> PICODSP_SHIFT_FACT1; in td_psola2()
937 t1 = &(v1[(m2 - 1 - a) + sig_inObj->LocU[nI]]); in td_psola2()
943 for (nI = 0; nI < sig_inObj->nV; nI++) { in td_psola2()
944 f = sig_inObj->EnV[nI]; in td_psola2()
947 ff = (f * window[sig_inObj->LocV[nI]]) >> PICODSP_SHIFT_FACT1; in td_psola2()
948 t1 = &(v1[a + sig_inObj->LocV[nI]]); in td_psola2()
949 t2 = &(sig_inObj->ImpResp_p[a]); in td_psola2()
954 t1 = sig_inObj->sig_vec1; in td_psola2()
980 void overlap_add(sig_innerobj_t *sig_inObj) in overlap_add() argument
986 w = sig_inObj->WavBuff_p; in overlap_add()
987 v = sig_inObj->sig_vec1; in overlap_add()
1003 static void gen_hann2(sig_innerobj_t *sig_inObj) in gen_hann2() argument
1008 hann = sig_inObj->window_p; in gen_hann2()
1009 norm = sig_inObj->norm_window_p; in gen_hann2()
1554 static void enh_wind_init(sig_innerobj_t *sig_inObj) in enh_wind_init() argument
1559 c = sig_inObj->cos_table; in enh_wind_init()
2083 static void init_rand(sig_innerobj_t *sig_inObj) in init_rand() argument
2085 picoos_int32 *q = sig_inObj->int_vec34; in init_rand()
2086 picoos_int32 *r = sig_inObj->int_vec35; in init_rand()
2088 sig_inObj->iRand = 0; in init_rand()
3631 void mel_2_lin_init(sig_innerobj_t *sig_inObj) in mel_2_lin_init() argument
3642 alpha = sig_inObj->warp_p; in mel_2_lin_init()
3643 size = (sig_inObj->hfftsize_p) + 1; in mel_2_lin_init()
3644 A = sig_inObj->A_p; in mel_2_lin_init()
3645 D = sig_inObj->d_p; in mel_2_lin_init()
3968 void save_transition_frame(sig_innerobj_t *sig_inObj) in save_transition_frame() argument
3972 if (sig_inObj->voiced_p != sig_inObj->prevVoiced_p) { in save_transition_frame()
3973 sig_inObj->VoicTrans = sig_inObj->prevVoiced_p; /*remember last voicing transition*/ in save_transition_frame()
3974 tmp = sig_inObj->ImpResp_p; in save_transition_frame()
3975 tmp2 = sig_inObj->imp_p; in save_transition_frame()
3977 if (sig_inObj->voiced_p == 1) in save_transition_frame()
3978 sig_inObj->nV = 0; in save_transition_frame()
3980 …sig_inObj->nU = 0; /*to avoid problems in case of very short voiced or unvoiced parts (less than 4… in save_transition_frame()
4004 static void get_simple_excitation(sig_innerobj_t *sig_inObj, in get_simple_excitation() argument
4018 hop = sig_inObj->hop_p; in get_simple_excitation()
4019 winlen = sig_inObj->m2_p; in get_simple_excitation()
4020 Fs = sig_inObj->Fs_p; in get_simple_excitation()
4021 E = sig_inObj->E_p; in get_simple_excitation()
4022 F0 = sig_inObj->F0_p; in get_simple_excitation()
4023 voiced = sig_inObj->voiced_p; in get_simple_excitation()
4029 for (nI = 0; nI < sig_inObj->nV; nI++) { in get_simple_excitation()
4030 sig_inObj->LocV[nI] = sig_inObj->LocV[nI] - hop; in get_simple_excitation()
4032 for (nI = 0; nI < sig_inObj->nU; nI++) { in get_simple_excitation()
4033 sig_inObj->LocU[nI] = sig_inObj->LocU[nI] - hop; in get_simple_excitation()
4038 while ((sig_inObj->LocV[nI] < 0) && nI < sig_inObj->nV) in get_simple_excitation()
4041 for (nJ = nI; nJ < sig_inObj->nV; nJ++) { in get_simple_excitation()
4042 sig_inObj->LocV[nJ - nI] = sig_inObj->LocV[nJ]; in get_simple_excitation()
4043 sig_inObj->EnV[nJ - nI] = sig_inObj->EnV[nJ]; in get_simple_excitation()
4045 sig_inObj->nV -= nI; in get_simple_excitation()
4048 while ((sig_inObj->LocU[nI] < 0) && nI < sig_inObj->nU) in get_simple_excitation()
4051 for (nJ = nI; nJ < sig_inObj->nU; nJ++) { in get_simple_excitation()
4052 sig_inObj->LocU[nJ - nI] = sig_inObj->LocU[nJ]; in get_simple_excitation()
4053 sig_inObj->EnU[nJ - nI] = sig_inObj->EnU[nJ]; in get_simple_excitation()
4055 sig_inObj->nU -= nI; in get_simple_excitation()
4064 / (picoos_single) sig_inObj->Fuv_p); /* round Period*/ in get_simple_excitation()
4066 / (hop * sig_inObj->Fuv_p)) * fact * PICODSP_GETEXC_K1); in get_simple_excitation()
4069 sig_inObj->LocU[sig_inObj->nU] = k; in get_simple_excitation()
4070 sig_inObj->EnU[sig_inObj->nU] = sqrtTi; in get_simple_excitation()
4071 sig_inObj->nU++; in get_simple_excitation()
4080 * sqrt((double) Fs / (hop * sig_inObj->F0_p)) * fact in get_simple_excitation()
4083 sig_inObj->LocV[sig_inObj->nV] = k; in get_simple_excitation()
4084 sig_inObj->EnV[sig_inObj->nV] = sqrtTi; in get_simple_excitation()
4085 sig_inObj->nV++; in get_simple_excitation()