Loading apps/decoder.c +0 −9 Original line number Diff line number Diff line Loading @@ -196,11 +196,7 @@ int main( RotFileReader *refRotReader = NULL; Vector3PairFileReader *referenceVectorReader = NULL; RenderConfigReader *renderConfigReader = NULL; #ifdef FIX_847_OUTPUT_PCM_BUFFER int16_t *pcmBuf = NULL; #else int16_t pcmBuf[MAX_OUTPUT_PCM_BUFFER_SIZE]; #endif #ifdef DEBUGGING int32_t noClipping; int32_t cnt_frames_limited; Loading Loading @@ -743,7 +739,6 @@ int main( } } #ifdef FIX_847_OUTPUT_PCM_BUFFER /*------------------------------------------------------------------------------------------* * Allocate output data buffer *------------------------------------------------------------------------------------------*/ Loading @@ -757,8 +752,6 @@ int main( pcmBuf = malloc( pcmBufSize * sizeof( int16_t ) ); #endif /*-----------------------------------------------------------------* * Decoding *-----------------------------------------------------------------*/ Loading Loading @@ -812,9 +805,7 @@ int main( cleanup: #ifdef FIX_847_OUTPUT_PCM_BUFFER free( pcmBuf ); #endif #ifdef DEBUG_SBA_AUDIO_DUMP IVAS_DEC_GetSbaDebugParams( hIvasDec, &numOutChannels, &numTransportChannels, &pca_ingest_channels ); Loading lib_com/ivas_cnst.h +2 −6 Original line number Diff line number Diff line Loading @@ -181,13 +181,7 @@ typedef enum #define MAX_JBM_L_FRAME48k 1920 #define MAX_JBM_L_FRAME_NS 40000000L #define MAX_SPAR_INTERNAL_CHANNELS IVAS_SPAR_MAX_CH #ifdef JBM_FOR_OSBA #define MAX_CLDFB_DIGEST_CHANNELS (FOA_CHANNELS + MAX_NUM_OBJECTS) #else #define MAX_CLDFB_DIGEST_CHANNELS 4 #endif #define MASA_JBM_RINGBUFFER_FRAMES 3 typedef enum { Loading Loading @@ -1224,6 +1218,8 @@ enum #define MASA_MAXIMUM_TWO_DIR_BANDS 24 #define NBITS_HR_COH 4 #define MASA_JBM_RINGBUFFER_FRAMES 3 typedef enum { MASA_STEREO_NOT_DEFINED, Loading lib_com/ivas_error.h +0 −4 Original line number Diff line number Diff line Loading @@ -65,9 +65,7 @@ typedef enum IVAS_ERR_INVALID_FEC_CONFIG, IVAS_ERR_INVALID_FEC_OFFSET, IVAS_ERR_INVALID_INPUT_BUFFER_SIZE, #ifdef FIX_847_OUTPUT_PCM_BUFFER IVAS_ERR_INVALID_OUTPUT_BUFFER_SIZE, #endif IVAS_ERR_DTX_NOT_SUPPORTED, IVAS_ERR_UNEXPECTED_NULL_POINTER, IVAS_ERR_METADATA_NOT_EXPECTED, Loading Loading @@ -217,10 +215,8 @@ static inline const char *ivas_error_to_string( ivas_error error_code ) return "Invalid FEC offset"; case IVAS_ERR_INVALID_INPUT_BUFFER_SIZE: return "Invalid input buffer size"; #ifdef FIX_847_OUTPUT_PCM_BUFFER case IVAS_ERR_INVALID_OUTPUT_BUFFER_SIZE: return "Invalid output buffer size"; #endif case IVAS_ERR_DTX_NOT_SUPPORTED: return "DTX is not supported in this IVAS format and element mode"; case IVAS_ERR_UNEXPECTED_NULL_POINTER: Loading lib_com/ivas_ism_com.c +6 −2 Original line number Diff line number Diff line Loading @@ -602,7 +602,11 @@ void ivas_ism_metadata_close( { int16_t n; #ifdef FIX_852_FIX_HANDLE_DEREF if ( hIsmMetaData == NULL || *hIsmMetaData == NULL ) #else if ( hIsmMetaData == NULL || hIsmMetaData == NULL ) #endif { return; } Loading lib_com/ivas_prot.h +29 −8 Original line number Diff line number Diff line Loading @@ -430,6 +430,26 @@ ivas_error ivas_core_enc( CPE_ENC_HANDLE hCPE, /* i/o: CPE encoder structure */ MCT_ENC_HANDLE hMCT, /* i/o: MCT encoder structure */ const int16_t n_CoreChannels, /* i : number of core channels to be coded */ #ifdef FIX_854_ARRAY_SIZE_MISMATCH float old_inp_12k8[][L_INP_12k8], /* i : buffer of old input signal */ float old_inp_16k[][L_INP], /* i : buffer of old input signal */ float ener[], /* i : residual energy from Levinson-Durbin */ float A[][NB_SUBFR16k * ( M + 1 )], /* i : A(z) unquantized for the 4 subframes */ float Aw[][NB_SUBFR16k * ( M + 1 )], /* i : weighted A(z) unquantized for subframes */ float epsP[][M + 1], /* i : LP prediction errors */ float lsp_new[][M], /* i : LSPs at the end of the frame */ float lsp_mid[][M], /* i : LSPs in the middle of the frame */ const int16_t vad_hover_flag[], /* i : VAD hanglover flag */ int16_t attack_flag[], /* i : attack flag (GSC or TC) */ float realBuffer[][CLDFB_NO_COL_MAX][CLDFB_NO_CHANNELS_MAX], /* i/o: real buffer */ float imagBuffer[][CLDFB_NO_COL_MAX][CLDFB_NO_CHANNELS_MAX], /* i/o: imag buffer */ float old_wsp[][L_WSP], /* i : weighted input signal buffer */ const int16_t loc_harm[], /* i : harmonicity flag */ const float cor_map_sum[], /* i : speech/music clasif. parameter */ const int16_t vad_flag_dtx[], /* i : HE-SAD flag with additional DTX HO */ float enerBuffer[][CLDFB_NO_CHANNELS_MAX], /* i : energy buffer */ float fft_buff[][2 * L_FFT], /* i : FFT buffer */ #else float old_inp_12k8[CPE_CHANNELS][L_INP_12k8], /* i : buffer of old input signal */ float old_inp_16k[CPE_CHANNELS][L_INP], /* i : buffer of old input signal */ float ener[CPE_CHANNELS], /* i : residual energy from Levinson-Durbin */ Loading @@ -448,6 +468,7 @@ ivas_error ivas_core_enc( const int16_t vad_flag_dtx[CPE_CHANNELS], /* i : HE-SAD flag with additional DTX HO */ float enerBuffer[CPE_CHANNELS][CLDFB_NO_CHANNELS_MAX], /* i : energy buffer */ float fft_buff[CPE_CHANNELS][2 * L_FFT], /* i : FFT buffer */ #endif const int16_t tdm_SM_flag, /* i : channel combination scheme flag */ const int16_t ivas_format, /* i : IVAS format */ const int16_t flag_16k_smc /* i : flag to indicate if the OL SMC is run at 16 kHz */ Loading @@ -459,8 +480,13 @@ ivas_error ivas_core_dec( CPE_DEC_HANDLE hCPE, /* i/o: CPE decoder structure */ MCT_DEC_HANDLE hMCT, /* i/o: MCT decoder structure */ const int16_t n_channels, /* i : number of channels to be decoded */ #ifdef FIX_854_ARRAY_SIZE_MISMATCH float *output[], /* o : output synthesis signal */ float outputHB[][L_FRAME48k], /* o : output HB synthesis signal */ #else float *output[CPE_CHANNELS], /* o : output synthesis signal */ float outputHB[CPE_CHANNELS][L_FRAME48k], /* o : output HB synthesis signal */ #endif float DFT[CPE_CHANNELS][STEREO_DFT_BUF_MAX], /* o : DFT buffers */ const int16_t sba_dirac_stereo_flag /* i : signal stereo output for SBA DirAC */ ); Loading Loading @@ -3467,9 +3493,7 @@ void ivas_sba_set_cna_cng_flag( ); ivas_error ivas_sba_dec_reconfigure( Decoder_Struct *st_ivas /* i/o: IVAS decoder structure */ #ifdef JBM_FOR_OSBA , Decoder_Struct *st_ivas, /* i/o: IVAS decoder structure */ uint16_t *nSamplesFlushed, /* o : number of samples flushed */ #ifdef SPLIT_REND_WITH_HEAD_ROT const PCM_RESOLUTION pcm_resolution, /* i : type for the decoded PCM resolution */ Loading @@ -3477,7 +3501,6 @@ ivas_error ivas_sba_dec_reconfigure( #else int16_t *data /* o : output synthesis signal */ #endif #endif ); ivas_error ivas_sba_digest_tc( Loading Loading @@ -5701,7 +5724,6 @@ ivas_error ivas_osba_data_open( Decoder_Struct *st_ivas /* i/o: IVAS decoder handle */ ); #ifdef JBM_FOR_OSBA ivas_error ivas_osba_dirac_td_binaural_jbm( Decoder_Struct *st_ivas, /* i/o: IVAS decoder structure */ const uint16_t nSamplesAsked, /* i : number of CLDFB slots requested */ Loading @@ -5709,7 +5731,6 @@ ivas_error ivas_osba_dirac_td_binaural_jbm( uint16_t *nSamplesAvailable, /* o : number of CLDFB slots still to render */ float *output_f[] /* o : rendered time signal */ ); #endif ivas_error ivas_osba_dirac_td_binaural( Decoder_Struct *st_ivas, /* i/o: IVAS decoder structure */ Loading Loading
apps/decoder.c +0 −9 Original line number Diff line number Diff line Loading @@ -196,11 +196,7 @@ int main( RotFileReader *refRotReader = NULL; Vector3PairFileReader *referenceVectorReader = NULL; RenderConfigReader *renderConfigReader = NULL; #ifdef FIX_847_OUTPUT_PCM_BUFFER int16_t *pcmBuf = NULL; #else int16_t pcmBuf[MAX_OUTPUT_PCM_BUFFER_SIZE]; #endif #ifdef DEBUGGING int32_t noClipping; int32_t cnt_frames_limited; Loading Loading @@ -743,7 +739,6 @@ int main( } } #ifdef FIX_847_OUTPUT_PCM_BUFFER /*------------------------------------------------------------------------------------------* * Allocate output data buffer *------------------------------------------------------------------------------------------*/ Loading @@ -757,8 +752,6 @@ int main( pcmBuf = malloc( pcmBufSize * sizeof( int16_t ) ); #endif /*-----------------------------------------------------------------* * Decoding *-----------------------------------------------------------------*/ Loading Loading @@ -812,9 +805,7 @@ int main( cleanup: #ifdef FIX_847_OUTPUT_PCM_BUFFER free( pcmBuf ); #endif #ifdef DEBUG_SBA_AUDIO_DUMP IVAS_DEC_GetSbaDebugParams( hIvasDec, &numOutChannels, &numTransportChannels, &pca_ingest_channels ); Loading
lib_com/ivas_cnst.h +2 −6 Original line number Diff line number Diff line Loading @@ -181,13 +181,7 @@ typedef enum #define MAX_JBM_L_FRAME48k 1920 #define MAX_JBM_L_FRAME_NS 40000000L #define MAX_SPAR_INTERNAL_CHANNELS IVAS_SPAR_MAX_CH #ifdef JBM_FOR_OSBA #define MAX_CLDFB_DIGEST_CHANNELS (FOA_CHANNELS + MAX_NUM_OBJECTS) #else #define MAX_CLDFB_DIGEST_CHANNELS 4 #endif #define MASA_JBM_RINGBUFFER_FRAMES 3 typedef enum { Loading Loading @@ -1224,6 +1218,8 @@ enum #define MASA_MAXIMUM_TWO_DIR_BANDS 24 #define NBITS_HR_COH 4 #define MASA_JBM_RINGBUFFER_FRAMES 3 typedef enum { MASA_STEREO_NOT_DEFINED, Loading
lib_com/ivas_error.h +0 −4 Original line number Diff line number Diff line Loading @@ -65,9 +65,7 @@ typedef enum IVAS_ERR_INVALID_FEC_CONFIG, IVAS_ERR_INVALID_FEC_OFFSET, IVAS_ERR_INVALID_INPUT_BUFFER_SIZE, #ifdef FIX_847_OUTPUT_PCM_BUFFER IVAS_ERR_INVALID_OUTPUT_BUFFER_SIZE, #endif IVAS_ERR_DTX_NOT_SUPPORTED, IVAS_ERR_UNEXPECTED_NULL_POINTER, IVAS_ERR_METADATA_NOT_EXPECTED, Loading Loading @@ -217,10 +215,8 @@ static inline const char *ivas_error_to_string( ivas_error error_code ) return "Invalid FEC offset"; case IVAS_ERR_INVALID_INPUT_BUFFER_SIZE: return "Invalid input buffer size"; #ifdef FIX_847_OUTPUT_PCM_BUFFER case IVAS_ERR_INVALID_OUTPUT_BUFFER_SIZE: return "Invalid output buffer size"; #endif case IVAS_ERR_DTX_NOT_SUPPORTED: return "DTX is not supported in this IVAS format and element mode"; case IVAS_ERR_UNEXPECTED_NULL_POINTER: Loading
lib_com/ivas_ism_com.c +6 −2 Original line number Diff line number Diff line Loading @@ -602,7 +602,11 @@ void ivas_ism_metadata_close( { int16_t n; #ifdef FIX_852_FIX_HANDLE_DEREF if ( hIsmMetaData == NULL || *hIsmMetaData == NULL ) #else if ( hIsmMetaData == NULL || hIsmMetaData == NULL ) #endif { return; } Loading
lib_com/ivas_prot.h +29 −8 Original line number Diff line number Diff line Loading @@ -430,6 +430,26 @@ ivas_error ivas_core_enc( CPE_ENC_HANDLE hCPE, /* i/o: CPE encoder structure */ MCT_ENC_HANDLE hMCT, /* i/o: MCT encoder structure */ const int16_t n_CoreChannels, /* i : number of core channels to be coded */ #ifdef FIX_854_ARRAY_SIZE_MISMATCH float old_inp_12k8[][L_INP_12k8], /* i : buffer of old input signal */ float old_inp_16k[][L_INP], /* i : buffer of old input signal */ float ener[], /* i : residual energy from Levinson-Durbin */ float A[][NB_SUBFR16k * ( M + 1 )], /* i : A(z) unquantized for the 4 subframes */ float Aw[][NB_SUBFR16k * ( M + 1 )], /* i : weighted A(z) unquantized for subframes */ float epsP[][M + 1], /* i : LP prediction errors */ float lsp_new[][M], /* i : LSPs at the end of the frame */ float lsp_mid[][M], /* i : LSPs in the middle of the frame */ const int16_t vad_hover_flag[], /* i : VAD hanglover flag */ int16_t attack_flag[], /* i : attack flag (GSC or TC) */ float realBuffer[][CLDFB_NO_COL_MAX][CLDFB_NO_CHANNELS_MAX], /* i/o: real buffer */ float imagBuffer[][CLDFB_NO_COL_MAX][CLDFB_NO_CHANNELS_MAX], /* i/o: imag buffer */ float old_wsp[][L_WSP], /* i : weighted input signal buffer */ const int16_t loc_harm[], /* i : harmonicity flag */ const float cor_map_sum[], /* i : speech/music clasif. parameter */ const int16_t vad_flag_dtx[], /* i : HE-SAD flag with additional DTX HO */ float enerBuffer[][CLDFB_NO_CHANNELS_MAX], /* i : energy buffer */ float fft_buff[][2 * L_FFT], /* i : FFT buffer */ #else float old_inp_12k8[CPE_CHANNELS][L_INP_12k8], /* i : buffer of old input signal */ float old_inp_16k[CPE_CHANNELS][L_INP], /* i : buffer of old input signal */ float ener[CPE_CHANNELS], /* i : residual energy from Levinson-Durbin */ Loading @@ -448,6 +468,7 @@ ivas_error ivas_core_enc( const int16_t vad_flag_dtx[CPE_CHANNELS], /* i : HE-SAD flag with additional DTX HO */ float enerBuffer[CPE_CHANNELS][CLDFB_NO_CHANNELS_MAX], /* i : energy buffer */ float fft_buff[CPE_CHANNELS][2 * L_FFT], /* i : FFT buffer */ #endif const int16_t tdm_SM_flag, /* i : channel combination scheme flag */ const int16_t ivas_format, /* i : IVAS format */ const int16_t flag_16k_smc /* i : flag to indicate if the OL SMC is run at 16 kHz */ Loading @@ -459,8 +480,13 @@ ivas_error ivas_core_dec( CPE_DEC_HANDLE hCPE, /* i/o: CPE decoder structure */ MCT_DEC_HANDLE hMCT, /* i/o: MCT decoder structure */ const int16_t n_channels, /* i : number of channels to be decoded */ #ifdef FIX_854_ARRAY_SIZE_MISMATCH float *output[], /* o : output synthesis signal */ float outputHB[][L_FRAME48k], /* o : output HB synthesis signal */ #else float *output[CPE_CHANNELS], /* o : output synthesis signal */ float outputHB[CPE_CHANNELS][L_FRAME48k], /* o : output HB synthesis signal */ #endif float DFT[CPE_CHANNELS][STEREO_DFT_BUF_MAX], /* o : DFT buffers */ const int16_t sba_dirac_stereo_flag /* i : signal stereo output for SBA DirAC */ ); Loading Loading @@ -3467,9 +3493,7 @@ void ivas_sba_set_cna_cng_flag( ); ivas_error ivas_sba_dec_reconfigure( Decoder_Struct *st_ivas /* i/o: IVAS decoder structure */ #ifdef JBM_FOR_OSBA , Decoder_Struct *st_ivas, /* i/o: IVAS decoder structure */ uint16_t *nSamplesFlushed, /* o : number of samples flushed */ #ifdef SPLIT_REND_WITH_HEAD_ROT const PCM_RESOLUTION pcm_resolution, /* i : type for the decoded PCM resolution */ Loading @@ -3477,7 +3501,6 @@ ivas_error ivas_sba_dec_reconfigure( #else int16_t *data /* o : output synthesis signal */ #endif #endif ); ivas_error ivas_sba_digest_tc( Loading Loading @@ -5701,7 +5724,6 @@ ivas_error ivas_osba_data_open( Decoder_Struct *st_ivas /* i/o: IVAS decoder handle */ ); #ifdef JBM_FOR_OSBA ivas_error ivas_osba_dirac_td_binaural_jbm( Decoder_Struct *st_ivas, /* i/o: IVAS decoder structure */ const uint16_t nSamplesAsked, /* i : number of CLDFB slots requested */ Loading @@ -5709,7 +5731,6 @@ ivas_error ivas_osba_dirac_td_binaural_jbm( uint16_t *nSamplesAvailable, /* o : number of CLDFB slots still to render */ float *output_f[] /* o : rendered time signal */ ); #endif ivas_error ivas_osba_dirac_td_binaural( Decoder_Struct *st_ivas, /* i/o: IVAS decoder structure */ Loading