/*==================================================================================== EVS Codec 3GPP TS26.443 Jun 30, 2015. Version CR 26.443-0006 ====================================================================================*/ #include "prot.h" #include "rom_enc.h" #include "cnst.h" /*-------------------------------------------------------------------* * spec_center() * * *-------------------------------------------------------------------*/ void spec_center( float spec_power[], /*(i) energy of sub-band divided uniformly*/ float sp_center[], /*(o) spectral centroid*/ int bandwidth /*(i) band width*/ ) { int i; float t_sp_center,frame_power; short sp_center_band_num = SP_CENTER_BAND_NUM_TAB[bandwidth]; float sp_center_mem; t_sp_center = 0; frame_power = 0; for(i=1; i