Match function prototype with the variables used in the call (McMASA)
- Related issues: #887 (closed), #888 (closed)
- Requested reviewers:
Reason why this change is needed
McMASA encoding calls the functions computeIntensityVector_enc (in ivas_mcmasa_enc.c) and computeReferencePower_enc (in ivas_dirac_enc.c) with buffers of size [FOA_CHANNELS][DIRAC_NO_FB_BANDS_MAX] while the functions interface defines buffers of size [DIRAC_MAX_ANA_CHANS][DIRAC_NO_FB_BANDS_MAX].
The actual use in the functions does not over-index as
-
computeIntensityVector_encaccesses only 4 =FOA_CHANNELSelements, and -
computeReferencePower_encreceives an extra argument defining the number of channels in the data.
Description of the change
Change the function definitions:
-
computeIntensityVector_encto use input arrays of size[FOA_CHANNELS][DIRAC_NO_FB_BANDS_MAX] -
computeReferencePower_encto use unknown first dimension size[][DIRAC_NO_FB_BANDS_MAX]
Affected operating points
- Changed functions are called by McMASA encoding and DirAC encoding
- Everything is BE
Edited by Jouni Paulus