Loading Workspace_msvc/lib_com.vcxproj +0 −1 Original line number Diff line number Diff line Loading @@ -165,7 +165,6 @@ <ClCompile Include="..\lib_com\gain_inov_fx.c" /> <ClCompile Include="..\lib_com\get_gain_fx.c" /> <ClCompile Include="..\lib_com\gs_bitallocation_fx.c" /> <ClCompile Include="..\lib_com\gs_bitallocation_ivas_fx.c" /> <ClCompile Include="..\lib_com\gs_gains_fx.c" /> <ClCompile Include="..\lib_com\gs_inact_switching_fx.c" /> <ClCompile Include="..\lib_com\gs_noisefill_fx.c" /> Loading Workspace_msvc/lib_com.vcxproj.filters +3 −6 Original line number Diff line number Diff line Loading @@ -265,12 +265,6 @@ <ClCompile Include="..\lib_com\get_gain_fx.c"> <Filter>common_all_c</Filter> </ClCompile> <ClCompile Include="..\lib_com\gs_bitallocation_fx.c"> <Filter>common_all_c</Filter> </ClCompile> <ClCompile Include="..\lib_com\gs_bitallocation_ivas_fx.c"> <Filter>common_all_c</Filter> </ClCompile> <ClCompile Include="..\lib_com\gs_gains_fx.c"> <Filter>common_all_c</Filter> </ClCompile> Loading Loading @@ -481,6 +475,9 @@ <ClCompile Include="..\lib_com\rom_com_fx.c"> <Filter>common_all_c</Filter> </ClCompile> <ClCompile Include="..\lib_com\gs_bitallocation_fx.c"> <Filter>common_all_c</Filter> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\lib_com\ivas_error.h"> Loading lib_com/cldfb_evs_fx.c +0 −10 Original line number Diff line number Diff line Loading @@ -1598,27 +1598,17 @@ ivas_error cldfb_save_memory( } hs->memory_length = cldfb_get_memory_length( hs ); move16(); #ifdef FIX_2431_AVOID_CALLOC hs->memory = (Word16 *) malloc( ( hs->memory_length + CLDFB_MEM_EXPONENTS + 1 ) * sizeof( Word16 ) ); IF( hs->memory == NULL ) { return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for CLDFB\n" ); } #else hs->memory = (Word16 *) calloc( hs->memory_length + CLDFB_MEM_EXPONENTS + 1, sizeof( Word16 ) ); #endif /* save the memory */ Copy( hs->FilterStates, hs->memory, hs->memory_length ); Copy( hs->FilterStates_e, hs->memory + hs->memory_length, CLDFB_MEM_EXPONENTS ); hs->memory[hs->memory_length + CLDFB_MEM_EXPONENTS] = hs->FilterStates_eg; move16(); #ifndef FIX_2431_AVOID_CALLOC IF( hs->memory == NULL ) { return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for CLDFB\n" ); } #endif return IVAS_ERR_OK; } Loading lib_com/core_com_config_fx.c +0 −166 Original line number Diff line number Diff line Loading @@ -169,7 +169,6 @@ Word16 get_codec_mode( return codec_mode; /*Q0*/ } #ifdef FIX_2385_GETTCXONLY /*-------------------------------------------------------------------* * getTcxonly() * Loading Loading @@ -236,171 +235,6 @@ Word16 getTcxonly_fx( return tcxonly; /*Q0*/ } #else /*-------------------------------------------------------------------* * getTcxonly_ivas() * * *-------------------------------------------------------------------*/ Word16 getTcxonly_ivas_fx( const Word16 element_mode, /* i : IVAS element mode Q0*/ const Word32 total_brate, /* i : total bitrate Q0*/ const Word16 MCT_flag, /* i : hMCT handle allocated (1) or not (0) Q0*/ const Word16 is_ism_format /* i : flag indicating ISM format Q0*/ ) { Word16 tcxonly = 0; move16(); Word32 temp_flag; if ( MCT_flag ) { temp_flag = IVAS_32k; move32(); } else { temp_flag = IVAS_48k; move32(); } SWITCH( element_mode ) { case EVS_MONO: if ( GT_32( total_brate, ACELP_32k ) ) { tcxonly = 1; move16(); } BREAK; case IVAS_SCE: if ( is_ism_format ) { if ( GT_32( total_brate, MAX_ACELP_BRATE_ISM ) ) { tcxonly = 1; move16(); } } else { if ( GT_32( total_brate, MAX_ACELP_BRATE ) ) { tcxonly = 1; move16(); } } BREAK; case IVAS_CPE_DFT: case IVAS_CPE_TD: if ( GT_32( total_brate, MAX_ACELP_BRATE ) ) { tcxonly = 1; move16(); } BREAK; case IVAS_CPE_MDCT: if ( GE_32( total_brate, temp_flag ) ) { tcxonly = 1; move16(); } BREAK; } return tcxonly; /*Q0*/ } #endif /* FIX_2385_GETTCXONLY */ #ifndef FIX_2385_GETTCXONLY Word16 getTcxonly( const Word32 total_brate /* i : total bitrate */ ) { Word16 tcxonly; tcxonly = 0; move16(); if ( GT_32( total_brate, 32000 ) ) { tcxonly = 1; move16(); } return tcxonly; /*Q0*/ } Word16 getTcxonly_fx( const Word16 element_mode, /* i : IVAS element mode Q0*/ const Word32 total_brate, /* i : total bitrate Q0*/ const Word16 MCT_flag, /* i : hMCT handle allocated (1) or not (0) Q0*/ const Word16 is_ism_format /* i : flag indicating ISM format Q0*/ ) { Word16 tcxonly; tcxonly = 0; move16(); SWITCH( element_mode ) { case EVS_MONO: if ( GT_32( total_brate, ACELP_32k ) ) { tcxonly = 1; move16(); } BREAK; case IVAS_SCE: IF( is_ism_format ) { if ( GT_32( total_brate, MAX_ACELP_BRATE_ISM ) ) { tcxonly = 1; move16(); } } ELSE { if ( GT_32( total_brate, MAX_ACELP_BRATE ) ) { tcxonly = 1; move16(); } } BREAK; case IVAS_CPE_DFT: case IVAS_CPE_TD: if ( GT_32( total_brate, MAX_ACELP_BRATE ) ) { tcxonly = 1; move16(); } BREAK; case IVAS_CPE_MDCT: IF( MCT_flag ) { if ( GE_32( total_brate, IVAS_32k ) ) { tcxonly = 1; move16(); } } ELSE { if ( GE_32( total_brate, IVAS_48k ) ) { tcxonly = 1; move16(); } } BREAK; } return tcxonly; /*Q0*/ } #endif /* FIX_2385_GETTCXONLY */ /*-------------------------------------------------------------------* * getCtxHm() Loading lib_com/fd_cng_com_fx.c +2 −0 Original line number Diff line number Diff line Loading @@ -166,7 +166,9 @@ void initFdCngCom( set16_fx( hFdCngCom->coherence_fx, 16384 /* 0.5 in Q15 */, MDCT_ST_DTX_NUM_COHERENCE_BANDS ); #ifndef FIX_BASOP_2262_OLAP_BUFFER_SYNTH_SWITCHING set32_fx( hFdCngCom->olapBufferSynth_fx, 0, FFTLEN ); #endif set32_fx( hFdCngCom->olapBufferSynth2_fx, 0, FFTLEN ); set32_fx( hFdCngCom->exc_cng_32fx, 0, L_FRAME16k ); set16_fx( hFdCngCom->exc_cng, 0, L_FRAME16k ); Loading Loading
Workspace_msvc/lib_com.vcxproj +0 −1 Original line number Diff line number Diff line Loading @@ -165,7 +165,6 @@ <ClCompile Include="..\lib_com\gain_inov_fx.c" /> <ClCompile Include="..\lib_com\get_gain_fx.c" /> <ClCompile Include="..\lib_com\gs_bitallocation_fx.c" /> <ClCompile Include="..\lib_com\gs_bitallocation_ivas_fx.c" /> <ClCompile Include="..\lib_com\gs_gains_fx.c" /> <ClCompile Include="..\lib_com\gs_inact_switching_fx.c" /> <ClCompile Include="..\lib_com\gs_noisefill_fx.c" /> Loading
Workspace_msvc/lib_com.vcxproj.filters +3 −6 Original line number Diff line number Diff line Loading @@ -265,12 +265,6 @@ <ClCompile Include="..\lib_com\get_gain_fx.c"> <Filter>common_all_c</Filter> </ClCompile> <ClCompile Include="..\lib_com\gs_bitallocation_fx.c"> <Filter>common_all_c</Filter> </ClCompile> <ClCompile Include="..\lib_com\gs_bitallocation_ivas_fx.c"> <Filter>common_all_c</Filter> </ClCompile> <ClCompile Include="..\lib_com\gs_gains_fx.c"> <Filter>common_all_c</Filter> </ClCompile> Loading Loading @@ -481,6 +475,9 @@ <ClCompile Include="..\lib_com\rom_com_fx.c"> <Filter>common_all_c</Filter> </ClCompile> <ClCompile Include="..\lib_com\gs_bitallocation_fx.c"> <Filter>common_all_c</Filter> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\lib_com\ivas_error.h"> Loading
lib_com/cldfb_evs_fx.c +0 −10 Original line number Diff line number Diff line Loading @@ -1598,27 +1598,17 @@ ivas_error cldfb_save_memory( } hs->memory_length = cldfb_get_memory_length( hs ); move16(); #ifdef FIX_2431_AVOID_CALLOC hs->memory = (Word16 *) malloc( ( hs->memory_length + CLDFB_MEM_EXPONENTS + 1 ) * sizeof( Word16 ) ); IF( hs->memory == NULL ) { return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for CLDFB\n" ); } #else hs->memory = (Word16 *) calloc( hs->memory_length + CLDFB_MEM_EXPONENTS + 1, sizeof( Word16 ) ); #endif /* save the memory */ Copy( hs->FilterStates, hs->memory, hs->memory_length ); Copy( hs->FilterStates_e, hs->memory + hs->memory_length, CLDFB_MEM_EXPONENTS ); hs->memory[hs->memory_length + CLDFB_MEM_EXPONENTS] = hs->FilterStates_eg; move16(); #ifndef FIX_2431_AVOID_CALLOC IF( hs->memory == NULL ) { return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for CLDFB\n" ); } #endif return IVAS_ERR_OK; } Loading
lib_com/core_com_config_fx.c +0 −166 Original line number Diff line number Diff line Loading @@ -169,7 +169,6 @@ Word16 get_codec_mode( return codec_mode; /*Q0*/ } #ifdef FIX_2385_GETTCXONLY /*-------------------------------------------------------------------* * getTcxonly() * Loading Loading @@ -236,171 +235,6 @@ Word16 getTcxonly_fx( return tcxonly; /*Q0*/ } #else /*-------------------------------------------------------------------* * getTcxonly_ivas() * * *-------------------------------------------------------------------*/ Word16 getTcxonly_ivas_fx( const Word16 element_mode, /* i : IVAS element mode Q0*/ const Word32 total_brate, /* i : total bitrate Q0*/ const Word16 MCT_flag, /* i : hMCT handle allocated (1) or not (0) Q0*/ const Word16 is_ism_format /* i : flag indicating ISM format Q0*/ ) { Word16 tcxonly = 0; move16(); Word32 temp_flag; if ( MCT_flag ) { temp_flag = IVAS_32k; move32(); } else { temp_flag = IVAS_48k; move32(); } SWITCH( element_mode ) { case EVS_MONO: if ( GT_32( total_brate, ACELP_32k ) ) { tcxonly = 1; move16(); } BREAK; case IVAS_SCE: if ( is_ism_format ) { if ( GT_32( total_brate, MAX_ACELP_BRATE_ISM ) ) { tcxonly = 1; move16(); } } else { if ( GT_32( total_brate, MAX_ACELP_BRATE ) ) { tcxonly = 1; move16(); } } BREAK; case IVAS_CPE_DFT: case IVAS_CPE_TD: if ( GT_32( total_brate, MAX_ACELP_BRATE ) ) { tcxonly = 1; move16(); } BREAK; case IVAS_CPE_MDCT: if ( GE_32( total_brate, temp_flag ) ) { tcxonly = 1; move16(); } BREAK; } return tcxonly; /*Q0*/ } #endif /* FIX_2385_GETTCXONLY */ #ifndef FIX_2385_GETTCXONLY Word16 getTcxonly( const Word32 total_brate /* i : total bitrate */ ) { Word16 tcxonly; tcxonly = 0; move16(); if ( GT_32( total_brate, 32000 ) ) { tcxonly = 1; move16(); } return tcxonly; /*Q0*/ } Word16 getTcxonly_fx( const Word16 element_mode, /* i : IVAS element mode Q0*/ const Word32 total_brate, /* i : total bitrate Q0*/ const Word16 MCT_flag, /* i : hMCT handle allocated (1) or not (0) Q0*/ const Word16 is_ism_format /* i : flag indicating ISM format Q0*/ ) { Word16 tcxonly; tcxonly = 0; move16(); SWITCH( element_mode ) { case EVS_MONO: if ( GT_32( total_brate, ACELP_32k ) ) { tcxonly = 1; move16(); } BREAK; case IVAS_SCE: IF( is_ism_format ) { if ( GT_32( total_brate, MAX_ACELP_BRATE_ISM ) ) { tcxonly = 1; move16(); } } ELSE { if ( GT_32( total_brate, MAX_ACELP_BRATE ) ) { tcxonly = 1; move16(); } } BREAK; case IVAS_CPE_DFT: case IVAS_CPE_TD: if ( GT_32( total_brate, MAX_ACELP_BRATE ) ) { tcxonly = 1; move16(); } BREAK; case IVAS_CPE_MDCT: IF( MCT_flag ) { if ( GE_32( total_brate, IVAS_32k ) ) { tcxonly = 1; move16(); } } ELSE { if ( GE_32( total_brate, IVAS_48k ) ) { tcxonly = 1; move16(); } } BREAK; } return tcxonly; /*Q0*/ } #endif /* FIX_2385_GETTCXONLY */ /*-------------------------------------------------------------------* * getCtxHm() Loading
lib_com/fd_cng_com_fx.c +2 −0 Original line number Diff line number Diff line Loading @@ -166,7 +166,9 @@ void initFdCngCom( set16_fx( hFdCngCom->coherence_fx, 16384 /* 0.5 in Q15 */, MDCT_ST_DTX_NUM_COHERENCE_BANDS ); #ifndef FIX_BASOP_2262_OLAP_BUFFER_SYNTH_SWITCHING set32_fx( hFdCngCom->olapBufferSynth_fx, 0, FFTLEN ); #endif set32_fx( hFdCngCom->olapBufferSynth2_fx, 0, FFTLEN ); set32_fx( hFdCngCom->exc_cng_32fx, 0, L_FRAME16k ); set16_fx( hFdCngCom->exc_cng, 0, L_FRAME16k ); Loading