Loading lib_com/ivas_prot.h +3 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,9 @@ ivas_error pre_proc_front_ivas( const IVAS_FORMAT ivas_format, /* i : IVAS format */ const int16_t MCT_flag, /* i : hMCT handle allocated (1) or not (0) */ const int32_t ivas_total_brate /* i : IVAS total bitrate */ #ifdef DEBUG_MODE_INFO_CORE_CODER_IN , const int16_t ch_idx #endif ); ivas_error pre_proc_ivas( Loading lib_com/options.h +4 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,10 @@ /*#define DEBUG_MODE_INFO_PLC */ /* define to output PLC related parameters */ /*#define DEBUG_MODE_INFO_ALLRAD*/ /* define to output generated HOA decoding mtx */ /*#define DEBUG_MODE_LFE */ /* define to output LFE relevant parameters */ #ifdef DEBUG_MODE_INFO_TWEAK #define DEBUG_MODE_INFO_CORE_CODER_IN /*dump core coder input*/ #endif #endif #ifdef DEBUG_MODE_MDCT Loading lib_enc/ivas_core_pre_proc_front.c +15 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,10 @@ ivas_error pre_proc_front_ivas( const IVAS_FORMAT ivas_format, /* i : IVAS format */ const int16_t MCT_flag, /* i : hMCT handle allocated (1) or not (0) */ const int32_t ivas_total_brate /* i : IVAS total bitrate - for setting the DTX */ #ifdef DEBUG_MODE_INFO_CORE_CODER_IN , const int16_t ch_idx #endif ) { float *inp_12k8, *new_inp_12k8; /* pointers to current frame and new data */ Loading Loading @@ -219,6 +223,17 @@ ivas_error pre_proc_front_ivas( } } #ifdef DEBUG_MODE_INFO_CORE_CODER_IN { int16_t tmpF[L_FRAME48k]; for ( int16_t isample = 0; isample < input_frame; isample++ ) { tmpF[isample] = (int16_t) signal_in[isample]; } dbgwrite( &tmpF, sizeof( int16_t ), input_frame, 1, strcat( fname( debug_dir, "input_dmx", 0, ch_idx + 1, ENC ), ".pcm" ) ); } #endif lMemRecalc_12k8 = 0; lMemRecalc = 0; if ( element_mode == IVAS_CPE_TD || element_mode == IVAS_CPE_MDCT ) Loading lib_enc/ivas_cpe_enc.c +6 −1 Original line number Diff line number Diff line Loading @@ -474,7 +474,12 @@ ivas_error ivas_cpe_enc( error = pre_proc_front_ivas( NULL, hCPE, hCPE->element_brate, nb_bits_metadata, input_frame, n, old_inp_12k8[n], old_inp_16k[n], &ener[n], &relE[n], A[n], Aw[n], epsP[n], lsp_new[n], lsp_mid[n], &vad_hover_flag[n], &attack_flag[n], realBuffer[n], imagBuffer[n], old_wsp[n], pitch_fr[n], voicing_fr[n], &loc_harm[n], &cor_map_sum[n], &vad_flag_dtx[n], enerBuffer[n], fft_buff[n], A[0], lsp_new[0], currFlatness[n], tdm_ratio_idx, fr_bands, Etot_LR, lf_E, localVAD_HE_SAD, band_energies_LR, 0, st_ivas->hSpar != NULL ? st_ivas->hSpar->front_vad_flag : 0, 0, 0, ivas_format, st_ivas->hMCT != NULL, ivas_total_brate ); fft_buff[n], A[0], lsp_new[0], currFlatness[n], tdm_ratio_idx, fr_bands, Etot_LR, lf_E, localVAD_HE_SAD, band_energies_LR, 0, st_ivas->hSpar != NULL ? st_ivas->hSpar->front_vad_flag : 0, 0, 0, ivas_format, st_ivas->hMCT != NULL, ivas_total_brate #ifdef DEBUG_MODE_INFO_CORE_CODER_IN , ( (cpe_id * CPE_CHANNELS) + n) #endif ); if ( error != IVAS_ERR_OK ) { return error; Loading lib_enc/ivas_ism_enc.c +6 −1 Original line number Diff line number Diff line Loading @@ -175,7 +175,12 @@ ivas_error ivas_ism_enc( error = pre_proc_front_ivas( hSCE, NULL, hSCE->element_brate, nb_bits_metadata[sce_id], input_frame, 0, old_inp_12k8[sce_id][0], old_inp_16k[sce_id][0], &ener[sce_id][0], &relE[sce_id][0], A[sce_id][0], Aw[sce_id][0], epsP[sce_id][0], lsp_new[sce_id][0], lsp_mid[sce_id][0], &vad_hover_flag[sce_id][0], &attack_flag[sce_id][0], realBuffer[sce_id][0], imagBuffer[sce_id][0], old_wsp[sce_id][0], pitch_fr[sce_id][0], voicing_fr[sce_id][0], &loc_harm[sce_id][0], &cor_map_sum[sce_id][0], &vad_flag_dtx[sce_id][0], enerBuffer[sce_id][0], fft_buff[sce_id][0], A[sce_id][0], lsp_new[sce_id][0], currFlatness[0], 0, fr_bands, Etot_LR, lf_E, localVAD_HE_SAD, NULL, 0, 0, 0, 0, ISM_FORMAT, 0, st_ivas->hEncoderConfig->ivas_total_brate ); fft_buff[sce_id][0], A[sce_id][0], lsp_new[sce_id][0], currFlatness[0], 0, fr_bands, Etot_LR, lf_E, localVAD_HE_SAD, NULL, 0, 0, 0, 0, ISM_FORMAT, 0, st_ivas->hEncoderConfig->ivas_total_brate #ifdef DEBUG_MODE_INFO_CORE_CODER_IN , sce_id #endif ); if ( error != IVAS_ERR_OK ) { return error; Loading Loading
lib_com/ivas_prot.h +3 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,9 @@ ivas_error pre_proc_front_ivas( const IVAS_FORMAT ivas_format, /* i : IVAS format */ const int16_t MCT_flag, /* i : hMCT handle allocated (1) or not (0) */ const int32_t ivas_total_brate /* i : IVAS total bitrate */ #ifdef DEBUG_MODE_INFO_CORE_CODER_IN , const int16_t ch_idx #endif ); ivas_error pre_proc_ivas( Loading
lib_com/options.h +4 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,10 @@ /*#define DEBUG_MODE_INFO_PLC */ /* define to output PLC related parameters */ /*#define DEBUG_MODE_INFO_ALLRAD*/ /* define to output generated HOA decoding mtx */ /*#define DEBUG_MODE_LFE */ /* define to output LFE relevant parameters */ #ifdef DEBUG_MODE_INFO_TWEAK #define DEBUG_MODE_INFO_CORE_CODER_IN /*dump core coder input*/ #endif #endif #ifdef DEBUG_MODE_MDCT Loading
lib_enc/ivas_core_pre_proc_front.c +15 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,10 @@ ivas_error pre_proc_front_ivas( const IVAS_FORMAT ivas_format, /* i : IVAS format */ const int16_t MCT_flag, /* i : hMCT handle allocated (1) or not (0) */ const int32_t ivas_total_brate /* i : IVAS total bitrate - for setting the DTX */ #ifdef DEBUG_MODE_INFO_CORE_CODER_IN , const int16_t ch_idx #endif ) { float *inp_12k8, *new_inp_12k8; /* pointers to current frame and new data */ Loading Loading @@ -219,6 +223,17 @@ ivas_error pre_proc_front_ivas( } } #ifdef DEBUG_MODE_INFO_CORE_CODER_IN { int16_t tmpF[L_FRAME48k]; for ( int16_t isample = 0; isample < input_frame; isample++ ) { tmpF[isample] = (int16_t) signal_in[isample]; } dbgwrite( &tmpF, sizeof( int16_t ), input_frame, 1, strcat( fname( debug_dir, "input_dmx", 0, ch_idx + 1, ENC ), ".pcm" ) ); } #endif lMemRecalc_12k8 = 0; lMemRecalc = 0; if ( element_mode == IVAS_CPE_TD || element_mode == IVAS_CPE_MDCT ) Loading
lib_enc/ivas_cpe_enc.c +6 −1 Original line number Diff line number Diff line Loading @@ -474,7 +474,12 @@ ivas_error ivas_cpe_enc( error = pre_proc_front_ivas( NULL, hCPE, hCPE->element_brate, nb_bits_metadata, input_frame, n, old_inp_12k8[n], old_inp_16k[n], &ener[n], &relE[n], A[n], Aw[n], epsP[n], lsp_new[n], lsp_mid[n], &vad_hover_flag[n], &attack_flag[n], realBuffer[n], imagBuffer[n], old_wsp[n], pitch_fr[n], voicing_fr[n], &loc_harm[n], &cor_map_sum[n], &vad_flag_dtx[n], enerBuffer[n], fft_buff[n], A[0], lsp_new[0], currFlatness[n], tdm_ratio_idx, fr_bands, Etot_LR, lf_E, localVAD_HE_SAD, band_energies_LR, 0, st_ivas->hSpar != NULL ? st_ivas->hSpar->front_vad_flag : 0, 0, 0, ivas_format, st_ivas->hMCT != NULL, ivas_total_brate ); fft_buff[n], A[0], lsp_new[0], currFlatness[n], tdm_ratio_idx, fr_bands, Etot_LR, lf_E, localVAD_HE_SAD, band_energies_LR, 0, st_ivas->hSpar != NULL ? st_ivas->hSpar->front_vad_flag : 0, 0, 0, ivas_format, st_ivas->hMCT != NULL, ivas_total_brate #ifdef DEBUG_MODE_INFO_CORE_CODER_IN , ( (cpe_id * CPE_CHANNELS) + n) #endif ); if ( error != IVAS_ERR_OK ) { return error; Loading
lib_enc/ivas_ism_enc.c +6 −1 Original line number Diff line number Diff line Loading @@ -175,7 +175,12 @@ ivas_error ivas_ism_enc( error = pre_proc_front_ivas( hSCE, NULL, hSCE->element_brate, nb_bits_metadata[sce_id], input_frame, 0, old_inp_12k8[sce_id][0], old_inp_16k[sce_id][0], &ener[sce_id][0], &relE[sce_id][0], A[sce_id][0], Aw[sce_id][0], epsP[sce_id][0], lsp_new[sce_id][0], lsp_mid[sce_id][0], &vad_hover_flag[sce_id][0], &attack_flag[sce_id][0], realBuffer[sce_id][0], imagBuffer[sce_id][0], old_wsp[sce_id][0], pitch_fr[sce_id][0], voicing_fr[sce_id][0], &loc_harm[sce_id][0], &cor_map_sum[sce_id][0], &vad_flag_dtx[sce_id][0], enerBuffer[sce_id][0], fft_buff[sce_id][0], A[sce_id][0], lsp_new[sce_id][0], currFlatness[0], 0, fr_bands, Etot_LR, lf_E, localVAD_HE_SAD, NULL, 0, 0, 0, 0, ISM_FORMAT, 0, st_ivas->hEncoderConfig->ivas_total_brate ); fft_buff[sce_id][0], A[sce_id][0], lsp_new[sce_id][0], currFlatness[0], 0, fr_bands, Etot_LR, lf_E, localVAD_HE_SAD, NULL, 0, 0, 0, 0, ISM_FORMAT, 0, st_ivas->hEncoderConfig->ivas_total_brate #ifdef DEBUG_MODE_INFO_CORE_CODER_IN , sce_id #endif ); if ( error != IVAS_ERR_OK ) { return error; Loading