Commit 09e2678e authored by vaclav's avatar vaclav
Browse files

issue 243: Move audio channels memory from stack to heap; under FIX_264_AUDIO_CHANNELS_TO_HEAP

parent 7a8335cc
Loading
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -474,7 +474,11 @@ void ivas_FB_mixer_close(

void ivas_fb_mixer_pcm_ingest(
    IVAS_FB_MIXER_HANDLE hFbMixer, /* i/o: FB mixer handle             */
#ifdef FIX_264_AUDIO_CHANNELS_TO_HEAP
    float *pcm_in[], /* i  : input audio channels        */
#else
    float pcm_in[][L_FRAME48k], /* i  : input audio channels        */
#endif
    float **ppOut_pcm,       /* o  : output audio channels       */
    const int16_t frame_len, /* i  : frame length                */
    const int16_t HOA_md_ind[IVAS_SPAR_MAX_CH] )
+229 −2

File changed.

Preview size limit exceeded, changes collapsed.

+7 −3
Original line number Diff line number Diff line
@@ -316,7 +316,11 @@ void ivas_sba_get_spar_hoa_md_flag(
 *-------------------------------------------------------------------*/

void ivas_sba_zero_vert_comp(
#ifdef FIX_264_AUDIO_CHANNELS_TO_HEAP
    float *sba_data[], /* i  : SBA signals                 */
#else
    float sba_data[][L_FRAME48k], /* i  : SBA signals                 */
#endif
    const int16_t sba_order,  /* i  : SBA order                   */
    const int16_t sba_planar, /* i  : SBA planar flag             */
    const int16_t input_frame /* i  : frame length                */
+1 −1
Original line number Diff line number Diff line
@@ -217,7 +217,7 @@
#define FIX_613_DIRAC_NULL_PTR_USAN                     /* Nokia: Issue #613: USAN in DirAC decoder setup */

#define MASA_AND_OBJECTS                                /* Nokia: Combination of MASA and objects */

#define FIX_264_AUDIO_CHANNELS_TO_HEAP                  /* VA: issue 243: Move audio channels memory from stack to heap */


/* ################## End BE DEVELOPMENT switches ######################### */
+9 −4
Original line number Diff line number Diff line
@@ -173,8 +173,13 @@ void ivas_spar_agc_dec_close(

void ivas_agc_dec_process(
    ivas_agc_dec_state_t *hAgcDec, /* i/o: AGC decoder handle       */
#ifdef FIX_264_AUDIO_CHANNELS_TO_HEAP
    float *pcm_in[],  /* i  : input audio channels     */
    float *pcm_out[], /* o  : output audio channels    */
#else
    float pcm_in[][L_FRAME48k],  /* i  : input audio channels     */
    float pcm_out[][L_FRAME48k], /* o  : output audio channels    */
#endif
    const int16_t n_channels,  /* i  : number of channels       */
    const int16_t output_frame /* i  : output frame length      */
)
Loading