Line data Source code
1 : /******************************************************************************
2 : * ETSI TS 103 634 V1.5.1 *
3 : * Low Complexity Communication Codec Plus (LC3plus) *
4 : * *
5 : * Copyright licence is solely granted through ETSI Intellectual Property *
6 : * Rights Policy, 3rd April 2019. No patent licence is granted by implication, *
7 : * estoppel or otherwise. *
8 : ******************************************************************************/
9 :
10 : #include "options.h"
11 : #include "wmc_auto.h"
12 : #include "defines.h"
13 : #include "functions.h"
14 :
15 0 : void plc_phEcu_trans_burst_ana_sub(LC3_INT32 fs_idx, LC3_INT32 burst_len, LC3_INT32 n_grp, LC3_FLOAT *oold_spect_shape,
16 : LC3_FLOAT *oold_EwPtr, LC3_FLOAT *old_spect_shape,
17 : LC3_FLOAT *old_EwPtr, LC3_FLOAT *stPhECU_beta_mute,
18 : LC3_FLOAT *stPhECU_mag_chg_1st, LC3_FLOAT *stPhECU_Xavg, LC3_FLOAT *alpha, LC3_FLOAT *beta, LC3_FLOAT *mag_chg, LC3_INT32 *tr_dec_dbg, LC3_FLOAT *gpc_dbg
19 : , LC3_UINT8 plc_fadeout_type
20 : )
21 : {
22 : LC3_FLOAT gr_pow_left[MAX_LGW];
23 : LC3_FLOAT gr_pow_right[MAX_LGW];
24 : LC3_FLOAT trans[MAX_LGW];
25 : LC3_FLOAT grp_pow_change[MAX_LGW];
26 : LC3_FLOAT ph_dith[MAX_LGW];
27 : LC3_FLOAT att_val[MAX_LGW];
28 : LC3_INT32 tr_dec[MAX_LGW];
29 :
30 : LC3_INT32 attDegreeFrames;
31 : LC3_FLOAT thresh_dbg;
32 :
33 : UNUSED(tr_dec_dbg);
34 : UNUSED(gpc_dbg);
35 :
36 0 : if (burst_len <= 1)
37 : {
38 0 : plc_phEcu_tba_spect_Xavg(fs_idx, n_grp, oold_spect_shape, oold_EwPtr, old_spect_shape, old_EwPtr, gr_pow_left, gr_pow_right, stPhECU_Xavg);
39 :
40 0 : plc_phEcu_tba_per_band_gain(n_grp, gr_pow_left, gr_pow_right, trans, grp_pow_change);
41 :
42 : }
43 :
44 0 : plc_phEcu_tba_trans_dect_gains(burst_len, n_grp, grp_pow_change, stPhECU_beta_mute, stPhECU_mag_chg_1st, alpha, beta, mag_chg, ph_dith, tr_dec, att_val, &attDegreeFrames, &thresh_dbg
45 : , plc_fadeout_type
46 : );
47 :
48 :
49 :
50 0 : return;
51 : }
52 :
|