Harmonise duplication of Comp_and_apply_gain_fx()
Basic info
- Float reference:
- Encoder (float):
- Decoder (float):
- Fixed point:
- Encoder (fixed): 2b2acfdb
- Decoder (fixed):
Bug description
There are 2 functions Comp_and_apply_gain_fx() and Comp_and_apply_gain_IVAS_fx() (related to the GSC ACELP coding) that do basically the same, except that the IVAS version truncates the excitation vector before performing a final upscaling based on the minimum value of the truncated vector. The EVS version used a maybe less optimal final scaling value, but it doesn't truncate. For the vast majority of cases, the EVS version will be more precise.
Ways to reproduce
Box folder: ...\Box_EXTERNAL_IVAS_BASOP_VERIFICATION\issues\issue-xxxx
Edited by vaclav