Resolve "Static value used instead of existing variable in function unclr_calc_corr_features_fx()"
- Related issues: #2580
- Requested reviewers: @vaillancour
Reason why this change is needed
In function unclr_calc_corr_features-fx() variable hStereoClassif->ave_ener_L_fx is computed:
hStereoClassif->ave_ener_L_fx = Mpy_32_32( hStereoTCA->E1_mem_fx, 13421772 /* 1/length in Q31*/ ); /* Q31-hStereoClassif->ave_ener_L_fx_e */
whereas in the floating point counterpart uin it computed using a dynamic denominator that is also present in fixed point implementation.
hStereoClassif->ave_ener_L = hStereoTCA->E1_mem / length;
by tracing length to higher stacks it is not exactly clear how the two implementation can yield the same result.
Description of the change
The fixed length constant of 13421772 is replaced by the length parameter.
Affected operating points
Non-BE modifictaion, potentially affected all operating points using the STEREO core coder.