Loading lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,7 @@ #ifdef DEBUG_MODE_MDCT #define DEBUG_PLOT_BITS #define DEBUG_OSBA_MD_BITS #endif #ifdef DEBUG_MODE_DFT Loading lib_enc/enc_prm.c +15 −0 Original line number Diff line number Diff line Loading @@ -565,6 +565,12 @@ void writeTCXparam( nbits_tcx, NPRM_RESQ * st->hTcxCfg->resq, flag_ctx_hm ? &hm_cfg[k] : NULL ); } } #ifdef DEBUG_PLOT_BITS if ( core == TCX_10_CORE ) { dbgwrite( &nbits_tcx, sizeof( int16_t ), 1, 1, "./res/bits_RC" ); } #endif } } #ifdef DEBUG_PLOT_BITS Loading @@ -576,6 +582,15 @@ void writeTCXparam( dbgwrite( &tmp, sizeof( int16_t ), 1, 1, "./res/bits_TNS" ); } } else { if ( nSubframes == 1 ) { tmp = 0; dbgwrite( &nbits_tcx, sizeof( int16_t ), 1, 1, "./res/bits_RC" ); dbgwrite( &tmp, sizeof( int16_t ), 1, 1, "./res/bits_RC" ); } } #endif return; Loading lib_enc/ivas_enc.c +5 −0 Original line number Diff line number Diff line Loading @@ -412,6 +412,11 @@ ivas_error ivas_enc( /* get SBA TCs */ ivas_sba_getTCs( &data_f[n], st_ivas, input_frame ); } #ifdef DEBUG_OSBA_MD_BITS { dbgwrite( &nb_bits_metadata[0], sizeof( int16_t ), hEncoderConfig->nchan_ism + 1, 1, "./res/osba_md_bits" ); } #endif /* core-coding of transport channels */ if ( st_ivas->nSCE == 1 ) Loading lib_enc/ivas_mct_core_enc.c +8 −0 Original line number Diff line number Diff line Loading @@ -471,6 +471,10 @@ void ivas_mct_core_enc( /*write IGF data to bitstream*/ for ( ch = 0; ch < nChannels; ch++ ) { #ifdef DEBUG_PLOT_BITS int16_t tmp = hBstr->nb_bits_tot; #endif st = sts[ch]; if ( sts[ch]->mct_chan_mode == MCT_CHAN_MODE_IGNORE ) Loading @@ -478,6 +482,10 @@ void ivas_mct_core_enc( continue; } enc_prm_igf_mdct( st, hBstr ); #ifdef DEBUG_PLOT_BITS tmp = hBstr->nb_bits_tot - tmp; dbgwrite( &tmp, sizeof( int16_t ), 1, 1, "./res/bits_IGF" ); #endif } } Loading lib_enc/ivas_mdct_core_enc.c +8 −0 Original line number Diff line number Diff line Loading @@ -1146,6 +1146,9 @@ void ivas_mdct_core_whitening_enc( skipped_first_channel = 0; for ( ch = 0; ch < CPE_CHANNELS; ch++ ) { #ifdef DEBUG_PLOT_BITS int16_t tmp = hBstr->nb_bits_tot; #endif st = sts[ch]; if ( st->mct_chan_mode == MCT_CHAN_MODE_IGNORE ) Loading @@ -1170,6 +1173,11 @@ void ivas_mdct_core_whitening_enc( } encode_lpc_avq( hBstr, num_sns, param_lpc[ch], st->core, st->element_mode ); #ifdef DEBUG_PLOT_BITS tmp = hBstr->nb_bits_tot - tmp; dbgwrite( &tmp, sizeof( int16_t ), 1, 1, "./res/bits_SNS" ); #endif st->side_bits_frame_channel += hBstr->nb_bits_tot - nbits_start_sns; } } Loading Loading
lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,7 @@ #ifdef DEBUG_MODE_MDCT #define DEBUG_PLOT_BITS #define DEBUG_OSBA_MD_BITS #endif #ifdef DEBUG_MODE_DFT Loading
lib_enc/enc_prm.c +15 −0 Original line number Diff line number Diff line Loading @@ -565,6 +565,12 @@ void writeTCXparam( nbits_tcx, NPRM_RESQ * st->hTcxCfg->resq, flag_ctx_hm ? &hm_cfg[k] : NULL ); } } #ifdef DEBUG_PLOT_BITS if ( core == TCX_10_CORE ) { dbgwrite( &nbits_tcx, sizeof( int16_t ), 1, 1, "./res/bits_RC" ); } #endif } } #ifdef DEBUG_PLOT_BITS Loading @@ -576,6 +582,15 @@ void writeTCXparam( dbgwrite( &tmp, sizeof( int16_t ), 1, 1, "./res/bits_TNS" ); } } else { if ( nSubframes == 1 ) { tmp = 0; dbgwrite( &nbits_tcx, sizeof( int16_t ), 1, 1, "./res/bits_RC" ); dbgwrite( &tmp, sizeof( int16_t ), 1, 1, "./res/bits_RC" ); } } #endif return; Loading
lib_enc/ivas_enc.c +5 −0 Original line number Diff line number Diff line Loading @@ -412,6 +412,11 @@ ivas_error ivas_enc( /* get SBA TCs */ ivas_sba_getTCs( &data_f[n], st_ivas, input_frame ); } #ifdef DEBUG_OSBA_MD_BITS { dbgwrite( &nb_bits_metadata[0], sizeof( int16_t ), hEncoderConfig->nchan_ism + 1, 1, "./res/osba_md_bits" ); } #endif /* core-coding of transport channels */ if ( st_ivas->nSCE == 1 ) Loading
lib_enc/ivas_mct_core_enc.c +8 −0 Original line number Diff line number Diff line Loading @@ -471,6 +471,10 @@ void ivas_mct_core_enc( /*write IGF data to bitstream*/ for ( ch = 0; ch < nChannels; ch++ ) { #ifdef DEBUG_PLOT_BITS int16_t tmp = hBstr->nb_bits_tot; #endif st = sts[ch]; if ( sts[ch]->mct_chan_mode == MCT_CHAN_MODE_IGNORE ) Loading @@ -478,6 +482,10 @@ void ivas_mct_core_enc( continue; } enc_prm_igf_mdct( st, hBstr ); #ifdef DEBUG_PLOT_BITS tmp = hBstr->nb_bits_tot - tmp; dbgwrite( &tmp, sizeof( int16_t ), 1, 1, "./res/bits_IGF" ); #endif } } Loading
lib_enc/ivas_mdct_core_enc.c +8 −0 Original line number Diff line number Diff line Loading @@ -1146,6 +1146,9 @@ void ivas_mdct_core_whitening_enc( skipped_first_channel = 0; for ( ch = 0; ch < CPE_CHANNELS; ch++ ) { #ifdef DEBUG_PLOT_BITS int16_t tmp = hBstr->nb_bits_tot; #endif st = sts[ch]; if ( st->mct_chan_mode == MCT_CHAN_MODE_IGNORE ) Loading @@ -1170,6 +1173,11 @@ void ivas_mdct_core_whitening_enc( } encode_lpc_avq( hBstr, num_sns, param_lpc[ch], st->core, st->element_mode ); #ifdef DEBUG_PLOT_BITS tmp = hBstr->nb_bits_tot - tmp; dbgwrite( &tmp, sizeof( int16_t ), 1, 1, "./res/bits_SNS" ); #endif st->side_bits_frame_channel += hBstr->nb_bits_tot - nbits_start_sns; } } Loading