Commit 422abd90 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch 'stereo_icbwe_enc_data_struct_cleanup_msan_error_fixes' into 'main'

STEREO_ICBWE_ENC_DATA structure cleanup and MSAN error fixes

See merge request !794
parents 46f90c62 eb2c3f85
Loading
Loading
Loading
Loading
+0 −25
Original line number Diff line number Diff line
@@ -55,31 +55,6 @@ static void mhvals_flt( const int16_t d, float *m );
#endif
static void getmidbands( int16_t *part, const int16_t npart, int16_t *midband, float *psize_flt, float *psize_inv_flt );


/*-------------------------------------------------------------------
 * createFdCngCom_flt()
 *
 * Create an instance of type FD_CNG_COM
 *-------------------------------------------------------------------*/

ivas_error createFdCngCom_flt(
    HANDLE_FD_CNG_COM *hFdCngCom /* i/o: FD_CNG structure containing all buffers and variables */
)
{
    HANDLE_FD_CNG_COM hs;

    /* Allocate memory */
    if ( ( hs = (HANDLE_FD_CNG_COM) malloc( sizeof( FD_CNG_COM ) ) ) == NULL )
    {
        return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for FD CNG COM" );
    }

    *hFdCngCom = hs;

    return IVAS_ERR_OK;
}


/*-------------------------------------------------------------------
 * initFdCngCom_flt()
 *
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ static void getmidbands( const Word16 *part, const Word16 npart, Word16 *midband
 *
 * Create an instance of type FD_CNG_COM
 *-------------------------------------------------------------------*/
ivas_error createFdCngCom(
ivas_error createFdCngCom_fx(
    HANDLE_FD_CNG_COM *hFdCngCom /* i/o: FD_CNG structure containing all buffers and variables */
)
{
+0 −4
Original line number Diff line number Diff line
@@ -2029,10 +2029,6 @@ void adjustTargetSignal(
 * IC-BWE Stereo prototypes
 *----------------------------------------------------------------------------------*/

void stereo_icBWE_init_enc(
    STEREO_ICBWE_ENC_HANDLE hStereoICBWE                        /* i/o: Stereo inter-channel BWE handle                 */
);

void spectral_balancer(
    float *signal,
    float *mem,
+0 −12
Original line number Diff line number Diff line
@@ -5330,10 +5330,6 @@ float gain_dequant(
    const int16_t bits   /* i  : number of bits to dequantize              */
);
void HQ_core_enc_init(
    HQ_ENC_HANDLE hHQ_core /* i/o: HQ core data handle                       */
);
void hq_core_enc(
    Encoder_State *st,           /* i/o: encoder state structure                   */
    const float *audio,          /* i  : input audio signal                        */
@@ -8753,10 +8749,6 @@ float construct_snr_thresh(
    const int16_t bw_index               /* i  : band width index                        */
);
ivas_error createFdCngCom_flt(
    HANDLE_FD_CNG_COM *hFdCngCom /* i/o: FD_CNG structure containing all buffers and variables */
);
void deleteFdCngCom_flt(
    HANDLE_FD_CNG_COM *hFdCngCom /* i/o: FD_CNG structure containing all buffers and variables */
);
@@ -9007,10 +8999,6 @@ void noisy_speech_detection(
    const float syn[]            /* i  : input time-domain frame                 */
);
ivas_error createFdCngEnc(
    HANDLE_FD_CNG_ENC *hFdCngEnc /* i/o: FD_CNG structure                        */
);
void deleteFdCngEnc(
    HANDLE_FD_CNG_ENC *hFdCngEnc /* i/o: FD_CNG structure                        */
);
+1 −1
Original line number Diff line number Diff line
@@ -5011,7 +5011,7 @@ Word16 const *PlcGetLsfBase( Word16 const lpcQuantization,
// fd_cng_com.c
/* Create an instance of type FD_CNG */
ivas_error createFdCngCom( HANDLE_FD_CNG_COM *hFdCngCom );
ivas_error createFdCngCom_fx( HANDLE_FD_CNG_COM *hFdCngCom );
void initFdCngCom( HANDLE_FD_CNG_COM hFdCngCom, Word16 scale );
Loading