ACELP_config*acelp_cfg,/* i : ACELP bit-allocation */
constWord16signalling_bits,/* i : number of signalling bits */
constWord16coder_type,/* i : coder type */
#ifdef NONBE_FIX_GSC_BSTR
constWord16inactive_coder_type_flag,/* i : AVQ (0) or GSC (1) IC flag */
#endif
constWord16tc_subfr,/* i : TC subfr ID */
constWord16tc_call,/* i : TC call number (0,1,2,3,5(DEC)) */
Word16*nBits_es_Pred,/* o : number of bits for Es_pred Q */
@@ -1068,14 +1071,20 @@ ivas_error config_acelp1(
{
bits=sub(bits,TDM_IC_LSF_PRED_BITS);
}
/* gain Q bit-budget - part 1 */
/* gain Q bit-budget - part 1: 'Es_pred' of memory-less gain Q */
test();
test();
test();
test();
test();
test();
#ifdef NONBE_FIX_GSC_BSTR
IF((NE_16(coder_type,UNVOICED)&&NE_16(coder_type,AUDIO)&&coder_type!=INACTIVE&&!(LE_32(core_brate,ACELP_8k00)&&NE_16(coder_type,TRANSITION)))/* mid bitrates in GC and VC, low+mid bitrates in TC */||
/* gain Q bit-budget - part 1: 'Es_pred' of memory-less gain Q */
#ifdef NONBE_FIX_GSC_BSTR
IF((NE_16(coder_type,UNVOICED)&&NE_16(coder_type,AUDIO)&&coder_type!=INACTIVE&&!(LE_32(core_brate,ACELP_8k00)&&NE_16(coder_type,TRANSITION)))/* mid bitrates in GC and VC, low+mid bitrates in TC */||