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 "functions.h" 11 : 12 0 : void process_cutoff_bandwidth(Word32 d_fx[], Word16 len, Word16 bw_bin) 13 : { 14 0 : Word32 i = 0; 15 0 : if (len > bw_bin){ 16 : /* roll off */ 17 0 : for (i = -1; i < 3; i++) { 18 0 : d_fx[bw_bin + i] = L_shr(d_fx[bw_bin + i], add(i, 2)); 19 : } 20 : 21 0 : for (i = bw_bin + 3; i < len; i++) { 22 0 : d_fx[i] = 0; move32(); 23 : } 24 : } 25 0 : } 26 :